Monday, 2016-02-08

*** jtomasek__ has joined #storyboard07:15
*** jtomasek_ has joined #storyboard07:24
*** openstackgerrit has quit IRC09:02
*** openstackgerrit has joined #storyboard09:02
*** pedroalvarez_ is now known as pedroalvarez09:58
Zaramoooooorning stoooooooooryboard10:29
SotKmorning!10:29
Zaranoooooooo, I left my headphones at hooooooome10:49
pedroalvarezmorning!11:46
pedroalvarezjust noticed, drag&drop of lanes, when creating a board (new board dialog) is a bit weird11:46
pedroalvarezis not a big deal,  though. I thought i had to share it here :)11:47
SotKpedroalvarez: what weirdness are you seeing?12:16
pedroalvarezodd.. I can't reproduce ... :(12:18
pedroalvarezwell, this was me reporting non-existing bugs again. :)12:18
*** krotscheck_dcm is now known as krotscheck12:39
Zarastill looking at the timeline events bug. still confused. removed most of the stuff here so it just ran the else statement, and that fixed things. https://github.com/openstack-infra/storyboard/blob/master/storyboard/db/api/base.py#L12512:47
Zaraso then I tried editing tasks.py so that it would just run the else statement. I thought I'd just need to set in_request to false12:47
Zaraso tried this; no dice. http://paste.openstack.org/show/486275/12:48
Zaratried a few variants, increasingly strange, and nothing worked. am probably missing something obvious.12:50
pedroalvarezwhat is the timeline events bug? related to the one reported here? https://storyboard.openstack.org/#!/story/200043512:52
Zarayeah12:53
Zarahttps://storyboard.openstack.org/#!/story/200047812:53
pedroalvarezthen I found the place that makes everything go wrong, but I have no idea about the best approach to fix it12:53
pedroalvarezI hope I can find the place again, hold on12:54
Zarahaha, yeah I found what changed but yeah, don't know how to fix it (except removing the code, anyway...)12:54
pedroalvarezso, what I found is that original_task here http://git.openstack.org/cgit/openstack-infra/storyboard/tree/storyboard/api/v1/tasks.py#n36912:56
pedroalvarezchanges when we get the updated_task a few lines later12:56
Zaraah, I'd found orginal_task and updated_task were the same, but I didn't know exactly where it happened12:57
pedroalvarezah, then I guess you already know more about the problem than me :)12:58
SotKI guess its some sqlalchemy weirdness if making it not use the same session for each makes it work12:59
Zarayeah, the changes in get_session here seem to cause that problem https://review.openstack.org/#/c/155751/4/storyboard/db/api/base.py13:00
SotKprobably that updating a thing in the database updates the in-memory versions of that thing in the same session13:00
SotKI wonder if changing the line pedroalvarez linked to `original_task = copy.deepcopy(tasks_api.task_get(task_id))` helps at all13:01
* Zara tries it13:04
Zaraah, copy isn't defined in there13:04
SotKyou'll need to `import copy` :)13:05
Zarahaha13:05
Zarawhere does it live?13:05
Zara(or is 'import copy as copy' sufficient)13:05
*** krotscheck has quit IRC13:06
SotK`import copy` is sufficient13:06
ZaraYES THAT WORKED13:06
Zarayaaaaay \o/13:07
pedroalvareznice!!!13:14
pedroalvarezlooking forward to that fix :D :D :D13:14
Zaragah I'm so pleased, I've been bashing my head against it for about a week13:15
Zarathe best part was realising it had been a bug since last March.13:15
pedroalvarezhah13:16
pedroalvarezZara: did you use git bisect for that?13:16
Zarapedroalvarez: I had to do it manually because the API and webclient would get out of sync, and I couldn't install the old version of the webclient13:17
pedroalvarezugh..13:18
Zarayeah, it was greeeeat :/13:18
pedroalvarezyeah, that's why I gave up when debugging when the bug was intruduced13:18
Zarahahaha13:18
*** krotscheck has joined #storyboard13:18
ZaraI got to the bit where I knew exactly what had changed but didn't know how to fix it... so thanks for the help, everyone! :D13:18
* Zara writes commit message13:18
pedroalvarezZara: good work :)13:19
openstackgerritZara proposed openstack-infra/storyboard: Fix Bugs in Timeline Events  https://review.openstack.org/27738613:19
openstackgerritZara proposed openstack-infra/storyboard: Fix Bugs in Timeline Events  https://review.openstack.org/27738613:25
Zarathere, I think it's ready now. :)13:26
openstackgerritAdam Coldrick proposed openstack-infra/storyboard: Don't add non-existent items when resolving lists  https://review.openstack.org/27630313:38
Zara:D13:38
* Zara will test shortly13:38
*** b3rnard0_away is now known as b3rnard013:49
* Zara starts looking at task metadata...13:58
Zarawill I need an alembic migration for task metadata? I'm guessing I need to update the tasks table in wmodels.py, then update the endpoints for tasks14:47
Zara(not sure if you need a migration for updating a table or just creating one, would guess you would)14:48
SotKthe database layout is defined in storyboard/db/models.py14:54
SotKstoryboard/api/v1/wmodels.py is defines the WSME types used by the endpoints14:54
Zarahm, for some reason I wrote wmodels.py but meant models.py...14:54
SotK(you'll need to edit both I expect)14:55
SotK(and yes, you'll need a migration)14:55
SotKyou can autogenerate a skeleton migration that you can then fine-tune once you've made changes to models.py14:55
SotKambiguous sentence was ambiguous14:55
* SotK tries again14:56
SotKwhen you've made changes to models.py, you can autogenerate a skeleton migration that you can then fine-tune14:56
Zaraheh14:57
SotK`sudo tox -e venv "storyboard-db-manage --config-file etc/storyboard.conf revision -m $YOUR_MIGRATION_NAME_HERE --autogenerate"`14:57
Zara:> is that documented anywhere?14:59
SotKI think its in a README in the storyboard repo somewhere14:59
SotKyeah, its in storyboard/db/migration/README14:59
Zaraoh, huh15:00
ZaraI looked around on the docs pages but didn't notice that...15:00
Zaraah, there's a lot of detail there, thanks15:01
openstackgerritMerged openstack-infra/storyboard: Don't add non-existent items when resolving lists  https://review.openstack.org/27630315:05
Zarahm... my migration turned out long...16:02
SotKmost of it will be unneeded16:03
* SotK hasn't yet figured out why that happens16:03
Zaraah, okay. I was looking at the boards/worklists one for reference and I thought it was weird that mine had all this stuff in but that one didn't16:03
Zaramakes sense if you manually removed it :P16:03
* Zara also notes that `import sqlalchemy.dialects import mysql` has vanished in favour of `import storyboard`16:04
Zaras/import/from16:05
SotKrunning it complained about needing to import storyboard, and the other import was for one fo the things I manually removed16:06
Zaraah, right16:07
openstackgerritZara proposed openstack-infra/storyboard: Add column for task links  https://review.openstack.org/27748116:15
ZaraI sent the first bit... not very sure of what I'm doing, but easier to comment on a thing than on nothing.16:15
*** kencjohnston has joined #storyboard16:17
pedroalvarezis it the idea a relation 1:116:18
pedroalvarez1 task 1 link?16:18
ZaraI think so, it might make sense to have multiple ones, though I'm not sure how to represent it... I thought I'd start with the easier option and make it more complicated if we needed it.16:25
Zarathough I may have just done it completely wrong anyway =D16:25
openstackgerritZara proposed openstack-infra/storyboard: Add column for task links  https://review.openstack.org/27748116:28
Zaraoops, rechecked other patch but it was actually failing because things weren't in alphabetical order...16:51
* Zara fixes16:52
openstackgerritZara proposed openstack-infra/storyboard: Fix Bugs in Timeline Events  https://review.openstack.org/27738616:53
openstackgerritZara proposed openstack-infra/storyboard-webclient: Rename board and worklist controllers  https://review.openstack.org/27221117:07
Zarahadn't rebased that in a while...17:08
openstackgerritZara proposed openstack-infra/storyboard: Add column for task links  https://review.openstack.org/27748117:19
Zara(misc pep8 style things)17:19
ZaraI'm off, 'night, all!18:23
Zaratask links are going well, expect patches soon.18:23
*** jtomasek_ has quit IRC20:00
*** mrmartin has joined #storyboard20:52
*** mrmartin has quit IRC20:54
*** kencjohnston has quit IRC22:01

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