*** misaac has joined #storyboard | 01:56 | |
*** jamesmcarthur has joined #storyboard | 02:17 | |
*** jamesmcarthur has quit IRC | 02:59 | |
*** jamesmcarthur has joined #storyboard | 03:00 | |
*** jamesmcarthur has quit IRC | 03:05 | |
*** whoami-rajat has joined #storyboard | 03:12 | |
*** jamesmcarthur has joined #storyboard | 03:30 | |
*** jamesmcarthur has quit IRC | 03:36 | |
*** aish98 has joined #storyboard | 03:38 | |
*** aish98 has quit IRC | 03:45 | |
*** jamesmcarthur has joined #storyboard | 03:45 | |
*** jamesmcarthur has quit IRC | 03:51 | |
*** udesale has joined #storyboard | 03:51 | |
*** jamesmcarthur has joined #storyboard | 03:53 | |
*** jamesmcarthur has quit IRC | 04:09 | |
*** kshitija has joined #storyboard | 04:11 | |
*** jamesmcarthur has joined #storyboard | 04:12 | |
*** udesale has quit IRC | 04:21 | |
*** udesale has joined #storyboard | 04:22 | |
*** jamesmcarthur has quit IRC | 04:30 | |
*** jamesmcarthur has joined #storyboard | 04:31 | |
kshitija | Hello | 04:36 |
---|---|---|
*** jamesmcarthur has quit IRC | 05:05 | |
*** jamesmcarthur has joined #storyboard | 05:35 | |
*** jamesmcarthur has quit IRC | 05:40 | |
*** saumya has joined #storyboard | 06:07 | |
*** jamesmcarthur has joined #storyboard | 06:11 | |
*** jtomasek has joined #storyboard | 06:15 | |
*** jamesmcarthur has quit IRC | 06:16 | |
*** saumya has quit IRC | 06:22 | |
*** saumya has joined #storyboard | 06:51 | |
*** jamesmcarthur has joined #storyboard | 06:53 | |
saumya | Hey, I am an Outreachy applicant from India and would love to contribute to StoryBoard. | 06:55 |
*** jamesmcarthur has quit IRC | 06:58 | |
*** udesale has quit IRC | 07:27 | |
*** udesale has joined #storyboard | 07:27 | |
*** jamesmcarthur has joined #storyboard | 07:33 | |
*** jamesmcarthur has quit IRC | 07:37 | |
saumya | On 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 dtantsur | 08:21 | |
*** jamesmcarthur has joined #storyboard | 08:33 | |
*** zbr|ssbarnea has joined #storyboard | 08:35 | |
*** jamesmcarthur has quit IRC | 08:38 | |
*** tosky has joined #storyboard | 08:55 | |
*** jpich has joined #storyboard | 09:03 | |
*** jamesmcarthur has joined #storyboard | 09:10 | |
*** zbr|ssbarnea is now known as zbr|out | 09:13 | |
*** jamesmcarthur has quit IRC | 09:14 | |
*** jamesmcarthur has joined #storyboard | 09:49 | |
*** jamesmcarthur has quit IRC | 09:54 | |
*** jamesmcarthur has joined #storyboard | 09:59 | |
*** saumya has quit IRC | 10:01 | |
*** jaosorior has joined #storyboard | 10:37 | |
*** jamesmcarthur has quit IRC | 10:50 | |
*** udesale has quit IRC | 11:18 | |
*** jamesmcarthur has joined #storyboard | 12:02 | |
*** jamesmcarthur has quit IRC | 12:08 | |
*** jamesmcarthur has joined #storyboard | 12:13 | |
*** jamesmcarthur has quit IRC | 12:19 | |
*** jamesmcarthur has joined #storyboard | 12:22 | |
*** kshitija has quit IRC | 12:30 | |
*** ironfoot has quit IRC | 12:34 | |
*** ironfoot has joined #storyboard | 12:34 | |
*** udesale has joined #storyboard | 12:42 | |
*** jamesmcarthur has quit IRC | 12:43 | |
*** kshitija has joined #storyboard | 12:43 | |
*** jamesmcarthur has joined #storyboard | 12:53 | |
*** jamesmcarthur has quit IRC | 13:01 | |
*** jamesmcarthur has joined #storyboard | 13:05 | |
*** jamesmcarthur has quit IRC | 13:10 | |
*** jamesmcarthur has joined #storyboard | 13:18 | |
*** jamesmcarthur has quit IRC | 13:29 | |
*** shruti10 has joined #storyboard | 13:32 | |
*** udesale has quit IRC | 13:37 | |
*** udesale has joined #storyboard | 13:38 | |
*** jamesmcarthur has joined #storyboard | 13:50 | |
*** jamesmcarthur has quit IRC | 14:08 | |
*** mkarray has joined #storyboard | 14:20 | |
*** jamesmcarthur has joined #storyboard | 14:25 | |
*** misaac has quit IRC | 14:53 | |
mkarray | I 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 problem | 14:57 |
mkarray | For 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 |
mkarray | If anyone has had a similar problem or knows a possible solution that would be of much help :) | 15:00 |
*** udesale has quit IRC | 15:02 | |
*** mkarray has quit IRC | 15:02 | |
*** mkarray has joined #storyboard | 15:04 | |
*** kshitija has quit IRC | 15:25 | |
*** misaac has joined #storyboard | 15:31 | |
fungi | mkarray: 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 queries | 15:44 |
fungi | mkarray: what api method/parameters are you using which generates that error message? | 15:45 |
mkarray | I figured it was due to the volume myself as well, but I don't see why the speed would be a problem. | 15:48 |
mkarray | The 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 #storyboard | 15:52 | |
*** diablo_rojo has joined #storyboard | 15:58 | |
*** misaac has quit IRC | 16:00 | |
*** misaac has joined #storyboard | 16:01 | |
*** jamesmcarthur_ has joined #storyboard | 16:06 | |
fungi | sounds like you're assuming the tags create method is idempotent | 16:06 |
fungi | you're presumably calling https://docs.openstack.org/infra/storyboard/webapi/v1.html#post--v1-tags when that error is returned | 16:07 |
fungi | tags are independent objects. you can create a tag and you can attach that tag to one or more stories | 16:07 |
*** jamesmcarthur has quit IRC | 16:08 | |
fungi | so 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 exists | 16:08 |
mkarray | This 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 |
fungi | i do find that discrepancy in behavior odd, yes | 16:15 |
mkarray | From 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. I | 16:18 |
fungi | ahh, so you're only calling the put method and not post? | 16:26 |
mkarray | correct. I did try to use post when I ran into this problem, but the error persisted | 16:27 |
fungi | if 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 one | 16:28 |
fungi | perhaps 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 well | 16:28 |
fungi | let's see if i can reproduce through the webclient | 16:29 |
mkarray | I 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 |
fungi | mmm, yeah it takes a good 10+ seconds to add a new tag to a story via the webclient | 16:31 |
fungi | the 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 exposing | 16:32 |
fungi | gonna try something else real quick | 16:33 |
fungi | mkarray: adding the same new tag to two stories without waiting for the first to finish does indeed seem to be a reproducer | 16:34 |
fungi | 400: PUT /api/v1/stories/1795033/tags: Database object 'StoryTag' with field value 'footag bartag' already exists. | 16:34 |
fungi | i 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 serialized | 16:34 |
fungi | so 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 that | 16:35 |
mkarray | I suppose that would explain why it works locally, the first one is able to finish before moving on to the second one | 16:35 |
fungi | yep | 16:35 |
kshitija | diablo_rojo, fungi , SotK : Hey. I am done with the local setup on my machine and it is working. Kindly guide me further. | 16:37 |
fungi | there 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 |
mkarray | Was about to ask if it was worth fixing the actual code or just working around it | 16:37 |
fungi | mkarray: i'll add a story about this so we don't lose track | 16:37 |
mkarray | Sounds good | 16:37 |
*** aish98 has joined #storyboard | 16:39 | |
*** misaac has quit IRC | 16:42 | |
fungi | mkarray: i've added https://storyboard.openstack.org/#!/story/2005086 so feel free to follow up there with any details | 16:47 |
mkarray | will do, thanks | 16:48 |
*** mkarray has quit IRC | 16:59 | |
*** mkarray has joined #storyboard | 17:00 | |
*** misaac has joined #storyboard | 17:02 | |
*** jpich has quit IRC | 17:20 | |
*** misaac has quit IRC | 17:21 | |
*** dtantsur is now known as dtantsur|afk | 17:23 | |
*** misaac has joined #storyboard | 17:24 | |
*** yashagrawal3 has joined #storyboard | 17:25 | |
yashagrawal3 | ping | 17:26 |
*** yashagrawal3 has quit IRC | 17:32 | |
*** misaac has quit IRC | 18:00 | |
*** misaac has joined #storyboard | 18:01 | |
*** aish98 has quit IRC | 18:19 | |
*** sarwatfatimam has joined #storyboard | 18:47 | |
*** misaac has quit IRC | 18:58 | |
*** aish98 has joined #storyboard | 19:33 | |
*** aish98 has quit IRC | 19:45 | |
*** aish98 has joined #storyboard | 19:47 | |
*** shruti10 has quit IRC | 19:54 | |
*** aish98 has joined #storyboard | 19:59 | |
openstackgerrit | Ivoline 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/638840 | 20:02 |
*** ivy has joined #storyboard | 20:03 | |
*** aish98 has quit IRC | 20:12 | |
*** jtomasek has quit IRC | 20:39 | |
*** jtomasek has joined #storyboard | 20:41 | |
*** jtomasek has quit IRC | 20:42 | |
*** jtomasek has joined #storyboard | 20:43 | |
openstackgerrit | Ivoline Ngong proposed openstack-infra/storyboard master: Updated_at content modified https://review.openstack.org/638840 | 20:56 |
*** jtomasek has quit IRC | 21:09 | |
mkarray | In regards to https://docs.openstack.org/infra/storyboard/webapi/v1.html#user-tokens | 21:12 |
mkarray | Is it not a bit silly to have a user require a token, to receive their token? | 21:12 |
mkarray | I 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 IRC | 21:20 | |
*** whoami-rajat has quit IRC | 21:47 | |
openstackgerrit | Ivoline Ngong proposed openstack-infra/storyboard master: Updated_at content modified https://review.openstack.org/638840 | 22:17 |
*** ivy has quit IRC | 22:18 | |
*** misaac has joined #storyboard | 22:22 | |
*** misaac has quit IRC | 22:26 | |
*** mkarray has quit IRC | 22:58 | |
*** jamesmcarthur_ has quit IRC | 23:17 | |
*** misaac has joined #storyboard | 23:18 | |
*** jamesmcarthur has joined #storyboard | 23:19 | |
*** jamesmcarthur has quit IRC | 23:30 | |
*** jamesmcarthur has joined #storyboard | 23:36 | |
*** jamesmcarthur has quit IRC | 23:47 | |
*** misaac has quit IRC | 23:50 | |
*** misaac has joined #storyboard | 23:52 | |
*** diablo_rojo has quit IRC | 23:53 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!