*** jamesmcarthur has joined #storyboard | 02:01 | |
*** jamesmcarthur has quit IRC | 02:50 | |
*** jamesmcarthur has joined #storyboard | 03:06 | |
*** jamesmcarthur has quit IRC | 03:10 | |
*** jamesmcarthur has joined #storyboard | 03:42 | |
*** jamesmcarthur has quit IRC | 04:08 | |
*** udesale has joined #storyboard | 04:13 | |
*** jamesmcarthur has joined #storyboard | 04:57 | |
*** jamesmcarthur has quit IRC | 05:02 | |
*** udesale has quit IRC | 05:48 | |
*** udesale has joined #storyboard | 05:48 | |
*** udesale_ has joined #storyboard | 07:07 | |
*** udesale has quit IRC | 07:09 | |
*** udesale__ has joined #storyboard | 07:23 | |
*** udesale_ has quit IRC | 07:26 | |
*** jamesmcarthur has joined #storyboard | 09:25 | |
*** jamesmcarthur has quit IRC | 09:30 | |
*** udesale_ has joined #storyboard | 10:30 | |
*** udesale__ has quit IRC | 10:33 | |
*** udesale__ has joined #storyboard | 11:14 | |
*** udesale_ has quit IRC | 11:16 | |
*** udesale__ has quit IRC | 11:30 | |
*** jamesmcarthur has joined #storyboard | 12:45 | |
*** jamesmcarthur has quit IRC | 12:52 | |
*** udesale has joined #storyboard | 13:25 | |
*** jamesmcarthur has joined #storyboard | 13:49 | |
*** jamesmcarthur has quit IRC | 14:03 | |
*** jdandrea_ has quit IRC | 14:40 | |
*** jdandrea has joined #storyboard | 14:41 | |
*** jamesmcarthur has joined #storyboard | 14:44 | |
*** jamesmcarthur has quit IRC | 14:49 | |
*** jamesmcarthur has joined #storyboard | 16:39 | |
*** jamesmcarthur has quit IRC | 16:42 | |
*** jamesmcarthur has joined #storyboard | 16:43 | |
*** udesale has quit IRC | 16:44 | |
*** jamesmcarthur has quit IRC | 17:50 | |
*** persia has quit IRC | 18:39 | |
*** persia_ has quit IRC | 18:39 | |
*** thrace has quit IRC | 18:39 | |
*** jtomasek has quit IRC | 20:34 | |
*** openstack has joined #storyboard | 21:45 | |
*** ChanServ sets mode: +o openstack | 21:45 | |
SotK | diablo_rojo: do you fancy voting +A on https://review.openstack.org/#/c/530656/ so the New Story patch goes through? | 22:30 |
---|---|---|
dhellmann | SotK, 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 |
openstackgerrit | Merged openstack-infra/storyboard-webclient master: Allow branches to be browsed by project_id https://review.openstack.org/530656 | 22:58 |
openstackgerrit | Merged openstack-infra/storyboard-webclient master: Add a "New Story" view https://review.openstack.org/526219 | 22:59 |
dhellmann | ah, making myself an admin seems to enable that | 22:59 |
dhellmann | well, now I get "Master branch of project" not found | 23:03 |
dhellmann | so I've created a project through the UI but I don't see a way to give it branches. | 23:03 |
openstackgerrit | Adam Coldrick proposed openstack-infra/storyboard-webclient master: Disable closing modals when backdrop is clicked https://review.openstack.org/545156 | 23:06 |
diablo_rojo | dhellmann, 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#optionalsteps | 23:07 |
diablo_rojo | dhellmann, 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 | 23:07 |
dhellmann | diablo_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_rojo | Well, when we set it up, its a change in the project-config projects.yaml normally. | 23:08 |
SotK | yeah, currently there isn't a way to add branches in the UI, but its supported in the API | 23:09 |
diablo_rojo | SotK, how hard would it be to add something in the UI for adding branches? | 23:09 |
SotK | https://docs.openstack.org/infra/storyboard/webapi/v1.html#post--v1-branches | 23:10 |
SotK | I think a body like http://paste.openstack.org/show/673217/ in the POST request would work | 23:10 |
dhellmann | diablo_rojo : I would almost rather just remove the form from the UI and say that the way to add projects is via the import command | 23:11 |
dhellmann | we only need 1 way to do it | 23:11 |
dhellmann | ideally we'd have a command line tool that didn't have to talk directly to the db, too, but that can come later | 23:11 |
dhellmann | ok, 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 error | 23:12 |
dhellmann | I have an entry in the branches table | 23:13 |
dhellmann | select projects.name, branches.name from projects, branches where projects.id = branches.project_id; | 23:14 |
dhellmann | openstack/governance|master | 23:14 |
diablo_rojo | Hmmm. Whats the error? | 23:18 |
dhellmann | storyboardclient._apiclient.exceptions.NotFound: Master branch of project 923 not found. (HTTP 404) | 23:23 |
diablo_rojo | Thats 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_rojo | I can try it on my local migration testing vm. | 23:27 |
diablo_rojo | What project? | 23:27 |
diablo_rojo | SotK, any ideas? | 23:27 |
diablo_rojo | fungi, ? | 23:27 |
dhellmann | it's possible this is related to me using sqlite instead of mysql | 23:27 |
dhellmann | I'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 database | 23:28 |
dhellmann | so I'm not connected to anything in production except the oauth service | 23:28 |
diablo_rojo | Ahh okay so pretty different environment then. | 23:30 |
dhellmann | if I can't sort it out I'll go to the trouble of installing mysql | 23:30 |
dhellmann | it really shouldn't be necessary if the ORM is being used properly, though | 23:31 |
diablo_rojo | Agreed. | 23:31 |
diablo_rojo | And you tried SotK's POST suggestion? | 23:31 |
diablo_rojo | If direct manipulation of the db didnt work. | 23:32 |
dhellmann | as far as I can tell, the data is actually in the database | 23:32 |
dhellmann | when I query it, I certainly see it | 23:32 |
diablo_rojo | Huh, so the UI just isnt picking it up? | 23:32 |
dhellmann | the API isn't picking it up | 23:33 |
dhellmann | the project is there, but when I try to add a task I get the error because the branch isn't found | 23:33 |
diablo_rojo | restart the api service? Not exactly an ideal fix, but..? | 23:34 |
dhellmann | oh, I keep restarting it every time I add more debugging code to the service | 23:40 |
diablo_rojo | I look forward to that patch :) | 23:44 |
dhellmann | ok, it would help if my client script used the correct project id | 23:45 |
dhellmann | ah, interesting | 23:45 |
dhellmann | apparently one is expected to pass lanes when creating a board? | 23:45 |
diablo_rojo | I 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 |
dhellmann | well, not having any throws a 500 because you can't iterate over None | 23:46 |
diablo_rojo | So then I would say yes, at least one is required. | 23:47 |
fungi | an unfortunate assumption | 23:47 |
dhellmann | I wish I understood why these 500 errors leave the database trashed | 23:52 |
dhellmann | are we not using transactions? | 23:52 |
dhellmann | ok, 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 |
dhellmann | and I am indeed not passing a "type" | 23:57 |
* dhellmann wonders what that is | 23:57 | |
dhellmann | perhaps item_type? | 23:58 |
diablo_rojo | Seems reasonable. | 23:59 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!