Thursday, 2018-10-04

*** tristanC has quit IRC00:33
*** tristanC has joined #ara00:33
*** bcoca has quit IRC02:08
*** gvincent has joined #ara04:44
*** gvincent has quit IRC04:48
*** gvincent has joined #ara05:15
*** themurph has joined #ara11:44
*** themurph_ has joined #ara11:47
*** themurph has quit IRC11:49
*** bcoca has joined #ara12:56
*** themurph_ has quit IRC13:01
*** themurph has joined #ara13:04
*** tbielawa has joined #ara13:20
*** bcoca has quit IRC14:29
*** tbielawa is now known as tbielawa|demos14:43
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: Expose the sha1 in the API file serializer  https://review.openstack.org/60797915:01
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: Hash the files before compressing them  https://review.openstack.org/60766015:09
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: Expose the sha1 in the API file serializer  https://review.openstack.org/60797915:19
*** sshnaidm is now known as sshnaidm|afk15:20
openstackgerritDavid Moreau Simard proposed openstack/ara-plugins master: Update README.rst to be more accurate  https://review.openstack.org/60728115:25
*** sshnaidm|afk is now known as sshnaidm15:36
*** themurph has quit IRC16:03
*** gvincent has quit IRC16:12
*** themurph has joined #ara16:48
*** tbielawa|demos is now known as tbielawa17:16
*** themurph has quit IRC17:18
*** Serienmorder has joined #ara17:24
apollo13dmsimard: not that I have much time left this week; but what would the next things be that you want to tackle on the server side?17:25
*** tbielawa is now known as tbielawa|lunch17:33
dmsimardapollo13: hey, the todo is here: https://etherpad.openstack.org/p/ara-todo-1.017:55
dmsimardapollo13: I'm not very good at doing the pagination and searching/filtering things, maybe it's something you could pick up17:56
dmsimardI think there is pagination right now but it's set to 1000 items or something which is not realistic17:56
dmsimardtristanC and I ran a fuzzer on the API and we could tell that the performance was dropping over time due to inefficient pagination17:57
dmsimardfor searching and filtering, well, it's to be able to do things like "get tasks with status X", for example17:57
apollo13sure, but I am not sure how you want to work against that17:57
apollo13no matter what you do, if you use limit/offset based pagination you will get slower17:58
apollo13the further you go down the pages the slower you get17:58
apollo13after all the database has to run sort etc before and then go through the pages17:58
dmsimardsure17:58
dmsimardthat's fine17:58
dmsimardbut running GETs on 1000 items pages would be slower than running GETs on, say, 100 items per page17:59
apollo13true17:59
dmsimardif we have 5000 playbooks in the database for example, we probably don't want the API to return 1000 per page on a GET to /playbooks17:59
dmsimardFWIW I put in place black and isort for ara-clients and ara-plugins, thanks again for that :18:00
dmsimard:)18:00
apollo13jupp, saw the commits; nice work!18:00
dmsimardso yeah, I think proper pagination/search/filtering is a thing we need and that I'm not good at18:01
apollo13that said I am still a bit lost with regards to pagination and filtering; the todo is rather vague. the default size of 1k is just a setting; so what exactly do you miss or want with sarch filtering?18:01
dmsimardapollo13: the pagination and searching/filtering that exists today comes from more or less a copy/paste from gvincent18:02
dmsimardso don't assume that anything currently implemented was done conciously18:02
apollo13right, but what do you miss in terms of features etc?18:02
apollo13I mean the defaults from DRF more or less just work ™18:02
dmsimardapollo13: if you can do react, you can help on the web interface if you'd like :P18:04
dmsimardit's probably what needs the most work18:04
apollo13I'll be doing js over my dead body18:04
dmsimardhaha18:04
dmsimardI know the feeling, I tried and I gave up18:04
apollo13I am a sysadmin at work, so guess my motivation to do js18:04
apollo13:D18:04
apollo13also vuejs if needs be18:04
dmsimardhmmm, the other thing is configuration/settings for the backend18:05
dmsimardI got the configuration for the callback figured out18:05
dmsimardI'm not sure what I want our settings.py to do yet18:05
apollo13preferably fully configurable with env vars ;)18:06
dmsimardyeah, but not exclusively18:06
dmsimardansible actually has something that lets plugins configure themselves through envvars and ansible.cfg now, so the callback will use that18:06
dmsimardWe /could/ leverage that configuration "API" from Ansible (this is pretty much what ara 0.x does today)18:07
apollo13I'll have to take a look at what ansible does18:07
dmsimardbut that also makes it so we require ansible and I'm not sure I want to make the backend depend on ansible18:07
apollo13anyways gotta run now; will think about it18:08
dmsimardalright18:08
dmsimardif you're good at database models, feel free to take a look at it too -- there are some particularities that I'd be happy to explain when you have time18:09
*** tbielawa|lunch has quit IRC18:17
*** tbielawa has joined #ara18:26
*** Serienmorder has quit IRC18:40
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: Expose the sha1 in the API file serializer  https://review.openstack.org/60797918:47
openstackgerritMerged openstack/ara-plugins master: Update README.rst to be more accurate  https://review.openstack.org/60728118:57
openstackgerritMerged openstack/ara-server master: Hash the files before compressing them  https://review.openstack.org/60766018:58
*** tbielawa has quit IRC19:19
*** tbielawa has joined #ara19:28
*** tbielawa is now known as tbielawa|mtg19:34
*** tbielawa|mtg is now known as tbielawa20:36
*** tbielawa is now known as tbielawa|g0n321:46
*** tbielawa|g0n3 has quit IRC21:46

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