Wednesday, 2016-03-30

*** krotscheck_dcm has quit IRC01:31
*** krotscheck has joined #storyboard01:33
*** jtomasek_ has joined #storyboard07:02
*** fay has joined #storyboard07:12
*** fay is now known as Guest7052107:13
*** mrmartin has joined #storyboard07:28
*** jtomasek has quit IRC07:58
*** jtomasek_ has quit IRC08:01
*** Guest70521 is now known as faybrocklebank09:04
Zaramorning, storyboard!09:36
Zaraso, there are some rumblings where I work about having storyboard track gitlab. maybe at some point I'll manage to track down the gitlab source code; in the meantime, anyone have experience with this? I'm hoping it'll overlap with 'storyboard tracking gerrit' and we can do a coupla things at once, but bet it's not that easy...09:39
SotKif GitLab has an event stream comparable to Gerrit's then I think it'd overlap nicely10:03
ZaraYOU ARE ON HOLIDAY10:03
SotKbut idk if it does10:03
Zaraalso I don't yet know if it does10:03
Zarafound source, browsing it is kinda slow10:03
pedroalvarezI was expecting gitlab to have its own issue tracker, so maybe they didn't have the need to implement someting like stream events10:05
pedroalvarezbut also github have also their own issue tracker, and it's possible to get these events10:05
Zarayeah, I figured I'd start off by looking at their email stuff10:05
ZaraI haven't seen anything events-y yet10:07
pedroalvarezvarious api clients for gilab: https://about.gitlab.com/applications/10:07
Zaraaha, there's a dashboard, so there are events for that10:08
Zarathough apparently no dashboard events for ci thigns10:08
Zara*things10:08
ZaraI guess we just track issue status from a gitlab instance.10:09
* Zara looks at one of the python wrappers at that link10:24
Zarahttps://github.com/pyapi-gitlab/pyapi-gitlab10:25
Zaraahahaha that readme10:25
Zarahttps://github.com/gpocentek/python-gitlab looks more hopeful...10:42
-openstackstatus- NOTICE: Gate on project-config is currently broken due to IRC tests. The problem has been detected and we are working to fix the issue as soon as possible.11:15
ZaraNikitaKonovalov: I have some questions about the python-storyboardclient , if you have a minute sometime today?11:17
SotKpedroalvarez: I suspect you are correct about it not having an event stream11:19
pedroalvarezcouldn't find anything either11:20
ZaraI found things marked 'events' but no stream specifically, havne't looked that hard yet though, so prepared to trust you on that11:21
ZaraI don't really know what the gerrit events stream looks like, yet, for comparison11:21
Zarajust to make things more exciting.11:22
Zaraas for the python client...11:22
Zarathis is my little test program: http://paste.openstack.org/show/492429/11:22
Zaraand this is the output: http://paste.openstack.org/show/492430/11:22
Zarabut *this* is what's in tasks.py: http://paste.openstack.org/show/492431/11:23
Zarain the python client, that is11:23
Zaraso where are created_at and updated_at coming from?11:23
ZaraI assume I've misunderstood how it works,because I tried getting rid of all those things from tasks.py and it still did the same thing11:24
Zarabut I don't get where it's deciding what to return, because the actual object would also have a 'links' field, so I don't think it's just getting it directly11:25
ZaraI have almost 0 python so there's a good chance that's the strange bit11:28
Zaraohhh... is it perhaps from the BaseObject? in base.py11:29
pedroalvarezright11:35
pedroalvarezso if instead of printing the result you just `task = storyboard.tasks.get(2865)`11:36
pedroalvarezyou will have in task, an instane of a Task object11:36
pedroalvarezthen you can do things like `print task.title`11:36
pedroalvareznow I will read and see if you were looking for that kind of help :/11:37
Zarahahaha, it wasn't quite that, but also makes sense to do that. xD11:37
pedroalvarezyou may be right about the BaseObject thing11:37
Zarathe weird thing is that everything still returns if I remove all the fields from the Tasks class11:41
Zaraeg: so it's just like11:41
Zaraclass Task(base.BaseObject):11:41
Zarawith nothing in it11:41
pedroalvarezthat should fail in python I believe11:42
pedroalvarez(an empty class? maybe not)11:42
pedroalvarezbut maybe you are not using the same python file that you are modifying11:42
ZaraI wondered about that, I don't know where else it would live, though :/11:46
pedroalvarezwell, you have done `python setup.py install` or `pip install .` right?11:46
Zarayeah11:47
pedroalvarezthat will make it go to /usr/lib/python2.7/dist-packages/blah/foo/11:47
Zaraoh yeah11:47
pedroalvarez(path depending on the distro)11:47
*** openstackgerrit has quit IRC11:47
Zarait yeah, I used to do this stuff a lot... I'm out of practice! :D11:47
*** openstackgerrit has joined #storyboard11:48
Zarathough hm, can't find it anywhere yet11:50
Zaraoh nvm, usr/local/lib11:51
ZaraI have missed wandering around filesystems :')11:52
Zarahm, readonly11:55
Zaraubuntu@zara-storyboard:/usr/local/lib/python2.7/dist-packages/storyboardclient/v1$ chmod +x tasks.py11:56
Zarachmod: changing permissions of ‘tasks.py’: Operation not permitted11:56
Zaraubuntu@zara-storyboard:/usr/local/lib/python2.7/dist-packages/storyboardclient/v1$ sudo chmod +x tasks.py11:56
Zarasudo: unable to resolve host zara-storyboard11:56
Zara;_;11:56
ZaraI HAVE NO TOOLS LEFT IN MY ARSENAL11:56
Zarayay, it works12:10
Zarayeah, it was going by usr/local/lib/python2.7/dist-packages/storyboardclient/v1/tasks.py12:11
Zarajust for future reference12:11
Zaraand adding 'link' to that object means the link is returned12:11
Zaraso am I right in thinking that changing v1/tasks.py in the repo should result in that file being different when the client is installed, and I shouldn't have to do anything else?12:12
Zarathe mechanics of 'pip install foo' are still mainly a mystery to me. somehow.12:13
Zaraugh I bet sotk migrated the db after the 15th and my pretty diagram's already out of date12:14
Zaraaye, march 23rd12:16
pedroalvarezthe "sudo: unable to resolve host zara-storyboard" error is misleading12:17
pedroalvarezit happens to me also in cloud VMs12:18
Zarayeah, I've generally been ignoring it, wasn't sure if it was significant or not (things generally seem to work)12:18
Zarajust when they don't work, I wonder if it's the reason. xD12:18
Zaraso when I send these updates, is it worth splitting them up (one for tasks, one for stories, etc) or should I send them all at once? splitting up kinda feels ott for some of them, but there will be quite a lot in total.12:22
openstackgerritZara proposed openstack-infra/python-storyboardclient: Update tasks.py to include links  https://review.openstack.org/29935612:28
* Zara splits them up.12:28
Zarawe might end up leaving that one hanging around until we migrate the db for task notes12:28
Zaraand then update it12:28
*** openstackgerrit has quit IRC12:33
*** openstackgerrit has joined #storyboard12:33
Zaralooking at the stories one, idk how to display the tasks of a story12:37
Zara(I can get the object but can't see the fields from it)12:38
Zaraaha12:50
Zarasomething like story = storyboard.stories.get(99).tasks.list()12:50
Zaraprint(story)12:50
*** lori has joined #storyboard12:52
Zarame rn: https://www.youtube.com/watch?v=tcGQpjCztgA12:53
Zaraand everything just *works* in the tasksNestedManager, ahhhh~12:55
Zaraat some point I need to hook this up to my vm, because I'm just using s.o.o. and scared of doing anything but GETs.12:55
*** lori has left #storyboard12:56
Zarawhat an odd part12:59
* Zara makes note never to use that irc client12:59
Zaraso there's a story_type_id field12:59
Zaraafaik we never use it12:59
Zaraguessing it was introduced to differentiate between features and bugs13:00
Zarabut tags kinda do that13:00
Zaraand it's not in the webclient, etc13:00
ZaraI'm wondering if rather than adding it, we should be deprecating it entirely, but may be missing history.13:00
Zaratimeline events seem nicely accessible \o/13:02
Zaraooh, ace, and tags_manager.list() gives tags with their history13:04
Zara(by default just the tag content is returned as part of the request for the story13:04
Zara(well, tag name)13:04
Zaracomments also fine13:06
Zarait's quite cool that this hasn't been seriously updated in literally a year, and yet it still works.13:08
* Zara prints out storyboard schema so she can colour bits in as she adds them to the python client, to keep track13:15
Zaraam an adult, honest.13:15
*** openstackgerrit has quit IRC13:18
*** openstackgerrit has joined #storyboard13:18
openstackgerritZara proposed openstack-infra/python-storyboardclient: Add story_type_id to stories  https://review.openstack.org/29939013:24
Zarasorry, these are going to be a bit spammy, may end up building on them13:32
openstackgerritZara proposed openstack-infra/python-storyboardclient: Update Timeline  https://review.openstack.org/29939513:34
persiaMaybe put them all in the same topic?13:38
ZaraI'm currently rouuuughly trying to split it so that all timeline things will be in the timeline topic, etc. I'm just starting with the easy ones (so they're all in different topics for now; my topics correspond to my git branches)13:40
Zaraso I'll end up looping back round once there are a few topics up there. otherwise it'll be a billion patches in one topic, touching lots of different bits of the api13:41
Zarajust more a warning not to start reviewing yet13:41
Zaraif you don't want to be very bored, anyway13:41
Zarahm, team_id and repo_url currently aren't tracked for projects13:41
Zaraagain, we don't really do anything with these afaict. I imagine we want to do something with team_id one day, suspect repo_url was due to be deprecated13:42
Zarateam_id is a bit strange13:44
Zaraif I add it to the project class, it doesn't return unless I do something like13:46
Zaraproject = storyboard.projects.get(457).team_id13:46
Zaraif I leave out the .team_id , I get:13:46
Zara<Project autocreate_branches=False, created_at=2014-03-12T17:52:19+00:00, description=OpenStack Task Tracking Browser Client, id=457, is_active=True, name=openstack-infra/storyboard-webclient, repo_url=None, updated_at=None>13:46
Zarareturned-- so I added both repo_url and team_id to the class there, but only repo_url shows up in that place13:47
openstackgerritZara proposed openstack-infra/python-storyboardclient: Add repo_url and team_id  https://review.openstack.org/29941113:50
Zarahm, so tasks have a project_id, but there doesn't seem to be any project_mapping for tasks (analogous to project_group_mapping for projects)14:00
Zaraso you can list the projects in a group with something like14:00
Zarastoryboard.project_groups.get(57).projects.list()14:00
Zarabut something lik storyboard.projects.get(457).tasks.list()14:01
Zarawill fail14:01
Zarawhich also means it's awkward to get stories currently listed under a view of a project, iiuc14:02
persiaThat's too bad.  It seems like a concise way to get such a lsit.14:02
Zarayeah. it works for tasks in stories, and for projects in project groups, but nothing in between!14:06
Zarathough that's interesting, because there's no separate mapping from tasks to stories, so maybe that's actually some manager in the client somewhere14:06
* Zara wanders around14:06
Zaraso the tasksNestedManager is currently configured to expect the parent id to be a story id. I think we'd want something more generalised; just tried hacking around making another class with a slightly different name, for projects, but fire.14:13
Zaraoh yeah, storyboard meeting in 45ish14:13
Zarapretty easy to add the basics of a board.14:23
Zarathis is charming api and python client.14:24
openstackgerritZara proposed openstack-infra/python-storyboardclient: Add boards  https://review.openstack.org/29944514:41
* Zara sees boards have a field for 'project' waiting, is reminded that SotK is the best.14:43
openstackgerritZara proposed openstack-infra/python-storyboardclient: Add worklists  https://review.openstack.org/29945414:53
Zaraoh yeah, meeting in 7 mins I guess14:54
Zaramaybe this week I'll update the agenda14:54
Zaramostly consisted of deleting stuff.15:00
Zarame -> #openstack-meeting15:00
openstackgerritZara proposed openstack-infra/python-storyboardclient: Add boards  https://review.openstack.org/29944515:19
*** mrmartin has quit IRC15:38
openstackgerritZara proposed openstack-infra/python-storyboardclient: Add repo_url and team_id  https://review.openstack.org/29941115:39
Zaraso I guess for gerritness, the first step is looking at the bot that updates launchpad from gerrit16:18
Zaraand seeing how much can be copied for storyboard16:18
*** openstack has joined #storyboard17:05
*** openstackstatus has joined #storyboard17:05
*** ChanServ sets mode: +v openstackstatus17:05
*** jtomasek_ has joined #storyboard17:09
*** mrmartin has joined #storyboard17:23
*** jtomasek_ has quit IRC17:31
*** mrmartin has quit IRC17:32
*** mrmartin has joined #storyboard18:11
*** davidlenwell has quit IRC18:27
*** davidlenwell has joined #storyboard18:34
*** krotscheck is now known as krotscheck_dcm18:46
*** jtomasek_ has joined #storyboard19:14
*** mrmartin has quit IRC19:41
*** mrmartin has joined #storyboard19:58
*** jtomasek_ has quit IRC20:00
*** pleia2 has quit IRC20:19
*** pleia2 has joined #storyboard20:20
*** openstackgerrit has quit IRC20:48
*** openstackgerrit has joined #storyboard20:48
*** mrmartin has quit IRC21:20
*** davidlenwell has quit IRC21:48
*** davidlenwell has joined #storyboard21:55

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