Saturday, 2017-03-11

*** diablo_rojo has quit IRC02:03
SotKmistral imported fine except that there are some branches, so we'll need the non-master branches work merged before that11:44
* SotK will send his patch for unique emails when he returns11:44
*** jtomasek has joined #storyboard14:15
zara_the_lemur__well, I just got up, since I stayed up 'til like 5am playing an RPG, but should be around in the early evening15:41
*** openstackgerrit has joined #storyboard16:19
openstackgerritAdam Coldrick proposed openstack-infra/storyboard master: Add a UUID to the temporary email address  https://review.openstack.org/44459316:19
zara_the_lemur__oh, nice16:37
* SotK also sends https://review.openstack.org/44459516:50
zara_the_lemur__how come it's pip2?16:55
SotKlaunchpadlib seems to be python2 only so I am making sure the right pip gets used16:57
SotKthough having said that if storyboard gets installed with pip3 then the script won't work anyway16:57
SotKbut I don't think storyboard will either, and at least this way puppet won't fail16:57
zara_the_lemur__sure, thought I should check since it looked like there were a few things out there called pip2 (eg: https://pypi.python.org/pypi/pip2/0.0.1.dev1)17:16
zara_the_lemur__would you mind submitting a thing based on http://paste.openstack.org/show/602332/ as a docs patch sometime? 'Migrating Launchpad Projects to StoryBoard' or something like that so it doesn't get lost? (gonna review stuff now, and mayyybe remove the story_types things)18:39
SotKyeah I can do18:57
SotKI was considering just doing that in the first place but figured I'd do a paste for now18:57
zara_the_lemur__sure18:57
zara_the_lemur__I wondered about sending a thing based on it but it's your work, so lucky you18:59
zara_the_lemur__hm, https://review.openstack.org/#/c/436702/ is still in need of reviews19:15
zara_the_lemur__I will poke people about it in the week.19:15
zara_the_lemur__now I've noticed inconsistent quotation marks in the 'install-storyboard' command in the puppet manifest, but I feel like sending a patch for that is just weird...19:18
zara_the_lemur__(as in, that one uses double quotes for the command, none of the others do)19:19
SotKthe double quotes are deliberate, since that command has a variable being substituted into it19:21
zara_the_lemur__that made me think double quotes should be the default, but then actually it's useful to see at a glance which commands have things being substituted19:22
zara_the_lemur__so ignore me =D19:22
SotKalso the linter complains if you use double quotes by default, which I how I discovered that reasoning19:23
zara_the_lemur__ah, did not know19:24
zara_the_lemur__evidently.19:24
* SotK only learnt this today :)19:25
zara_the_lemur__still got there first ;_;19:26
zara_the_lemur__one day I will win because it is totally a competition19:27
zara_the_lemur__hm our 'add to worklist' search needs refining19:47
zara_the_lemur__(it allows things other than worklists to be the result of a search)19:47
zara_the_lemur__(browse)19:47
SotKha, that seems annoying19:47
zara_the_lemur__I should try adding to the worklist 'Adam Coldrick' and seeing what happens xD19:47
zara_the_lemur__actually it's not htat19:48
SotKwait how did you manage that?19:48
zara_the_lemur__ignore me19:48
zara_the_lemur__well not totally19:48
zara_the_lemur__it does search on worklists19:48
zara_the_lemur__but the user filter is for 'users who are assigned a thing in that worklist'19:48
zara_the_lemur__I think19:48
zara_the_lemur__so hm, can see a need for it, ui is a bit confusing.19:48
* SotK believes it to likely be filtering by creator ID19:49
zara_the_lemur__oh, yeah19:49
SotKI suspect that user_id would be more useful than creator_id there19:50
zara_the_lemur__probably19:50
zara_the_lemur__I need to think a bit about how to make that interface clearer19:51
SotKsince that should take into account the current set of people with permission19:51
SotKs19:51
zara_the_lemur__heh19:51
* zara_the_lemur__ is running the cloudkitty migration to see the users bug in action20:07
SotKyou'll need to already have the user that triggered the bug in your database20:07
zara_the_lemur__oh ha, I don't know if I do or not20:08
zara_the_lemur__I only have monasca in mine already20:08
zara_the_lemur__(in terms of migrated projects)20:08
zara_the_lemur__the patch looks fine20:09
SotKlooking at when the user was created in my db I suspect they are also from cloudkitty20:09
SotKso maybe you won't already need them20:09
zara_the_lemur__guess we'll find out20:09
zara_the_lemur__yep, failed with the dupliate error20:20
zara_the_lemur__*duplicate20:20
SotK\o/20:20
zara_the_lemur__running it again with the patch20:21
zara_the_lemur__this time it succeeded \o/20:43
zara_the_lemur__I wonder how many near-duplicate users this will end up leaving in the db20:46
zara_the_lemur__haha, too used to python import statements21:02
zara_the_lemur__just tried to do `from users select * ;` for a sql query....21:02
zara_the_lemur__(well first I actually did `from users select 8 ;` because I failed to adequately hold shift for the asterisk..... )21:03
zara_the_lemur__anyway all looks fine with this patch21:03
zara_the_lemur__hm.... does the search bar on the 'users' page (under 'admin') do anything at all?21:06
zara_the_lemur__ah okay yes21:06
zara_the_lemur__but only when you press 'enter'; it doesn't search as you type21:06
zara_the_lemur__anyway... so iiuc, this might mean that some existing users' emails will be changed in the db if we import projects that they are involved in21:09
zara_the_lemur__which could be a bit surprising if they've been getting notifications21:09
SotKhmm, it should leave the emails alone for existing users I think?21:10
zara_the_lemur__well, I looked at the users page and searched the users with uuids in their emails21:11
zara_the_lemur__that brought up one user per name21:11
zara_the_lemur__changing the email of that user changed the email address for the one in the db with the uuid, and removed the uuid from their name21:11
zara_the_lemur__or I'm getting confused21:11
zara_the_lemur__could easily be the latter21:11
zara_the_lemur__example: select * on users gives me the first thing here: http://paste.openstack.org/show/602407/  then I search user in web interface and change email like: http://imgur.com/a/6aqGY  . run the select again and it gives me the second thing in the paste.21:16
zara_the_lemur__(well, select * on users gives me more than just that record, but that's the relevant one)21:17
zara_the_lemur__(I didn't change the full name from the thing it suggested by default btw.)21:17
SotKthat all looks like correct behaviour to me21:21
zara_the_lemur__I was indeed getting confused; thought I had some of these users in my db before.21:23
zara_the_lemur__I didn't.21:23
zara_the_lemur__patch looks fine then21:31

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