Thursday, 2015-12-03

*** mrmartin has joined #storyboard05:58
*** mrmartin has quit IRC06:09
*** mrmartin has joined #storyboard07:49
Zaramorning, storyboard!10:11
* pedroalvarez waves10:12
Zarayeah, I was using <pre> because I didn't know markdown well enough to get roughly the same layout without <pre>10:12
pedroalvarezI think that wiki is not in markdown, though10:12
Zaraah, well that makes it even better! \o/10:13
pedroalvarezLooks like mediawiki format10:13
ZaraI'll try to learn more html-for-formatting-purposes, then.10:14
pedroalvarezIf the goal is to write markdonw so that it can go to a story later, I guess is ok10:15
Zarain general it seems like people put roadmaps on wiki pages, so I've been going by that so far; we could link to a story from the wiki instead, though we'll need to merge the preview button for descriptions patch first10:20
SotKgood morning!10:39
* SotK decides how to smoothly transition from object to array10:46
Zaraturn it into a string and then hackily change all the relevant punctuation with a regexp? =P10:48
SotKtry to get it with isArray: true, but then fallback onto the old method if that fails10:50
SotKhopefully that works neatly and I don't have to manually detect failure10:50
SotKof course that didn't work, hooray10:56
Zara\o/10:58
ZaraI'm a bit confused about what you want as the array; the whole object or just the keys or the values?10:59
SotKat the moment the API just sends an object like `{ edit_board: true, move_cards: true }`, but the permissions patch changes it so that it sends an array containing all of the permissions set for the user on the relevant board, so something like `["edit_board", "move_cards"]`11:11
SotKand $resource needs to know whether the result of GETs will be an object or an array for some reason, and errors if it gets an unexpected result11:12
Zaraoh, so you'd want to put the object key in an array, but only if the key had the value 'true' in the object?11:15
SotKpretty much, the object was a bit hacky anyway since it just got those two keys set to true if the current user was the creator of the board/worklist11:16
Zaraeg: `{edit_board: true, move_cards: true, take_over_the_world: false}` would be `['edit_board', 'move_cards']`11:17
SotKargh, shoving it in a try ... catch block didn't work either11:31
Zarawould anyone be able to see if my reverse default order patch works for recentevents on the dash?11:38
* SotK makes the fallback work11:45
SotKI'll send patches once I've eaten11:45
SotKand then test the reverse default order patch :)11:45
Zara:D11:46
Zarajust looked at resource wrappers update, seems to break with old db (which makes sense) but the dependency wasn't explicit so workflow -1 for now11:47
SotKyeah, the patch I've half-made should make it work with both11:47
Zara:)11:47
Zaraoh, turns out I was also using the wrong db version, gah12:01
Zara(50. which is awkward because downgrading to 49 doesn't work.)12:04
SotKthe downgrade works in the new version of that patch :)12:32
*** openstackgerrit has quit IRC12:32
Zaraahahaha12:32
Zaramaybe I still have the old version checked out then, gahhhh12:33
*** openstackgerrit has joined #storyboard12:33
Zaraaaand I do12:34
Zarastill getting errors12:35
ZaraI wonder if it's like last time12:35
Zaraand it's becuase I did stuff in the UI before upgrading/downgrading appropriately12:35
SotKhave you already tried running it and had a failure?12:35
Zarathe downgrade? yeah12:35
Zarasqlalchemy.exc.InternalError: (InternalError) (1060, u"Duplicate column name 'permission_id'") 'ALTER TABLE worklists ADD COLUMN permission_id INTEGER(11)' ()12:35
ZaraERROR: InvocationError: '/home/ubuntu/storyboard/.tox/venv/bin/storyboard-db-manage --config-file ./etc/storyboard.conf downgrade 049'12:35
Zara______________________________________________________________________ summary _______________________________________________________________________12:35
ZaraERROR:   venv: commands failed12:35
SotKyeah, you'll need to clean up manually I'm afraid12:36
Zara\o/12:36
SotK`delete from user_permissions;`, `drop table board_permissions;`, `drop table worklist_permissions;`, `delete from permissions`, `update alembic_version set version_num="049";` should do the trick I think12:39
Zarahah, I just finished scrolling up to yesterday's notes, but thanks!12:40
SotKheh12:40
Zarayay, worked12:41
SotKoh dear. I've just noticed that worklists don't use their permissions API yet, so you can attempt to drag other people's worklist contents...13:17
*** openstackgerrit has quit IRC13:17
SotKthe result will be a screen full of errors, but it's a bit annoying13:17
SotKit does however mean there is no code to fix for them to switch to using an array13:17
*** openstackgerrit has joined #storyboard13:18
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient: Update $resource wrappers to use new permissions API  https://review.openstack.org/23547513:24
*** jjardon has quit IRC14:07
*** jjardon has joined #storyboard14:08
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient: Update $resource wrappers to use new permissions API  https://review.openstack.org/23547514:14
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient: Add UI for complex permissions on boards and worklists  https://review.openstack.org/23547614:14
* SotK points out we also need to merge https://review.openstack.org/#/c/251970/ in order to have working preferences again :)14:22
Zaraah, nice spot, sorry missed it14:22
ZaraI can't easily test if it works; are there other patches it'd be better for me to look at at this point (ie: is the permissions stuff still wip or ready for me to peer at?)14:23
ZaraI've left it alone so far this afternoon14:24
SotKyou can look at it now :)14:24
Zara\o/14:24
SotKbut it would be good if you could review https://review.openstack.org/#/c/251970/ first I think14:24
SotK(I appreciate it is tough to test if you can't reproduce the duplicate thing, but you can just check it doesn't ruin your preferences table or something)14:26
Zarayeah, that's the thing, I can test it doesn't break things but I wouldn't merge it until someone had tested it against the issue. Happy to take a look, though.14:27
* SotK hopes pedro can test it sometime soon14:27
SotKI've tested it on storyboard.sotk.co.uk against the real db and it seemed to work fine14:27
SotKthe permissions patches need to be merged in order btw: https://review.openstack.org/#/c/235475/ first, then https://review.openstack.org/#/c/235472/, then https://review.openstack.org/#/c/235476/414:28
ZaraThat should probably be mentioned in the patches themselves, then14:29
Zara(sorry if it is, didn't see it but could've just missed it)14:29
* SotK leaves a -1 workflow on the second one as well as just the last one14:33
Zarahehe14:35
openstackgerritMerged openstack-infra/storyboard-webclient: Don't save default preference values  https://review.openstack.org/25235014:35
Zara-1 all the things \o/14:36
Zaramy tables seem normal14:45
Zaranot totally sure what I'd be looking for, but I don't spot anything amiss14:46
ZaraI do note it mentions 'tags added' and 'tags deleted' but there's no checkbox; might've mentioned that yesterday14:46
SotKyeah, I think pedroalvarez was going to add checkboxes for them14:46
Zararings a bell14:46
SotKmostly you should just check that the preferences got set how you wanted them to be14:47
SotKand not "ALL FALSE" or something14:47
Zaraseems fine14:49
SotKZara: your reverse order patch does not affect Recent Events14:52
Zarabah, annoying, I was hoping14:52
SotKhowever, it is amazing for the lists14:52
Zarawould've been too convenient. xD14:53
ZaraI wish it worked for updated at before created_at, but I think it's because it's tied to IDs14:53
Zarawhich happen to overlap with created_at, but not updated_at14:53
Zaraso yeah, I'd like sb to go 'most recently updated', then 'most recently created' for items that haven't been updated (and actually track when things are updated in a sensible way)14:54
Zarabut oh well14:54
SotKhmm, you could change $scope.sortField to 'updated_at' instead of 'id' I'd imagine14:54
SotKbut most things have updated_at == Null, so it wouldn't be particularly sorted14:55
* SotK reads what Zara just wrote14:55
pedroalvarezyes, I plan to add checkboxes for the tags events, I'm okay if the default is set to false in the meantime14:55
pedroalvarez(blank events appear otherwise)14:56
ZaraSotK: heheh14:56
Zarayeah, once updates work sensbily it'd make sense to try to do it that way, I think14:56
*** mrmartin has quit IRC15:16
Zara*sensibly15:25
Zaraspelling correction, half an hour later15:25
* SotK gets to the bottom of the trouble with https://review.openstack.org/#/c/235993/16:12
* SotK tidies up the project groups module.js to fix it :)16:12
Zaraheh, please! I thought it was probably my code, given the project groups have caused a few weird things :/16:13
openstackgerritPedro Alvarez Piedehierro proposed openstack-infra/storyboard: RFC: Add story_title to tag events.  https://review.openstack.org/25156616:17
SotKhow attached are we to the edit and delete buttons on the project group list items?16:22
ZaraI think they need to be somewhere, but they look awful16:24
SotKis it enough for them to be on the project group detail pages?16:25
ZaraIt would be more consistent. personally I dislike having to click two different things to get onto a detail page to delete any resource (and one at a time!) but it would look nicer16:26
* SotK will make them go away from the list page for now then :)16:28
ZaraI'm not sure there is a 'delete' button on the detail page for them16:28
Zarabut I don't think deleting works anyway for project groups16:28
Zarareally, I'd like little buttons like those on all the list pages, but that looked good, somehow. I can't visualise how to do that, and that's why I'm not a UX person at heart.16:29
Zarain general I want the convenience of being able to edit a bunch of resources at once from the webclient, seems to be a theme with me16:29
* SotK finds the current edit button for project groups anything but convenient :)16:30
SotKI'd like to be able to edit things in place like tasks in stories16:30
SotKbut that is a job for a different day!16:30
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient: Tidy up project groups states  https://review.openstack.org/25304916:31
Zara:)16:31
SotKgah, I have to resubmit that if I want to submit something that depends on it, whaaat16:32
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient: Add an "Unlimited" option to the paging controls  https://review.openstack.org/23599316:32
Zarayeah, it's in a stupid place because it's between (and too close to) 'delete' and 'subscribe', but I like the idea of having it in the list view at some point.16:33
SotKah good, it didn't actually resubmit the other change16:33
SotKit just said it would16:33
Zarahaha16:33
* SotK claps gerrit16:33
SotKmaybe s/gerrit/git review/16:33
Zarafirst permissions patch seems fine btw, though I noticed there's no way to make worklists private from the edit button on the worklist detail page16:33
Zarathat I could find, anyway16:34
SotKZara: indeed, thankfully the delete button asks for confirmation and probably doesn't work16:34
SotKah hm, I hope I add that in the last patch16:34
Zarafor project groups? it doesn't work16:35
Zarabecause you can only delete an empty group16:35
Zaraand you can't make a group empty16:35
Zarabecause you can't have a group with no projects16:35
SotK\o/16:35
Zarathere's a story for that one, somewhere16:35
Zarayeah, 'private' comes up in the new worklist modal, but not for the edit worklist page16:36
Zarait's there for boards, though16:36
SotKits because of the terrible UI I created for editing worklists :)16:36
Zarahehehe16:36
Zaraoh yeah, the archive button still doesn't give the user an indication the worklist has been archived16:37
Zaramentioned it before but it might've been forgotten :P16:37
SotKoops16:38
* SotK makes the UI less terrible in https://review.openstack.org/#/c/235476/4 but still doesn't add a checkbox, I'll update :)16:38
SotKwhat kind of indication would be good?16:38
Zaraprobably going back to the worklist/boards list page16:39
Zaraso user can see it's not listed16:39
SotKsounds good16:39
Zaraalso needs to be some way to retrieve things from an archive, I think, not sure where that'd go.16:39
SotKI should probably make a way to unarchive them16:39
Zarasnap16:39
ZaraxD16:39
ZaraI need to fix my db at some point so that fulltext works for users16:49
ZaraI think I went home before I did that and then forgot about it16:49
pedroalvarezALTER TABLE users ADD FULLTEXT INDEX users_fti (full_name, email);  ?16:53
SotKsounds about right16:53
pedroalvarez(I have that noted as a migration step for whenever I move my database to somewhere that supports fulltext :)16:53
Zarayeah, I think I did it for the other tables and forgot users for some reason xD16:54
SotKpedroalvarez: oh, I was thinking about that...16:54
*** betherly has quit IRC16:55
*** betherly has joined #storyboard16:56
SotKcan you take a dump of your mariadb database, restore it into a mysql database, run the migrations against that, then take a dump of that and overwrite the original db with the new dump?16:56
SotKalthough that assumes that the only difference between mariadb and mysql is the version reporting16:56
pedroalvarezwell, I gave up trying to get a mariadb instance that supports fulltext..16:57
Zaraoh, there's a reason we're not using that template for project groups as-is16:58
Zarait's because it doesn't list the projects in the groups16:58
SotKpedroalvarez: ah, that plan won't help then :/16:59
Zaraand given the project groups exist *solely* to group projects together, it's kind of useless not to have that info there.16:59
pedroalvarezSotK: but yeah, what you said would work. although the migration  scripts needed  to add the fulltext indexes won't run16:59
ZaraI think we need a button to hide/collapse projects in a group, but I want that information to stay visible on the list page16:59
pedroalvarezbut don't worry about that :)16:59
SotKZara: I'll add it back then :)17:00
SotKalong with a button to show/hide them17:00
* SotK thinks https://storyboard.openstack.org/#!/project_group/list is crazy at the moment17:00
Zarayeah, I think it's actually more *useful* than it was, but it looks bad17:01
ZaraI was expecting fewer projects per group, and more groups...17:01
Zaracool :) but yeah, with projects, they have loads of stories, so it's not practical to show them on the list page-- and stories have descriptions, anyway.17:01
Zaraand people use projects as a quick way to filter stories that they're interested in. but imo people don't use groups as a filter in the same way; they use them more to see what's grouped where.17:03
Zaraso that was the reasoning, anyway.17:03
* SotK uses the storyboard project group as a filter17:04
Zarahah, maybe the issue is with how things are currently grouped rather than groups themselves17:05
ZaraI can't see how anyone can usefully use openstack-ci as a filter right now, for example.17:05
SotKI agree with that :)17:07
SotKoh dear, archiving worklists is very broken17:10
Zara~o~17:12
* SotK was very silly when he wrote that code17:12
SotKmight only be broken with the permissions patch I think17:15
Zarahah17:16
SotKyep, just broken with the permissions patch, I'll send a new version17:22
openstackgerritPedro Alvarez Piedehierro proposed openstack-infra/storyboard: RFC: Add story_title to tag events.  https://review.openstack.org/25156617:25
*** cody-somerville has quit IRC17:29
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient: Add UI for complex permissions on boards and worklists  https://review.openstack.org/23547617:29
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Implement complex permissions for worklists and boards  https://review.openstack.org/23547217:38
SotKfixed!17:38
SotKalso fixed the redirect to dashboard and added a way to make worklists private on the edit screen in https://review.openstack.org/23547617:39
*** mrmartin has joined #storyboard17:42
openstackgerritPedro Alvarez Piedehierro proposed openstack-infra/storyboard: RFC: Add story_title to tag events.  https://review.openstack.org/25156617:55
pedroalvarezI hoped the 79 chars limit wasn't in use here :)17:56
SotKafraid so :)17:56
openstackgerritPedro Alvarez Piedehierro proposed openstack-infra/storyboard: RFC: Add story_title to tag events.  https://review.openstack.org/25156617:56
pedroalvarezso much noise, sorry17:56
pedroalvarezI should learn how to run the tests locally17:57
SotKthe pep8 tests are easy to run17:57
SotK`tox -e pep8`17:57
SotKthe other ones "should" be easy too, but I haven't successfully run them except in the vm that results from doing `vagrant up`17:58
SotK(with `tox -e py27` and `tox -e py34`17:58
SotK)17:58
pedroalvarez  pep8: commands succeeded17:59
pedroalvarez  congratulations :)17:59
* SotK will resend the project_groups thing in the morning :)18:11
SotKnight o/18:11
Zaracool, s'fine :)18:12
Zaranight!18:12
ZaraI'm off, too, night-night, storyborad18:24
Zaraerm, storyboard18:25
ZaraI can spell your name, little storyboard, honest.18:25
*** cody-somerville has joined #storyboard19:05
*** cody-somerville has quit IRC19:05
*** cody-somerville has joined #storyboard19:05
*** mrmartin has quit IRC19:48
*** openstackgerrit has quit IRC20:47
*** openstackgerrit has joined #storyboard20:48

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!