Tuesday, 2015-12-01

*** openstackstatus has quit IRC00:24
*** openstackstatus has joined #storyboard00:26
*** ChanServ sets mode: +v openstackstatus00:26
openstackgerritPedro Alvarez Piedehierro proposed openstack-infra/storyboard-webclient: RFC: Add tag/untag story to dashboard events.  https://review.openstack.org/25160501:16
*** openstackgerrit has quit IRC01:22
*** openstackgerrit has joined #storyboard01:22
*** mrmartin has joined #storyboard06:04
*** mrmartin has quit IRC06:43
*** coolsvap has quit IRC08:09
*** mrmartin has joined #storyboard08:37
*** coolsvap has joined #storyboard09:04
*** wuhg has joined #storyboard10:09
*** wuhg has left #storyboard10:11
pedroalvarezI looked yesterday at the forth task listed here (https://storyboard.openstack.org/#!/story/2000435) and given that it works on my really old instane of storyboard (Baserock one) I guess there was a regression at some point12:11
pedroalvarezI'll try to find out this evening :)12:14
Zarahahaha, just saw the comments there :P (and thanks!)12:16
ZaraI wanted to go further without checking with others.12:16
Zara^ good plan, +12 :P12:16
SotKpedroalvarez: the patches seem sensible to me, and work fine12:22
pedroalvareznote that I was talking about '"task_assignee_changed" event is not being used when changing assignee'12:30
pedroalvarezfor the patches sent, I mostly think they are not ready because for old subscription_events we won't have story_title12:30
pedroalvarezZara: hehe yeah, that was me doing English a bit late12:38
Zara:) I think it improved it. :P12:40
Zarawow, two emoticons in one sentence; somebody stop me.12:40
ZaraI can't be trusted with punctuation marks.12:41
SotKpedroalvarez: it should be fairly easy to write a migration to fix that if you feel like it13:05
pedroalvarezit should! I'll try13:07
SotKin other news, preferences don't appear to be broken on my test instance13:08
*** mase_x200 has joined #storyboard13:08
Zara\o/13:09
SotKthis is going to be tough to debug without access to the box I suspect, I'll ask in -infra13:10
SotKhmm, I can reproduce it for a single preference locally13:16
* SotK thinks that the boolean preferences patch is probably to blame13:17
Zara:S13:17
*** persia has joined #storyboard13:18
SotKI suggest we revert that patch13:19
SotK(sorry for the messy history it will cause)13:19
ZaraI'm looking at it now; the logic seemed fine to me so is there something else misbehaving with it that's causing the issue?13:20
Zaraor have we missed something obvious in that patch :/13:21
ZaraI guess there's nothing for if not pref and value is none13:21
SotKI'm not entirely sure, but I don't think anything else has touched preferences since they were last working13:22
Zara(whereas previously that would've been covered by the second bit edited.)13:22
SotK`if not pref and value is None` should do nothing (doesn't exist, and nothing to create)13:22
Zararight, whereas I'm guessing that before it would have been doing the code under 'if not pref and value' (otherwise why is the 'is not None' needed there at all?)13:23
SotKnope, because in conditions `None` evaluates to `False`13:24
SotKthe `is not None` was added because if the `value == False` then there is a preference that should be added (whatever preference it is, set to False)13:25
SotKso `value is not None` is True for all cases except a deliberately unset preference13:26
SotKthe preference that is broken on my test instance has somehow ended up with its value set to `True`, and is now refusing to update13:27
ZaraI'm trying to work out how that patch would result in that, seems really weird.13:33
SotKits very weird13:34
SotKI think the issue in storyboard.o.o is different though, since the values all still appear to be text13:35
Zara(the pref.cast_value updates to match the value as long as there is a preference and the value is not none. if the value is none, the preference is deleted.) that seems fine for a case where something has its value set to true, which is the area where things are going weird on your instance. gah.13:36
Zaraso either there's something going wrong with the preference being deleted, or for some reason it's not being picked up as 'none' when it should be13:38
Zarathe text thing would suggest the latter at a guess13:38
*** mrmartin has quit IRC13:39
Zara(but that's just a guess. I'm wary of reverting unless we're sure it's that patch, since we might end up having to revert and then replace a few if it's not.)13:39
* SotK isn't sure what other patch it could possibly be :/13:40
SotKI'll investigate some more13:40
Zaraokay. I did have issues setting preferences with a different patch that you submitted, so that might hold a clue.13:41
Zarawell, unsetting preferences.13:41
Zara(it was the plugin email one: https://review.openstack.org/#/c/241665/)13:42
SotKare the rest of the preferences working on your test instance?13:45
Zaraas far as I could tell, I should check more thoroughly now13:45
Zaraooh, but that might have been before pulling latest from master13:47
Zaraso if it's broken now, that'll be some corroboration13:47
pedroalvarezgit bisect! \o/13:48
Zarathey still seem fine for me. just to check, are these user preferences in profile?13:48
SotKyeah13:48
Zarathey work fine for me, both storyboard and storyboard-webclient pulled from master13:48
pedroalvarezThey don't work for me13:49
Zaraooh, hang on13:49
Zarajust rebased, now they're broken13:49
Zara\o/13:49
SotKgah, why are they working for me?!13:49
Zaraand now they're not13:50
Zarawat13:50
ZaraI think I refreshed the page too fast before13:50
Zarathey seem fine again.13:50
Zaraare we just checking that the boxes display accurately, or are you using some other method to see if they work?13:51
SotKI was looking at the response to the POST request using Chrome's debugging tools13:52
SotKand checking it matches the data sent in the request13:52
SotKalso by refreshing the page and checking the boxes were how I left them13:52
Zaraokay, mine might still be buggy with a UX that's working as expected, I'll have a look.13:52
Zara... my request looks fine, as far as I can tell13:55
Zaraweirdly it mentions tags added as being set to 'true', but there's no box for that (maybe it comes under 'story details changed'?13:58
* pedroalvarez needs to implement that box too13:59
Zarahm, and the page size for projects and stories for project groups are set to '10', but there's no way to change it yet.13:59
SotKyou can change that on the relevant pages14:00
SotKI don't know how to represent that nicely in the preferences UIO14:00
SotK-O14:00
Zarayeah, I don't think it changes it permanently, iirc?14:00
SotKit should do14:00
Zarahm, I thought i made a story; seems to work in my instance so maybe it was another thing that was strange on storyboard.openstack.org... or I'm imagining things14:01
Zaraah, yeah, I added tasks for it in API paging14:02
SotKprobably didn't work on storyboard.o.o because of the preferences being broken on there :P14:02
Zarayup, that's what I was thinking. it seems fine on my test instance.14:03
Zarawhyyyyy are they different14:03
SotKdoes anyone care about the data on storyboard.sotk.co.uk?14:10
paulsherwoodnot me14:12
Zaranope14:12
* SotK backs it up prior to potential obliteration to be on the safe side14:13
ZaraI just lose some strangely named demo worklists and boards14:13
Zarain general I like the strange little test stories that have popped up on there, but there's nothing essential.14:13
SotKdatabase appears to have survived upgrading mysql, s'all good :)14:14
Zara\o/14:17
*** mase_x200 has quit IRC14:36
SotKhooray, preferences are broken on storyboard.sotk.co.uk (which is now using a dump of the production db)14:53
* SotK has a place to debug!14:53
Zarayay!14:53
SotKoh dear, it looks like the db is full of duplicate preference records15:04
SotKthis makes no sense15:09
SotKeg: my preferences http://paste.baserock.org/uponigexif15:10
*** mrmartin has joined #storyboard15:11
pedroalvarezwow15:12
SotKthat explains why it's broken at least, but I don't know how best to fix it15:14
* SotK tries blowing away his preferences so they get recreated15:14
Zaraoh wait those were your latest preferences?! I thought just some strange things had happened on the 25th of june. well, I guess those aren't mutually exclusive15:16
SotKthe recreated ones are sensible15:16
SotKindeed, that was every preference stored in the db related to my user id15:17
SotKso they weren't working properly because there were multiple of the same record, so there was no guarantee you'd change the right one15:18
pedroalvarezMy db  has the same issues as far I can tell: http://paste.baserock.org/lawilubena15:21
SotKouch, looks like it15:22
SotKeven the newest users in the prod db have the same issue15:22
SotKso I don't think it's fixed15:23
*** mrmartin has quit IRC15:24
pedroalvarezmake the key (id , user_id, key) ?15:25
pedroalvarezI'm not sure about what I just said, but who knows15:25
* SotK is very confused as to why it happens in the production db but not his test db15:26
* SotK wonders if it is happening in Zara's db or not15:31
ZaraI should check...15:33
*** mrmartin has joined #storyboard15:33
Zara(sorry, got distracted by an email about a flat; bit all over the place today.)15:34
SotKno problem :)15:35
Zarahttp://paste.baserock.org/obivucayot15:36
SotKwhaaaat15:37
Zaramine's tiny!15:37
SotKstill has some duplicates though :/15:38
* pedroalvarez sees 2 different user_ids15:38
SotKoh yeah, ignore me :)15:39
Zarayeah15:39
Zaraahahahaha15:39
ZaraI get weird 500 errors when I search for things, that mention users and fulltext, so I don't think I updated that bit right. that's one difference between my db and master.15:40
* SotK wonders how the machine that pedroalvarez's paste is from was set up15:40
pedroalvarezusing my ansible role :)15:40
SotKpedroalvarez: any chance you could paste the log of a user accessing the preferences page for the first time?15:42
pedroalvareztell me how to generate that log15:43
pedroalvarezhang on.. my database is not fresh, it has all the data in this old instance we have in Baserock15:44
pedroalvarezsorry15:46
pedroalvarezso it probably works, but the database in production for any storyboard instance is wrong15:47
Zarawhy is mine the only one that mentions plugin_email_enable?15:50
SotKbecause we didn't merge the UI for setting that in production yet :)15:51
*** mrmartin has quit IRC15:52
SotKpedroalvarez: add some more detail like http://paste.baserock.org/lasomireza and then either create a new user and go to the preferences page as that user, or delete the preferences db records for an existing one and go to the preferences page with that user15:52
* SotK is worried, because http://paste.baserock.org/qiyofoxiji suggests to him that it is still broken15:53
* pedroalvarez will provide logs16:04
SotKthank you pedroalvarez :)16:04
pedroalvarezno problem! I'll help whenever possible16:06
pedroalvarezI wonder if you want that log with a clean database or with the dumped (and "corrupted") one16:07
SotKthe dumped one is probably best16:08
Zaraokay, I'm off to see a guy about a flat. should be around later tonight.16:11
Zaranight-for-now16:11
SotKnight16:11
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient: Add a dashboard page for boards and worklists  https://review.openstack.org/23197316:41
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient: Update $resource wrappers to use new permissions API  https://review.openstack.org/23547516:41
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient: Add UI for complex permissions on boards and worklists  https://review.openstack.org/23547616:41
pedroalvarezI ended up being a bit busy today sorry16:42
openstackgerritMerged openstack-infra/storyboard-webclient: Align story subscription stars on right  https://review.openstack.org/25041716:42
SotKno problem :)16:43
* SotK writes a thing to work around the problem until we can figure out how best to fix it16:46
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Work around "duplicate preferences" issue  https://review.openstack.org/25197017:00
SotKthat should "fix" the preferences on storyboard.o.o17:01
SotK(by updating all of the duplicated preferences rather than just one of them)17:02
*** mrmartin has joined #storyboard17:07
pedroalvarezhaha17:14
*** mrmartin has quit IRC17:21
*** mrmartin has joined #storyboard17:22
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient: Add plugin_email_enabled preference by default  https://review.openstack.org/24166517:51
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient: Fix checkboxes on preferences page  https://review.openstack.org/25200217:58
ZaraI return!18:43
SotKhi Zara18:43
Zarahi there18:43
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient: Add a preview button for story descriptions  https://review.openstack.org/25205520:39
SotKshould probably add one on everything else that can be markdown too, but I don't have time right now :)20:39
*** mrmartin has quit IRC21:50
*** mase_x200 has joined #storyboard21:54
*** mase_x200 has quit IRC22:41
*** mase_x200 has joined #storyboard23:24
*** mase_x200 has quit IRC23:29
*** mase_x200 has joined #storyboard23:34
*** mase_x200 has quit IRC23:40

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