<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Feb 11, 2015 at 8:20 AM, Miguel Grinberg <span dir="ltr"><<a href="mailto:miguel.grinberg@gmail.com" target="_blank">miguel.grinberg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
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>
<br>
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>
<br></blockquote><div><br></div><div>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></div><div>a generic "tags" on the stack REST resource. This is really nice feature from UI perspective.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
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></blockquote><div><br></div><div>I have spotted nova's instance tags that look like the kinda beast we are after:<br></div><div> - <a href="https://blueprints.launchpad.net/nova/+spec/tag-instances">https://blueprints.launchpad.net/nova/+spec/tag-instances</a><br> - <a href="https://review.openstack.org/#/q/topic:bp/tag-instances,n,z">https://review.openstack.org/#/q/topic:bp/tag-instances,n,z</a><br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
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>
<br></blockquote><div><br></div><div>So we wanted to bring this up as there is a API WG and the concept of tags and filtering should be consistent<br>and we don't want to run off and do something that the WG really doesn't like.<br></div><div><br>But it looks like this needs a bit more fleshing out:<br> <a href="http://specs.openstack.org/openstack/api-wg/guidelines/pagination_filter_sort.html#filtering">http://specs.openstack.org/openstack/api-wg/guidelines/pagination_filter_sort.html#filtering</a><br><br></div><div>Should we just follow nova's instance tags, given the lack of definition in api-wg?<br><br></div><div>Regards<br>Angus<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thanks,<br>
<br>
Miguel<br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div></div>