Wednesday, 2019-03-13

*** jamesmcarthur has quit IRC00:10
*** jamesmcarthur has joined #storyboard00:14
diablo_rojofungi, is storyboard really slow for you atm?00:24
fungidoesn't seem so00:26
*** jamesmcarthur has quit IRC00:27
diablo_rojoHuh. It is for me and dustinc over in openstack-dev noted the slowness too00:27
diablo_rojoOh its better now00:27
*** whoami-rajat has joined #storyboard00:51
*** jamesmcarthur has joined #storyboard01:23
*** zbr has quit IRC01:34
clarkbbackups happen at 0000utc01:35
dangtrinhntdiablo_rojo, is there any way I can link any new/update of stories to our project irc channel?01:58
*** jamesmcarthur has quit IRC02:22
*** jamesmcarthur has joined #storyboard02:23
fungidangtrinhnt: not yet as far as i know. i suspect having the api service expose an event stream externally would be a necessary prerequisite02:39
fungithere's some preliminary functionality laid for that, i think, but it was never fully fleshed out02:39
dangtrinhntfungi, thanks. Those info are pretty helpful.02:40
*** jamesmcarthur has quit IRC02:53
*** jamesmcarthur has joined #storyboard02:53
*** diablo_rojo has quit IRC03:26
*** jamesmcarthur has quit IRC03:27
*** scherbatsky has joined #storyboard03:36
*** udesale has joined #storyboard04:17
*** udesale has quit IRC05:16
*** udesale has joined #storyboard05:17
*** udesale has quit IRC05:51
*** scherbatsky has quit IRC06:00
*** udesale has joined #storyboard06:11
*** brenda_ has joined #storyboard06:34
brenda_SotK, diablo_rojo_phon , fungi  Hello, I’m stuck in how to claim a task !06:48
brenda_I have tried to find my name in the search bar but with no success, I’m not even sure if this is the way to claim a task.06:48
brenda_What should i do? Please note that my account name is br (the name that appears on the top right corner)06:49
*** brenda_ has quit IRC06:50
*** diablo_rojo has joined #storyboard06:52
diablo_rojobrenda_ You should find a story you are interested in that has tasks that aren't assigned to people and click on the assign text and search for your name there. Assuming you went through the whole contributor guide and set up your ubuntuone account and signed into storyboard you should be able to find your name.06:56
diablo_rojoThe reason you couldnt find your name if you searched now, presumably it because you havent created stories or interacted with any yet.06:57
*** tonyb is now known as tonyb_gone07:20
*** tonyb_gone is now known as tonyb07:21
*** jpich has joined #storyboard08:58
*** zbr has joined #storyboard09:05
*** dtantsur|afk is now known as dtantsur09:14
*** brenda_ has joined #storyboard10:06
*** diablo_rojo has quit IRC10:11
*** tosky has joined #storyboard11:17
openstackgerritAnkita Bansal proposed openstack-infra/storyboard-webclient master: Displayed tags should link to search view for the tag  https://review.openstack.org/64226211:22
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient master: Add a linter for our .scss files  https://review.openstack.org/64302511:52
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient master: Add a linter for HTML templates  https://review.openstack.org/64303212:17
*** jamesmcarthur has joined #storyboard12:47
*** udesale has quit IRC13:16
*** udesale has joined #storyboard13:17
*** tosky has quit IRC13:22
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient master: Add a linter for HTML templates  https://review.openstack.org/64303213:26
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient master: Use the latest active LTS version (10) of Node.js for testing  https://review.openstack.org/64304613:26
*** mkarray has joined #storyboard13:36
*** jamesmcarthur has quit IRC13:41
*** jamesmcarthur has joined #storyboard14:00
*** jamesmcarthur has quit IRC14:00
*** jamesmcarthur has joined #storyboard14:01
*** irclogbot_3 has quit IRC14:09
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient master: Update to a newer version (8) of Node.js for testing  https://review.openstack.org/64304614:10
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient master: Add a linter for HTML templates  https://review.openstack.org/64303214:10
*** irclogbot_3 has joined #storyboard14:12
*** irclogbot_3 has quit IRC14:25
*** irclogbot_3 has joined #storyboard14:28
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient master: Update to a newer version (8) of Node.js for testing  https://review.openstack.org/64304614:30
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient master: Add a linter for HTML templates  https://review.openstack.org/64303214:30
mkarrayIt seems that many of the CRUD operations are returning the address of an object. ex) [<storyboard.db.models.User object at 0x7fd2f359ea50>] I'd like to know where these values are being dereferenced if this seems familiar to any of you14:33
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient master: Update to a newer version (8) of Node.js for testing  https://review.openstack.org/64304614:34
openstackgerritAdam Coldrick proposed openstack-infra/storyboard-webclient master: Add a linter for HTML templates  https://review.openstack.org/64303214:34
SotKmkarray: that looks like the output you'd see from passing a User database object to a print statement14:36
*** jtomasek has quit IRC14:38
SotKthe database model objects are converted into something serializable in the various RestControllers in storyboard/api/v1/, for example https://opendev.org/openstack-infra/storyboard/src/branch/master/storyboard/api/v1/users.py#L11314:38
mkarrayYes that's exactly the line of code I'm printing.14:38
mkarrayCurrently trying to figure out how I turn that return value into a json object14:39
SotKwhat do you need to convert to json for?14:43
SotKthe api methods should all return wsme custom types14:43
SotKor lists of those14:43
mkarrayI'm in the process of converting an email address into a user_id14:46
mkarraySo my thinking was to receive the user object of the person associated with the email address then pull their id from that object14:47
SotKhm, what do you mean by "converting an email address into a user_id"?14:54
mkarrayas a part of turning a search into a browser id, the backend should be able to take any unique identifier and complete the browse that the user actually intends to do.14:58
mkarrayso assignee_id=mkarray@mail.com should turn into assignee_id=23214:58
mkarrayI intend to make it more broad than just emails and users, but it's my starting point14:59
SotKin that case you should be able to get the user database object, and get the id by doing something like `assignee_id = user.id`15:05
SotKall the fields of each model are accessible as attributes of the database model objects15:06
SotKhowever, I'm not certain what the actual benefit of the backend understanding that is, the same thing is already doable by getting the user using the users endpoint (eg. https://storyboard.openstack.org/api/v1/users?email=adam.coldrick@codethink.co.uk), then passing the ID of that user to whatever browse/search endpoint you need to use15:10
mkarrayI plan to move it back into the front end once I've got a solid hold on what is going on15:13
mkarraythanks by the way your suggestion worked15:13
*** scherbatsky has joined #storyboard15:26
*** irclogbot_3 has quit IRC15:36
*** irclogbot_3 has joined #storyboard15:39
*** irclogbot_3 has quit IRC15:49
*** irclogbot_3 has joined #storyboard15:51
*** irclogbot_3 has quit IRC15:52
*** irclogbot_3 has joined #storyboard15:56
openstackgerritRiju Khatri proposed openstack-infra/storyboard-webclient master: Enhance adding tags on story details page  https://review.openstack.org/64264316:00
*** diablo_rojo has joined #storyboard16:01
*** jtomasek has joined #storyboard16:16
fungiSotK: the primary benefit i see is it stops the webclient (or any client) having to perform additional lookups in such cases if the api is capable of taking multiple "equivalent" data types for a parameter as long as it can reliably resolve them on its own internally16:17
fungigerrit does something similar, where any of its api calls which expect a user in a parameter allow you to provide a user id number, a username or a verified e-mail address associated with the account16:18
fungisimilar to how any api calls which take a change as a parameter are able to accept either the change index number or an extended change identifier16:18
fungiit does make input validation in the api a more complex, but affords additional convenience for the client-side implementation16:20
fungiand in api-first applications, having more of the logic inside the api implementation drives toward simpler and more consistent clients16:22
fungifor this particular case, instead of duplicating the user identifier lookup logic in storyboard-webclient and boartty, they can both just loosen up whatever input validation they might have (if any) for relevant operations16:24
*** udesale has quit IRC16:42
openstackgerritRiju Khatri proposed openstack-infra/storyboard-webclient master: Make task ordering in Story view selectable  https://review.openstack.org/64193016:50
*** dtantsur is now known as dtantsur|afk17:15
*** jpich has quit IRC17:35
*** jamesmcarthur has quit IRC17:49
*** ianychoi has quit IRC17:55
SotKfungi: good points, thanks17:57
diablo_rojoSotK, so I had an idea the other day, since we are apparently starting to run out of low hanging fruit, we could find a corner in Denver to sit in and triage and tag the shit out of storyboard stories18:04
diablo_rojofungi, and anyone else are obviously invited too18:05
fungithat sounds like a useful thing to do in the infra ptg room18:05
diablo_rojoBut I think we should sit down and go through everything. There are a lot of vague stories that exist from the beginning that could probably be closed and have new more focused stories opened for them18:05
fungior as a break-out on to a hallway on an infra ptg day18:05
diablo_rojofungi, yeah thats what I was thinking18:05
fungii think it's a swell idea18:06
fungiit's not so much of a bug squash since we're not fixing them, more of a bug squish? ;)18:06
diablo_rojoSquish + Triage18:07
diablo_rojoBring your flyswatters!18:07
*** scherbatsky has quit IRC18:08
diablo_rojoKind of starting the conversation early, do we want to have a meeting today?18:08
diablo_rojoOr should we spend the time doing code reviews?18:08
diablo_rojo(I know there are a ton of them)18:08
SotKBug squish sounds like a great idea18:13
SotKI don't have anything to discuss in a meeting really, other than noting that there are about a million patches out for review18:14
SotKSo spending the time on review is probably a good plan18:14
diablo_rojoSounds good to me.18:24
diablo_rojoI have like 9 patches open in different tabs that I will review today18:24
mkarraySo how should I go through with committing my changes? What I've been working on would require similar changes in many different parts of the code. Should I upload piece by piece or just drop a big commit later on?18:46
*** jamesmcarthur has joined #storyboard18:47
*** jtomasek has quit IRC18:48
*** gmann is now known as gmann_afk18:48
SotKPiece by piece is best if it's possible18:52
fungiideally stand-alone pieces which don't on their own break the client or api18:55
fungibut which together implement what you're seeking to accomplish18:55
fungithere are a few ways to go about that depending on the situation, from just hiding things behind a feature flag to stubbing out functions and filling them in later18:56
fungias for the meeting, i don't have anything to bring up either18:57
fungiclosest item is perhaps that we've confirmed vexxhost has a viable swift implementation we ought to be able to use for our attachments storage18:58
SotKOh nice :D19:29
*** olivier_nshimiye has joined #storyboard19:29
*** olivier_nshimiye has quit IRC19:30
openstackgerritAnkita Bansal proposed openstack-infra/storyboard-webclient master: Pagination error in active/merged/invalid stories in projects resolved.  https://review.openstack.org/64222419:38
*** ankita-2798 has joined #storyboard19:43
openstackgerritAnkita Bansal proposed openstack-infra/storyboard-webclient master: Stars should be next to the name of the entity  https://review.openstack.org/64315320:17
*** jamesmcarthur has quit IRC20:29
*** gmann_afk is now known as gmann20:41
mkarrayI may be confused about what functions are getting called where. But it seems like if I'm querying for stories on assignee_id's, there is a call to the get_one method in the Users class.20:59
mkarrayThis doesn't make sense to me because every story object already has a column for assignee_id, why does it need to make a search for Users?20:59
mkarrayWhy or Where would be sufficient for an answer :)21:00
*** whoami-rajat has quit IRC21:11
*** mkarray has quit IRC21:21
*** ankita-2798 has quit IRC21:54
*** tosky has joined #storyboard21:56
*** lifeless has quit IRC22:27
*** lifeless has joined #storyboard22:27
*** ianychoi has joined #storyboard23:06
*** tosky has quit IRC23:23

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