← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1479700] [NEW] Artifacts: filtering by dictionary key is not working

 

Public bug reported:

If we define an artifact type with a Dict property, it should be
possible to list only those artifacts of this type which have a
particular key present (i.e. set to any value). According to the initial
spec it should be possible.

However, the query /v3/artifacts/my_type/v1?property=key returns an HTTP
500

Also, I expect to be able to filter artifacts by a particular key-value combination, e.g. with a request like 
"/v3/artifacts/my_type/v1?property=key.value"
This currently does not work as well, also resulting in HTTP 500

** Affects: glance
     Importance: Undecided
     Assignee: Alexander Tivelkov (ativelkov)
         Status: New

** Affects: murano
     Importance: Undecided
         Status: New

** Changed in: glance
     Assignee: (unassigned) => Alexander Tivelkov (ativelkov)

** Also affects: murano
   Importance: Undecided
       Status: New

** Description changed:

  If we define an artifact type with a Dict property, it should be
  possible to list only those artifacts of this type which have a
  particular key present (i.e. set to any value). According to the initial
  spec it should be possible.
  
  However, the query /v3/artifacts/my_type/v1?property=key returns an HTTP
  500
  
- 
- Also, I expect to be able to filter artifacts by a particular key-value combination, e.g. with a request like /v3/artifacts/my_type/v1?property.key=value. This currently does not work as well, also resulting in HTTP 500
+ Also, I expect to be able to filter artifacts by a particular key-value combination, e.g. with a request like /v3/artifacts/my_type/v1?property=key.value.
+ This currently does not work as well, also resulting in HTTP 500

** Description changed:

  If we define an artifact type with a Dict property, it should be
  possible to list only those artifacts of this type which have a
  particular key present (i.e. set to any value). According to the initial
  spec it should be possible.
  
  However, the query /v3/artifacts/my_type/v1?property=key returns an HTTP
  500
  
- Also, I expect to be able to filter artifacts by a particular key-value combination, e.g. with a request like /v3/artifacts/my_type/v1?property=key.value.
+ Also, I expect to be able to filter artifacts by a particular key-value combination, e.g. with a request like 
+ "/v3/artifacts/my_type/v1?property=key.value"
  This currently does not work as well, also resulting in HTTP 500

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1479700

Title:
  Artifacts: filtering by dictionary key is not working

Status in Glance:
  New
Status in murano:
  New

Bug description:
  If we define an artifact type with a Dict property, it should be
  possible to list only those artifacts of this type which have a
  particular key present (i.e. set to any value). According to the
  initial spec it should be possible.

  However, the query /v3/artifacts/my_type/v1?property=key returns an
  HTTP 500

  Also, I expect to be able to filter artifacts by a particular key-value combination, e.g. with a request like 
  "/v3/artifacts/my_type/v1?property=key.value"
  This currently does not work as well, also resulting in HTTP 500

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1479700/+subscriptions


Follow ups