Thursday, 2018-02-15

*** jamesmcarthur has joined #storyboard02:01
*** jamesmcarthur has quit IRC02:50
*** jamesmcarthur has joined #storyboard03:06
*** jamesmcarthur has quit IRC03:10
*** jamesmcarthur has joined #storyboard03:42
*** jamesmcarthur has quit IRC04:08
*** udesale has joined #storyboard04:13
*** jamesmcarthur has joined #storyboard04:57
*** jamesmcarthur has quit IRC05:02
*** udesale has quit IRC05:48
*** udesale has joined #storyboard05:48
*** udesale_ has joined #storyboard07:07
*** udesale has quit IRC07:09
*** udesale__ has joined #storyboard07:23
*** udesale_ has quit IRC07:26
*** jamesmcarthur has joined #storyboard09:25
*** jamesmcarthur has quit IRC09:30
*** udesale_ has joined #storyboard10:30
*** udesale__ has quit IRC10:33
*** udesale__ has joined #storyboard11:14
*** udesale_ has quit IRC11:16
*** udesale__ has quit IRC11:30
*** jamesmcarthur has joined #storyboard12:45
*** jamesmcarthur has quit IRC12:52
*** udesale has joined #storyboard13:25
*** jamesmcarthur has joined #storyboard13:49
*** jamesmcarthur has quit IRC14:03
*** jdandrea_ has quit IRC14:40
*** jdandrea has joined #storyboard14:41
*** jamesmcarthur has joined #storyboard14:44
*** jamesmcarthur has quit IRC14:49
*** jamesmcarthur has joined #storyboard16:39
*** jamesmcarthur has quit IRC16:42
*** jamesmcarthur has joined #storyboard16:43
*** udesale has quit IRC16:44
*** jamesmcarthur has quit IRC17:50
*** persia has quit IRC18:39
*** persia_ has quit IRC18:39
*** thrace has quit IRC18:39
*** jtomasek has quit IRC20:34
*** openstack has joined #storyboard21:45
*** ChanServ sets mode: +o openstack21:45
SotKdiablo_rojo: do you fancy voting +A on https://review.openstack.org/#/c/530656/ so the New Story patch goes through?22:30
dhellmannSotK, diablo_rojo : I have a dev server running and I've managed to get the UI set up and I can login. So I have an empty database with no projects. How do I add a project? Is there a UI for that?22:57
openstackgerritMerged openstack-infra/storyboard-webclient master: Allow branches to be browsed by project_id  https://review.openstack.org/53065622:58
openstackgerritMerged openstack-infra/storyboard-webclient master: Add a "New Story" view  https://review.openstack.org/52621922:59
dhellmannah, making myself an admin seems to enable that22:59
dhellmannwell, now I get "Master branch of project" not found23:03
dhellmannso I've created a project through the UI but I don't see a way to give it branches.23:03
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient master: Disable closing modals when backdrop is clicked  https://review.openstack.org/54515623:06
diablo_rojodhellmann, when doing testing I add projects to the ./etc/projects.yaml like in the option step here for seeding the database: https://docs.openstack.org/infra/storyboard/install/development.html#optionalsteps23:07
diablo_rojodhellmann, when doing testing I add projects to the ./etc/projects.yaml like in the option step here for seeding the database: https://docs.openstack.org/infra/storyboard/install/development.html23:07
dhellmanndiablo_rojo : is that the expected way to set up a project? maybe the web client shouldn't have a form for doing it?23:08
diablo_rojoWell, when we set it up, its a change in the project-config projects.yaml normally.23:08
SotKyeah, currently there isn't a way to add branches in the UI, but its supported in the API23:09
diablo_rojoSotK, how hard would it be to add something in the UI for adding branches?23:09
SotKhttps://docs.openstack.org/infra/storyboard/webapi/v1.html#post--v1-branches23:10
SotKI think a body like http://paste.openstack.org/show/673217/ in the POST request would work23:10
dhellmanndiablo_rojo : I would almost rather just remove the form from the UI and say that the way to add projects is via the import command23:11
dhellmannwe only need 1 way to do it23:11
dhellmannideally we'd have a command line tool that didn't have to talk directly to the db, too, but that can come later23:11
dhellmannok, I created a new database, added my project to the projects list, ran the importer, reloaded the web client, saw the project, and still get the same error23:12
dhellmannI have an entry in the branches table23:13
dhellmannselect projects.name, branches.name from projects, branches where projects.id = branches.project_id;23:14
dhellmannopenstack/governance|master23:14
diablo_rojoHmmm. Whats the error?23:18
dhellmannstoryboardclient._apiclient.exceptions.NotFound: Master branch of project 923 not found. (HTTP 404)23:23
diablo_rojoThats really weird. Sounds like something maybe persisted from the first issue. If you added the project to the list and then ran the importer it should be all good.23:26
diablo_rojoI can try it on my local migration testing vm.23:27
diablo_rojoWhat project?23:27
diablo_rojoSotK, any ideas?23:27
diablo_rojofungi, ?23:27
dhellmannit's possible this is related to me using sqlite instead of mysql23:27
dhellmannI'm using a local database with my own projects to try to track down the source of the bug that let the API insert a broken board into the database23:28
dhellmannso I'm not connected to anything in production except the oauth service23:28
diablo_rojoAhh okay so pretty different environment then.23:30
dhellmannif I can't sort it out I'll go to the trouble of installing mysql23:30
dhellmannit really shouldn't be necessary if the ORM is being used properly, though23:31
diablo_rojoAgreed.23:31
diablo_rojoAnd you tried SotK's POST suggestion?23:31
diablo_rojoIf direct manipulation of the db didnt work.23:32
dhellmannas far as I can tell, the data is actually in the database23:32
dhellmannwhen I query it, I certainly see it23:32
diablo_rojoHuh, so the UI just isnt picking it up?23:32
dhellmannthe API isn't picking it up23:33
dhellmannthe project is there, but when I try to add a task I get the error because the branch isn't found23:33
diablo_rojorestart the api service? Not exactly an ideal fix, but..?23:34
dhellmannoh, I keep restarting it every time I add more debugging code to the service23:40
diablo_rojoI look forward to that patch :)23:44
dhellmannok, it would help if my client script used the correct project id23:45
dhellmannah, interesting23:45
dhellmannapparently one is expected to pass lanes when creating a board?23:45
diablo_rojoI didn't think that was required, but maybe a single one is just like a single task is required when making a story?23:46
dhellmannwell, not having any throws a 500 because you can't iterate over None23:46
diablo_rojoSo then I would say yes, at least one is required.23:47
fungian unfortunate assumption23:47
dhellmannI wish I understood why these 500 errors leave the database trashed23:52
dhellmannare we not using transactions?23:52
dhellmannok, allowing empty lists for lanes on a worklist lets me create it, then trying to create the worklist separately I get "IntegrityError: NOT NULL constraint failed: worklist_filters.type"23:56
dhellmannand I am indeed not passing a "type"23:57
* dhellmann wonders what that is23:57
dhellmannperhaps item_type?23:58
diablo_rojoSeems reasonable.23:59

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