Wednesday, 2018-10-10

*** openstackgerrit has quit IRC01:37
*** tristanC has quit IRC01:37
*** odyssey4me has quit IRC01:37
*** njt has quit IRC01:37
*** yeled has quit IRC01:37
*** gundalow has quit IRC01:37
*** jmccrory has quit IRC01:37
*** apollo13 has quit IRC01:37
*** Glandos has quit IRC01:37
*** cloudnull has quit IRC01:37
*** sshnaidm|afk has quit IRC01:37
*** TimNZ has quit IRC01:37
*** mgariepy has quit IRC01:37
*** _KaszpiR_ has quit IRC01:37
*** andymccr has quit IRC01:37
*** Brainspackle has quit IRC01:37
*** mnaser has quit IRC01:37
*** gnupyx has quit IRC01:37
*** larsks has quit IRC01:37
*** jrist has quit IRC01:37
*** wkid has quit IRC01:37
*** dmsimard has quit IRC01:37
*** hiroki has quit IRC01:37
*** leifmadsen has quit IRC01:37
*** Naphta has quit IRC01:37
*** dw has quit IRC01:37
*** ChanServ has quit IRC01:37
*** dw has joined #ara01:43
*** odyssey4me has joined #ara01:43
*** Naphta has joined #ara01:43
*** leifmadsen has joined #ara01:43
*** hiroki has joined #ara01:43
*** dmsimard has joined #ara01:43
*** wkid has joined #ara01:43
*** jrist has joined #ara01:43
*** card.freenode.net sets mode: +o dmsimard01:43
*** apollo13 has joined #ara01:44
*** Glandos has joined #ara01:44
*** cloudnull has joined #ara01:44
*** openstackgerrit has joined #ara01:44
*** sshnaidm|afk has joined #ara01:45
*** TimNZ has joined #ara01:45
*** gundalow has joined #ara01:45
*** yeled has joined #ara01:45
*** njt has joined #ara01:45
*** Brainspackle has joined #ara01:46
*** mnaser has joined #ara01:46
*** andymccr has joined #ara01:46
*** mgariepy has joined #ara01:46
*** _KaszpiR_ has joined #ara01:46
*** gnupyx has joined #ara01:46
*** larsks has joined #ara01:46
*** ChanServ has joined #ara01:47
*** card.freenode.net sets mode: +o ChanServ01:47
*** jrist has quit IRC05:11
*** odyssey4me has quit IRC07:07
*** gvincent has joined #ara07:09
*** odyssey4me has joined #ara07:49
*** sshnaidm|afk is now known as sshnaidm08:22
*** gvincent has quit IRC08:42
*** gvincent has joined #ara08:45
*** gvincent has quit IRC09:10
*** gvincent has joined #ara10:15
*** gvincent has quit IRC10:22
*** gvincent has joined #ara10:23
_KaszpiR_the video from yesterdays live zuul prezentation is available https://www.crowdcast.io/e/zuul/110:29
*** sshnaidm is now known as sshnaidm|afk11:04
*** jrist has joined #ara11:15
*** sshnaidm|afk is now known as sshnaidm11:24
dmsimardapollo13: I looked at the searching/filtering stuff briefly, it looks like we need to set up query sets, search fields and stuff like that12:39
dmsimard_KaszpiR_: https://i.imgur.com/g9GZgsi.png reminds me of this that I did a while back: https://i.imgur.com/I3bV7nJ.png12:42
_KaszpiR_yeah12:45
_KaszpiR_some people do not know even basics of UML, unfortunately :/12:45
dmsimardI suck at graphs tho12:46
*** bcoca has joined #ara13:17
*** tbielawa has joined #ara13:22
*** dericcrago has joined #ara13:32
*** themurph has joined #ara14:02
*** themurph has quit IRC14:20
*** themurph has joined #ara14:28
*** jrist has quit IRC15:23
*** justicefries has joined #ara15:23
*** gvincent has quit IRC15:32
*** justicefries has quit IRC15:53
*** justicefries has joined #ara15:55
*** sshnaidm has quit IRC15:58
*** sshnaidm has joined #ara15:59
*** justicefries has quit IRC16:30
*** justicefries has joined #ara16:31
*** tbielawa has quit IRC16:59
*** tbielawa has joined #ara17:01
*** tbielawa is now known as tbielawa|lunch17:59
*** justicefries has quit IRC18:20
*** tbielawa|lunch has quit IRC18:37
*** tbielawa has joined #ara19:29
*** tbielawa has quit IRC19:29
*** tbielawa has joined #ara19:29
apollo13dmsimard: do you have any definition somewhere what should be filterable?20:35
dmsimardapollo13: I can make one up20:35
apollo13that would be great20:35
dmsimardapollo13: can you give me an example of what you need ?20:36
dmsimardor just the endpoint and what fields we'd need to query20:36
dmsimardlike getting tasks for a particular playbook, or tasks with a particular status, or plays with a particular uuid20:36
apollo13endpoint + which fields should be filterable would be enough20:37
apollo13even if it is just a list of sentences like you just had20:37
dmsimardok I can write a few of what we need to get us started20:38
apollo13ok, will go to bed now; just send me a link to a paste or whatever and I'll see what I can do20:38
apollo13oh drf uses django_filters; I maintained that package for a while :D20:40
dmsimardthat'll come in handy20:40
*** tbielawa has quit IRC20:53
dmsimardapollo13: https://etherpad.openstack.org/p/ara-1.0-searching20:54
apollo13dmsimard: regarding 3.2; I see a foreignkey to play in the Task model21:00
dmsimardyeah and play has a key to playbook21:00
dmsimardbut task doesn't have a key to playbook21:00
dmsimardat the end of the day, almost everything ties back to a playbook21:00
apollo13actually, what is a play and what is a playbook :)21:00
dmsimardyou know ansible right ?21:01
apollo13yes21:01
dmsimarda playbook is basically the entire execution of one ansible-playbook command21:01
dmsimardyou can have one or many plays inside a playbook21:01
apollo13ah righto21:01
apollo13never looked to closely into the terminology21:02
dmsimardapollo13: https://gist.github.com/dmsimard/d7e194c888f4ace177f176b24ff74f0721:02
apollo13jupp21:02
openstackgerritMerged openstack/ara-server master: Don't run isort on django database migrations  https://review.openstack.org/60907521:02
openstackgerritMerged openstack/ara-server master: Add an uuid field for the play model and API  https://review.openstack.org/60907621:02
apollo13I guess for efficiency a direct link to playbooks might make sense21:03
dmsimardyeah21:03
dmsimardalso, we need to figure out what we really want to send back on API calls21:03
dmsimardI mean21:03
dmsimardright now /api/v1/playbooks returns almost everything21:03
dmsimardincluding files etc21:04
apollo13jupp, btw looking through the models21:05
apollo13    tags = models.BinaryField(max_length=(2 ** 32) - 1)21:05
apollo13any reason why tags would be a binary field?21:05
dmsimardthat particular one probably doesn't need to be21:07
apollo13same probably goes for host facts21:07
dmsimardara does in-database compression to keep the size in check and files are hashed and stored once21:07
apollo13if it fits into json it is not binary…21:07
dmsimardit's compressed21:07
apollo13ah21:07
dmsimardtags are not big or anything21:07
dmsimardbut files and facts add up quickly21:07
apollo13ok, we might wanna write a custom field which does compression and decompression automatically21:08
apollo13or do you want compression already on the api side?21:08
dmsimardgvincent recommended we keep the model as "dumb" as possible and handle the compression at the API level21:09
dmsimardwhich is the current state of affairs21:09
dmsimardin the flask version of 1.0, the compression was done in the model21:09
dmsimardkeeping it in the API probably makes sense21:09
apollo13ok, really going to be now :D gotta see if I can look into filtering a bit at work tomorrow21:11
dmsimard++21:11
*** themurph has quit IRC21:14
*** sshnaidm is now known as sshnaidm|afk22:33

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