Wednesday, 2015-09-23

*** nikhil has quit IRC02:58
*** david-lyle has joined #openstack-searchlight03:13
*** lakshmiS has joined #openstack-searchlight03:23
*** nikhil has joined #openstack-searchlight04:00
*** nikhil has quit IRC04:14
*** GB21 has joined #openstack-searchlight06:31
*** lakshmiS has quit IRC08:33
*** sballe has joined #openstack-searchlight09:15
*** lakshmiS has joined #openstack-searchlight10:21
*** lakshmiS has quit IRC10:37
*** lakshmiS has joined #openstack-searchlight11:11
*** GB21 has quit IRC13:07
*** lakshmiS has quit IRC13:20
*** nikhil has joined #openstack-searchlight14:06
openstackgerritSteve McLellan proposed openstack/searchlight: Add faceting  https://review.openstack.org/22238814:53
sjmc7TravT - about the created_at, updated_at, lakshmi's comment made me wonder. should this be more a documentation thing, rather than enforced in code? can we legitimately say that everything must always have a created and updated time?14:55
sjmc7or should we say that if your resource does, you should provide those fields? i can't think of anything that doesn't right now (although metadefs only have created)14:56
TravTsjmc7 let me go read his comment14:58
sjmc7https://review.openstack.org/#/c/226524/14:58
sjmc7he suggested moving it to a base class, which is reasonable given that we're enforcing the rule, but that made me wonder if we should be enforcing it at this level15:01
sjmc7the other option is to have e-s ignore missing sort fields15:01
TravTwell, I don't think we should auto-add the fields if they don't exist at all.15:03
TravTbut if they do exist, we should map them to the same field.15:04
sjmc7"we" can't do anything; the plugin author has to do it15:04
sjmc7that being the case, there's not really anything to do in this patch other than adjusting the metadef plugin's behavior15:04
TravTmaybe we could provide a helper function (normalize fields):15:04
TravTnova is actually wrong at the moment.15:04
TravTthe plugin has a mapping for created_at / updated_at15:04
TravTbut that isn't what is provided in data15:04
TravTit provides created / updated15:04
sjmc7ah yes, i forgot that. right - so that's something that should be done in the nova serialization15:04
sjmc7ok. i'm leaning more towards correcting the behavior of these plugins and making this a documentation issue15:05
TravTwhat if in base or in utils, we provided a helper function15:05
sjmc7what would it do?15:05
sjmc7take a list of before/after pairs?15:05
TravTwell, right now in my horizon plugin, i'm doing something similar15:06
TravT    function tempNormalizeCreateUpdateDateField(item) {15:06
TravT      item.created = item.created || item.created_at || null;15:06
TravT      item.created = $filter('date')(item.created, 'short');15:06
TravT      delete item.created_at;15:06
TravT      item.updated = item.updated || item.updated_at || null;15:06
TravT      item.updated = $filter('date')(item.updated, 'short');15:06
TravT      delete item.updated_at;15:06
TravT    }15:06
TravTonly inverse15:06
sjmc7yeah15:06
TravTa similar function would just take an object15:06
TravTsee if it has created and add created_at15:06
TravTsame for updated15:07
sjmc7i'm not sure about a base function that does a load of guessing15:07
sjmc7i guess if it's just for these fields it's ok15:07
sjmc7ok, i'll have another crack at it15:07
TravTnormalizing the date format would be kinda nice too15:08
sjmc7e-s does that15:08
TravTok15:08
sjmc7although if we have this normalize function do we let it implicitly map those?15:09
sjmc7guess that can be left up to the plugin15:12
TravTwell, i've been thinking that we could just add a general template mapping that all mapping get15:19
TravTlike what I had ekarlso do for _id fields15:19
sjmc7yeah, that's not a bad idea15:19
TravTor we just have a "common mappings" utility that contains them and plugins just grab them and add to their mapping15:20
sjmc7yeah. ok, i'll fix the nova issue and put up another patch. this might be somethng we revisit when there are more plugins15:21
TravTsure, sounds good.15:21
TravTi'll get back to my refactoring of the horizon plugin15:21
sjmc7:)15:21
ekarlsoTravT: whaaaa15:30
sjmc7:D15:34
TravTekarlso, yeah, i'll put some patch out by end of day no matter what.15:35
*** GB21 has joined #openstack-searchlight17:09
sjmc7TravT - doc_values might be useful for some fields (like the metadef descriptions) but for most of our stuff the volume we're looking at is so low i'm not sure it'll matter a huge amount17:20
*** sballe has quit IRC18:26
*** GB21 has quit IRC18:37
TravTekarlso: https://review.openstack.org/#/c/219271/18:43
TravTcouple comments on there.  if you can take a look.18:43
TravTwould like to get this one through18:43
david-lyleTravT: is the partial fix for https://bugs.launchpad.net/horizon/+bug/1496627 good enough for Liberty?20:18
openstackLaunchpad bug 1496627 in OpenStack Dashboard (Horizon) "hz-magic-search-bar does not honor isServer property" [Medium,In progress] - Assigned to Rajat Vig (rajatv)20:18
david-lylethe one that already merged?20:18
TravTi'm actually about 30 minutes away from having my code updated to try that out again.20:19
david-lyleok, I'll leave it in RC-1 for now, if it fixed it, can you remove the milestone?20:20
TravTbattling a slightly different issues with magic search facets that I'm trying to figure out if it is my issue or not.20:20
TravTok20:20
david-lyletrying to get down to final RC bugs20:20
david-lylethanks!20:20
TravTmakes sense20:20
TravTthanks20:20
sjmc7let me know if i can help, TravT20:20
TravTcan you read spaghetti?20:20
TravTsjmc7: i just incorporated your per type facet patch20:21
TravTthat part seems to be working fine20:21
TravTon the searchlight side20:21
sjmc7i am fluent!20:22
TravTand horizon side... the issue i'm having at the moment is with figuring out magic search events20:22
sjmc7i don't speak magic search20:22
sjmc7kelly might be able to help, depending on what she's up to her ears in20:23
TravTi'll ping her if needed... this just happens to be what i'm working with at this moment in time.20:23
TravTsmc7:  if you have some time, maybe you can look back over the functional tests patch to see if lakshmiS addressed your last comments20:24
sjmc7yep, planning to20:25
sjmc7many, many fires today20:25
TravTFire Danger: Critical20:25
sjmc7you have no idea20:25
TravTlet's keep it that way20:25
TravT:P20:25
sjmc7:)20:25
openstackgerritSteve McLellan proposed openstack/searchlight: Standardize created_at, updated_at  https://review.openstack.org/22652420:27
*** sigmavirus24_awa has quit IRC20:54
*** sigmavirus24_awa has joined #openstack-searchlight21:00
*** openstackgerrit has quit IRC22:16
*** openstackgerrit has joined #openstack-searchlight22:16
TravTekarlso: here's the initial code for the horizon panel: https://review.openstack.org/#/c/227036/22:38
TravTreview -d from horizon22:38
ekarlsoTravT: i'll have to look at it tmrw :|23:33

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