<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-family: arial, sans-serif; font-size: medium;" class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class="headers" style="margin-top: 2pt;">Hi Angus,</div><div class="headers" style="margin-top: 2pt;"><br class=""></div><div class="headers" style="margin-top: 2pt;">Yeah, I missed the new Nova tags, they do seem very similar to Heat’s tags. </div><div class="headers" style="margin-top: 2pt;"><br class=""></div><div class="headers" style="margin-top: 2pt;">I should have been more clear when we discussed this on IRC regarding the API-WG position on filtering. I was aware of the lack of guidelines on filtering, and being an active member of the API-WG team I consider this a good opportunity to add more content on this topic.</div><div class="headers" style="margin-top: 2pt;"><br class=""></div><div class="headers" style="margin-top: 2pt;">The closest thing that we have in API-WG is a sorting guideline, which gathered very positive reviews. Some aspects of it, such as the structure of the URL arguments, can be adapted to filtering, so maybe I should take all this information and try to come up with generic filtering guidelines that Heat can use and API-WG can publish.</div><div class="headers" style="margin-top: 2pt;"><br class=""></div><div class="headers" style="margin-top: 2pt;">Thanks!</div><div class="headers" style="margin-top: 2pt;"><br class=""></div><div class="headers" style="margin-top: 2pt;">Miguel</div><div class="headers" style="margin-top: 2pt;"><br class=""></div><div class="headers" style="margin-top: 2pt;"><br class=""></div><div class="headers" style="margin-top: 2pt;"><br class=""></div><div class="headers" style="margin-top: 2pt;">From: Angus Salkeld <<a target="_top" href="http://gmane.org/get-address.php?address=asalkeld%2dnYU0QVwCCFFWk0Htik3J%2fw%40public.gmane.org" rel="nofollow" style="color: rgb(0, 35, 144); font-weight: bold; text-decoration: none;" class="">asalkeld@...</a>><br class="">Subject: <a target="_top" rel="nofollow" href="http://news.gmane.org/find-root.php?message_id=CAA16xczDTXGZp%5feEbdWGkjxtrXy2Et6t3gPo%3d8h308eYPFznOg%40mail.gmail.com" style="color: rgb(0, 35, 144); font-weight: bold; text-decoration: none;" class="">Re: Filtering by metadata values</a><br class="">Newsgroups: <a href="http://news.gmane.org/gmane.comp.cloud.openstack.devel" target="_top" style="color: rgb(0, 35, 144); font-weight: bold; text-decoration: none;" class="">gmane.comp.cloud.openstack.devel</a><br class="">Date: 2015-02-11 03:03:26 GMT (1 hour and 19 minutes ago)<br class=""></div><div class=""><br class="webkit-block-placeholder"></div><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 11, 2015 at 8:20 AM, Miguel Grinberg <span dir="ltr" class=""><<a href="mailto:miguel.grinberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" target="_blank" style="color: rgb(0, 35, 144); font-weight: bold; text-decoration: none;" class="">miguel.grinberg <at> gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote">Hi,<br class=""><br class="">We had a discussion yesterday on the Heat channel regarding patterns for searching or filtering entities by its metadata values. This is in relation to a feature that is currently being implemented in Heat called “Stack Tags”.<br class=""><br class="">The idea is that Heat stack lists can be filtered by these tags, so for example, any stacks that you don’t want to see you can tag as “hidden”, then when you request a stack list you can specify that you only want stacks that do not have the “hidden” tag.<br class=""><br class=""></blockquote><div class=""><br class=""></div><div class="">Some background, the author initially just asked for a field "hidden". But it seemed like there were many more use cases that could be fulfilled by having<br class=""></div><div class="">a generic "tags" on the stack REST resource. This is really nice feature from UI perspective.<br class=""></div><div class=""> </div><blockquote class="gmail_quote">We were trying to find other similar usages of tags and/or metadata within OpenStack projects, where these are not only stored as data, but are also used in database queries for filtering. A quick search revealed nothing, which is surprising.<br class=""></blockquote><div class=""><br class=""></div><div class="">I have spotted nova's instance tags that look like the kinda beast we are after:<br class=""></div><div class="">  -  <a href="https://blueprints.launchpad.net/nova/+spec/tag-instances" style="color: rgb(0, 35, 144); font-weight: bold; text-decoration: none;" class="">https://blueprints.launchpad.net/nova/+spec/tag-instances</a><br class="">  -  <a href="https://review.openstack.org/#/q/topic:bp/tag-instances,n,z" style="color: rgb(0, 35, 144); font-weight: bold; text-decoration: none;" class="">https://review.openstack.org/#/q/topic:bp/tag-instances,n,z</a><br class=""><br class=""> </div><blockquote class="gmail_quote"><br class="">Is there anything I may have missed? I would like to know if there anything even remotely similar, so that we don’t build a new wheel if one already exists for this.<br class=""><br class=""></blockquote><div class=""><br class=""></div><div class="">So we wanted to bring this up as there is a API WG and the concept of tags and filtering should be consistent<br class="">and we don't want to run off and do something that the WG really doesn't like.<br class=""></div><div class=""><br class="">But it looks like this needs a bit more fleshing out:<br class=""> <a href="http://specs.openstack.org/openstack/api-wg/guidelines/pagination_filter_sort.html#filtering" style="color: rgb(0, 35, 144); font-weight: bold; text-decoration: none;" class="">http://specs.openstack.org/openstack/api-wg/guidelines/pagination_filter_sort.html#filtering</a><br class=""><br class=""></div><div class="">Should we just follow nova's instance tags, given the lack of definition in api-wg?<br class=""><br class=""></div><div class="">Regards<br class="">Angus<br class=""></div><div class=""><br class=""></div><blockquote class="gmail_quote">Thanks,<br class=""><br class="">Miguel<br class="">__________________________________________________________________________<br class="">OpenStack Development Mailing List (not for usage questions)<br class="">Unsubscribe: <a href="http://OpenStack-dev-request-ZwoEplunGu0gQVYkTtqAhEB+6BGkLq7r@public.gmane.org/?subject:unsubscribe" target="_blank" style="color: rgb(0, 35, 144); font-weight: bold; text-decoration: none;" class="">OpenStack-dev-request-ZwoEplunGu0gQVYkTtqAhA@public.gmane.orgorg?subject:unsubscribe</a><br class=""><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank" style="color: rgb(0, 35, 144); font-weight: bold; text-decoration: none;" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class=""></blockquote></div><br class=""></div></div></div><pre class="">__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: <a target="_top" href="http://gmane.org/get-address.php?address=OpenStack%2ddev%2drequest%2dZwoEplunGu0gQVYkTtqAhEB%2b6BGkLq7r%40public.gmane.org" rel="nofollow" style="color: rgb(0, 35, 144); font-weight: bold; text-decoration: none;" class="">OpenStack-dev-request@...</a>?subject:unsubscribe
<a rel="nofollow" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_top" style="color: rgb(0, 35, 144); font-weight: bold; text-decoration: none;" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></pre><div class=""><br class=""></div></div></div></div></div></body></html>