Friday, 2019-04-12

*** ianychoi has joined #storyboard00:01
*** whoami-rajat has joined #storyboard01:09
*** dangtrinhnt has quit IRC01:45
*** dangtrinhnt has joined #storyboard01:49
*** diablo_rojo has quit IRC02:00
*** irclogbot_0 has quit IRC03:01
*** irclogbot_1 has joined #storyboard03:03
*** udesale has joined #storyboard04:13
*** cmoura has quit IRC04:40
*** scherbatsky has quit IRC05:27
*** scherbatsky has joined #storyboard05:28
*** jtomasek has joined #storyboard05:39
*** whoami-rajat has quit IRC07:05
*** whoami-rajat has joined #storyboard07:06
*** jpich has joined #storyboard07:32
*** tosky has joined #storyboard07:43
*** dtantsur|afk is now known as dtantsur08:01
*** dtantsur is now known as dtantsur|brb08:59
*** udesale has quit IRC11:05
*** Rou_ has joined #storyboard12:08
*** Rou_ has quit IRC12:12
*** jamesmcarthur has joined #storyboard12:43
*** dtantsur|brb is now known as dtantsur12:51
*** Rou has joined #storyboard12:53
*** altlogbot_0 has joined #storyboard13:05
*** Rou has quit IRC13:07
*** Rou has joined #storyboard13:15
RouHello :)13:15
RouI wanna ask about something13:16
RouI noticed some parameter sent to functions in the db/api called "session", saying that it is "DB session to use"13:17
RouI don't get what this is13:17
*** mkarray has joined #storyboard13:18
*** altlogbot_0 has quit IRC13:32
*** altlogbot_3 has joined #storyboard13:34
*** altlogbot_3 has quit IRC13:38
*** altlogbot_2 has joined #storyboard13:40
*** altlogbot_2 has quit IRC14:00
*** jamesmcarthur has quit IRC14:16
*** jamesmcarthur has joined #storyboard14:17
RouAnyone here? :(14:20
*** altlogbot_3 has joined #storyboard14:27
*** altlogbot_3 has quit IRC14:29
*** altlogbot_3 has joined #storyboard14:31
*** altlogbot_3 has quit IRC14:33
*** altlogbot_2 has joined #storyboard14:49
*** altlogbot_2 has quit IRC14:51
*** altlogbot_3 has joined #storyboard14:54
*** altlogbot_3 has quit IRC14:55
*** altlogbot_2 has joined #storyboard15:00
*** tosky has quit IRC15:11
*** tosky has joined #storyboard15:12
*** jamesmcarthur has quit IRC15:27
*** Rou has quit IRC15:58
*** jamesmcarthur has joined #storyboard15:58
*** jamesmcarthur has quit IRC16:05
*** dtantsur is now known as dtantsur|afk16:12
*** jpich has quit IRC16:18
*** jamesmcarthur has joined #storyboard16:28
*** tosky has quit IRC16:38
*** jamesmcarthur has quit IRC16:44
*** jamesmcarthur has joined #storyboard16:51
*** jamesmcarthur has quit IRC17:05
*** jamesmcarthur has joined #storyboard17:29
*** jamesmcarthur has quit IRC17:51
*** diablo_rojo has joined #storyboard17:56
*** irclogbot_1 has quit IRC18:08
*** irclogbot_0 has joined #storyboard18:12
*** tosky has joined #storyboard18:18
*** jamesmcarthur has joined #storyboard18:50
*** whoami-rajat has quit IRC19:09
*** Rou has joined #storyboard19:13
RouHello19:13
Roudiablo_rojo, hope you're free for a few minutes :)19:14
diablo_rojoRou, hello19:14
diablo_rojoYeah I'm around19:14
RouI've been trying to see the reason behind the slow filtering of stories in projectGroup's pages19:15
RouIt is surely in the API side not the web-client19:16
RouI found something odd though xD19:16
RouI literally deleted a row in a file in the api that should raise an error upon filtering, but nothing at all happens19:16
RouSo I have no idea now how the web-client talks to the api on my device19:17
RouOr how the connection is between them works?19:17
RouI'm kinda lost in that part XD19:17
diablo_rojoRou, can you link me to where you are poking at in the api?19:18
Roustoryboard/storyboard/db/api/stories.py19:19
mkarrayDid you rerun the api instance?19:19
diablo_rojoYeah if you dont restart the service I am guessing the change didnt get picked up19:20
Roumeaning?19:22
RouI did follow the instructions in the documentation long ago19:22
mkarrayYou have to rerun the command that launched your api instance19:22
Rouand I do open the local server of both of them19:23
Routhe command starting with tox?19:23
mkarrayFor me it is: tox -e venv -- storyboard-api --config-file ./etc/storyboard.conf19:23
Rouyeah, I do it19:23
Rouand tox -egrunt_no_api -- serve in the web-client folder19:24
RouI don't understand how was that even possible, if Storyboard does retrieve data from the database instance I have locally correct. I mean, it surely sends requests to the API to get the data, doesn't it? As far as I know...19:28
mkarrayIn my setup, my api fetches data from my local mysql database19:28
mkarrayWhat piece of the code are you changing? Can you link it on github?19:29
RouI deleted a header of the function lol19:29
Routhat will surely raise an error19:29
RouMaybe mine does that as well .. from the local mysql database19:30
RouI see the data in the database from phpmyadmin19:30
fungii'm going to start test imports of the openstack telemetry team repositories into storyboard-dev.openstack.org in a few minutes, to make sure there are no surprises19:31
Roumkarray, I was changing things in that file https://github.com/RadwaSK/storyboard/blob/master/storyboard/db/api/stories.py19:32
fungii'll also exercise https://review.openstack.org/649065 in the process19:32
mkarrayWhat line have you effected?19:35
mkarray(Thats a pretty broad file)19:35
RouI commented line 17619:37
RouJust that line19:37
RouAnd I think filtering stories in a project in project Groups does use this function19:38
Rou"_story_build_query"19:39
mkarrayyou commented out the function definition and the code recompiled?19:40
Rouhuh19:41
Rounope19:41
RouI do have to recompile it after I change anything in it?19:41
RouThat seems rather reasonable actually XD19:41
mkarrayyes that is why I asked if you were rerunning the tox command19:42
*** jamesmcarthur has quit IRC19:42
fungidepending on how it's installed (if it's installed into a virtualenv in "editable" mode that shouldn't be required)19:42
fungithough restarting any running services from that codebase is going to be required for sure19:42
RouAhh, you mean that I just should rerun the tox command after I change something in the code?19:43
Roufungi, it makes perfect sense, I don't know how I didn't think about that lol19:44
RouAnother thing, I also noticed that I have an error (red-underlined words) in some of the imports in the project, like now I can see in importing pytz and sqlalchemy.orm19:44
RouThat doesn't seem right, I think...19:45
fungipresumably you're seeing this in an ide? i'm not really sure what it thinks it's checking there so hard to know what to tell you19:46
RouI don't think it is an issue since it raises no error when running the tox command19:50
fungilikely your ide is merely confused (possible it isn't running in the same context where those dependencies are importable)19:52
Roumaybe19:54
Rouokay, now that is done, I have another things to ask about19:54
RouDo you know what I'm workin on or should I explain first?19:54
fungiaccording to scrollback, slow filtering of stories, looks like maybe inefficient api query implementation?20:02
fungi(known problem, suspected cause, glad someone has time to dig into it so... thanks!)20:03
RouI agree20:05
RouHowever, it's rather complicated20:05
RouIdk .. I totally understood how it works, after hours of digging XD20:05
Roubut, still, I think I will change much of the code to maybe make it more effecient20:05
Rouefficient*20:05
Rouhowever, if I do so, I'm not sure where it will ruin some calls from other functions or requests or whatever20:06
Roualso, how do I even test it to know?20:06
RouThe database instance I have only has like 3 stories or sth, it won't have that much data to know if it has gone faster or not20:07
fungiwe have "unit" tests which are really more like integration tests because they do full database interactions20:07
fungioh, performance tests with larger datasets?20:07
*** diablo_rojo has quit IRC20:08
fungithe other day someone said they used http://filldb.info/ to generate a usable dataset for sb load tests20:08
Rouhmmmm...20:09
RouI'll check it20:09
RouBut sill, what shall I do about the messing much with the code?20:09
fungii've looked into creating sanitized dumps of production data in the past, but given the intricacies of various rows associated with private stories it's not easy to redact20:09
RouI don't understand20:09
fungidon't understand what? we're talking about a couple of different things here20:11
fungias for how to go about submitting significant refactoring of the source code, that's best done in multiple smaller chunks if possible, to make them easier to review20:11
Roulol .. sorry, I meant the last message you send "sanitized dumps of production data"?20:11
Roudifferent patches?20:12
fungioh, you were saying your database has only a few stories so you didn't know how you were going to verify the performance improvements, and so i mentioned filldb.info as a possible way to create random data matching the sb db schema, and also that ni the past i had looked into ways to safely provide public copies of our production database for storyboard.openstack.org but concluded that was nontrivial20:13
fungimaybe we should focus on asking/answering one question at a time20:13
fungi(also i need to get these test imports for the telemetry team underway)20:14
Roulast message, what? XD20:15
fungimy earlier comments around 19:30z, i actually just popped in here to give folks a heads up that i'll be testing imports of the openstack telemetry bugs from launchpad.net to storyboard-dev.openstack.org (our persistent storyboard production-like testbed) in case anyone notices any impact20:18
RouAha20:19
Rouwell, good luck xx20:19
fungithanks!20:19
RouAre you and mkarray too from the U.S.?20:19
fungibut also happy to answer further questions about storyboard if i know the answers20:20
fungii live in the usa, yes. i do not know about mkarray20:20
RouIt explains the time. whenever I ask anything in mornings (in my time-zone) it is kinda a desert here, but now three replied to me XD20:21
fungiSotK is in an emea timezone, though i think he tends to be around more in his evenings20:22
mkarrayI'm in Canada Eh20:22
mkarrayEST20:22
Rouhuh20:22
RouAnyway, I will take one step at a time. I'll make the dummy db, start planning how I will optimize the query and maybe separate it into different patches as tasks to do. If I got stuck, I'll ask for sure. Thanks a lot for the help fungi, and mkarray,! :)20:23
mkarrayNo need for the thanks, anytime20:24
fungithank you for looking into this! i know lots of us find the performance issues painful as the dataset and user volume scales up20:24
RouI hope I do optimize it and increase its performance XD20:25
fungime too, very much ;)20:25
*** zbr has quit IRC20:37
*** Rou has quit IRC20:41
*** jtomasek has quit IRC21:14
*** jamesmcarthur has joined #storyboard21:19
*** jamesmcarthur has quit IRC21:23
*** diablo_rojo has joined #storyboard21:29
*** mkarray has quit IRC22:13
*** tosky has quit IRC23:11
*** diablo_rojo has quit IRC23:24

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