Monday, 2019-02-25

*** misaac has joined #storyboard01:56
*** jamesmcarthur has joined #storyboard02:17
*** jamesmcarthur has quit IRC02:59
*** jamesmcarthur has joined #storyboard03:00
*** jamesmcarthur has quit IRC03:05
*** whoami-rajat has joined #storyboard03:12
*** jamesmcarthur has joined #storyboard03:30
*** jamesmcarthur has quit IRC03:36
*** aish98 has joined #storyboard03:38
*** aish98 has quit IRC03:45
*** jamesmcarthur has joined #storyboard03:45
*** jamesmcarthur has quit IRC03:51
*** udesale has joined #storyboard03:51
*** jamesmcarthur has joined #storyboard03:53
*** jamesmcarthur has quit IRC04:09
*** kshitija has joined #storyboard04:11
*** jamesmcarthur has joined #storyboard04:12
*** udesale has quit IRC04:21
*** udesale has joined #storyboard04:22
*** jamesmcarthur has quit IRC04:30
*** jamesmcarthur has joined #storyboard04:31
kshitijaHello04:36
*** jamesmcarthur has quit IRC05:05
*** jamesmcarthur has joined #storyboard05:35
*** jamesmcarthur has quit IRC05:40
*** saumya has joined #storyboard06:07
*** jamesmcarthur has joined #storyboard06:11
*** jtomasek has joined #storyboard06:15
*** jamesmcarthur has quit IRC06:16
*** saumya has quit IRC06:22
*** saumya has joined #storyboard06:51
*** jamesmcarthur has joined #storyboard06:53
saumyaHey, I am an Outreachy applicant from India and would love to contribute to StoryBoard.06:55
*** jamesmcarthur has quit IRC06:58
*** udesale has quit IRC07:27
*** udesale has joined #storyboard07:27
*** jamesmcarthur has joined #storyboard07:33
*** jamesmcarthur has quit IRC07:37
saumyaOn upgrading DB schema to the latest version it says ERROR: tox version is 2.3.1, required is at least 2.9.1 and when I try to install tox 2.9.1 it throws the following error: Could not find a version that satisfies the requirement 2.9.1 (from versions: ). Can anyone guide me on this?07:39
*** dtantsur|afk is now known as dtantsur08:21
*** jamesmcarthur has joined #storyboard08:33
*** zbr|ssbarnea has joined #storyboard08:35
*** jamesmcarthur has quit IRC08:38
*** tosky has joined #storyboard08:55
*** jpich has joined #storyboard09:03
*** jamesmcarthur has joined #storyboard09:10
*** zbr|ssbarnea is now known as zbr|out09:13
*** jamesmcarthur has quit IRC09:14
*** jamesmcarthur has joined #storyboard09:49
*** jamesmcarthur has quit IRC09:54
*** jamesmcarthur has joined #storyboard09:59
*** saumya has quit IRC10:01
*** jaosorior has joined #storyboard10:37
*** jamesmcarthur has quit IRC10:50
*** udesale has quit IRC11:18
*** jamesmcarthur has joined #storyboard12:02
*** jamesmcarthur has quit IRC12:08
*** jamesmcarthur has joined #storyboard12:13
*** jamesmcarthur has quit IRC12:19
*** jamesmcarthur has joined #storyboard12:22
*** kshitija has quit IRC12:30
*** ironfoot has quit IRC12:34
*** ironfoot has joined #storyboard12:34
*** udesale has joined #storyboard12:42
*** jamesmcarthur has quit IRC12:43
*** kshitija has joined #storyboard12:43
*** jamesmcarthur has joined #storyboard12:53
*** jamesmcarthur has quit IRC13:01
*** jamesmcarthur has joined #storyboard13:05
*** jamesmcarthur has quit IRC13:10
*** jamesmcarthur has joined #storyboard13:18
*** jamesmcarthur has quit IRC13:29
*** shruti10 has joined #storyboard13:32
*** udesale has quit IRC13:37
*** udesale has joined #storyboard13:38
*** jamesmcarthur has joined #storyboard13:50
*** jamesmcarthur has quit IRC14:08
*** mkarray has joined #storyboard14:20
*** jamesmcarthur has joined #storyboard14:25
*** misaac has quit IRC14:53
mkarrayI had code doing api calls on my localhost that ran fine, but when moved to the storyboard-dev, it stopped working as expected. Besides authentication, the only difference I can note is that running locally is much faster than on the dev page. But I don't see why that would be a real problem14:57
mkarrayFor reference, I'm making a tag replacement script. The error I run into on the dev endpoint is "Database object 'StoryTag' with field value 'new-tag-name' already exists."14:59
mkarrayIf anyone has had a similar problem or knows a possible solution that would be of much help :)15:00
*** udesale has quit IRC15:02
*** mkarray has quit IRC15:02
*** mkarray has joined #storyboard15:04
*** kshitija has quit IRC15:25
*** misaac has joined #storyboard15:31
fungimkarray: the performance difference you observe is likely related to the volume of data present in the database on storyboard-dev and the inefficiency of the tag-related database queries15:44
fungimkarray: what api method/parameters are you using which generates that error message?15:45
mkarrayI figured it was due to the volume myself as well, but I don't see why the speed would be a problem.15:48
mkarrayThe api method is adding a tag to a story. If I have two stories I want to add tags to, it works successfully on the first one, but prompts that error on the second.15:49
*** kshitija has joined #storyboard15:52
*** diablo_rojo has joined #storyboard15:58
*** misaac has quit IRC16:00
*** misaac has joined #storyboard16:01
*** jamesmcarthur_ has joined #storyboard16:06
fungisounds like you're assuming the tags create method is idempotent16:06
fungiyou're presumably calling https://docs.openstack.org/infra/storyboard/webapi/v1.html#post--v1-tags when that error is returned16:07
fungitags are independent objects. you can create a tag and you can attach that tag to one or more stories16:07
*** jamesmcarthur has quit IRC16:08
fungiso your code probably needs to either check first to see whether the tag exists before trying to create it, or expect that error and take it as a sign that the operation was unnecessary because the tag you wanted to add already exists16:08
mkarrayThis doesn't explain why it works locally and not on the dev endpoint though, if that was the problem it would have appeared in both no?16:14
fungii do find that discrepancy in behavior odd, yes16:15
mkarrayFrom my success locally, it seems that using the PUT method checks to see if the tag was created already, if not it uses POST to add it. I16:18
fungiahh, so you're only calling the put method and not post?16:26
mkarraycorrect. I did try to use post when I ran into this problem, but the error persisted16:27
fungiif so, then for some reason the check performed by the put is failing to find the tag for some reason and assuming it needs to create one16:28
fungiperhaps this is timeout related after all? though i would expect to see the same behavior by adding an existing tag to a story through the webclient as well16:28
fungilet's see if i can reproduce through the webclient16:29
mkarrayI was actually thinking it was timeout related myself as well, my next step was to put some sleep() after the first tag was switch to see if that fixed anything.16:29
fungimmm, yeah it takes a good 10+ seconds to add a new tag to a story via the webclient16:31
fungithe webclient is slow to add tags, but i can't reproduce the behavior that way. i'm starting to wonder if there's a race condition you're exposing16:32
fungigonna try something else real quick16:33
fungimkarray: adding the same new tag to two stories without waiting for the first to finish does indeed seem to be a reproducer16:34
fungi400: PUT /api/v1/stories/1795033/tags: Database object 'StoryTag' with field value 'footag bartag' already exists.16:34
fungii think what's happening is that the reads being performed to determine whether the tag exists yet are performed in parallel, but the writes are serialized16:34
fungiso the second put has already decided it will need to create the tag object, but then by the time its turn comes to write it to the db the first call has already done that16:35
mkarrayI suppose that would explain why it works locally, the first one is able to finish before moving on to the second one16:35
fungiyep16:35
kshitijadiablo_rojo, fungi , SotK : Hey. I am done with the local setup on my machine and it is working. Kindly guide me further.16:37
fungithere are probably a few ways you could work around this, but it may be something we want to solve more generally (like not raise that error through the put method and instead consider it a no-op and continue attaching the tag to the story normally)16:37
mkarrayWas about to ask if it was worth fixing the actual code or just working around it16:37
fungimkarray: i'll add a story about this so we don't lose track16:37
mkarraySounds good16:37
*** aish98 has joined #storyboard16:39
*** misaac has quit IRC16:42
fungimkarray: i've added https://storyboard.openstack.org/#!/story/2005086 so feel free to follow up there with any details16:47
mkarraywill do, thanks16:48
*** mkarray has quit IRC16:59
*** mkarray has joined #storyboard17:00
*** misaac has joined #storyboard17:02
*** jpich has quit IRC17:20
*** misaac has quit IRC17:21
*** dtantsur is now known as dtantsur|afk17:23
*** misaac has joined #storyboard17:24
*** yashagrawal3 has joined #storyboard17:25
yashagrawal3ping17:26
*** yashagrawal3 has quit IRC17:32
*** misaac has quit IRC18:00
*** misaac has joined #storyboard18:01
*** aish98 has quit IRC18:19
*** sarwatfatimam has joined #storyboard18:47
*** misaac has quit IRC18:58
*** aish98 has joined #storyboard19:33
*** aish98 has quit IRC19:45
*** aish98 has joined #storyboard19:47
*** shruti10 has quit IRC19:54
*** aish98 has joined #storyboard19:59
openstackgerritIvoline Ngong proposed openstack-infra/storyboard master: updated_at field in projects now contains a date that signifies the most recent date a task or story related to the project was last updated/created. Task: 24368  https://review.openstack.org/63884020:02
*** ivy has joined #storyboard20:03
*** aish98 has quit IRC20:12
*** jtomasek has quit IRC20:39
*** jtomasek has joined #storyboard20:41
*** jtomasek has quit IRC20:42
*** jtomasek has joined #storyboard20:43
openstackgerritIvoline Ngong proposed openstack-infra/storyboard master: Updated_at content modified  https://review.openstack.org/63884020:56
*** jtomasek has quit IRC21:09
mkarrayIn regards to https://docs.openstack.org/infra/storyboard/webapi/v1.html#user-tokens21:12
mkarrayIs it not a bit silly to have a user require a token, to receive their token?21:12
mkarrayI understand the functionality from a superuser, who has the ability to change other people's tokens, but from your average joe I don't see the use case.21:13
*** kshitija has quit IRC21:20
*** whoami-rajat has quit IRC21:47
openstackgerritIvoline Ngong proposed openstack-infra/storyboard master: Updated_at content modified  https://review.openstack.org/63884022:17
*** ivy has quit IRC22:18
*** misaac has joined #storyboard22:22
*** misaac has quit IRC22:26
*** mkarray has quit IRC22:58
*** jamesmcarthur_ has quit IRC23:17
*** misaac has joined #storyboard23:18
*** jamesmcarthur has joined #storyboard23:19
*** jamesmcarthur has quit IRC23:30
*** jamesmcarthur has joined #storyboard23:36
*** jamesmcarthur has quit IRC23:47
*** misaac has quit IRC23:50
*** misaac has joined #storyboard23:52
*** diablo_rojo has quit IRC23:53

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