is-empty condition rejects missing values

Bug #1578184 reported by Dmitry Tantsur
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic Inspector
Fix Released
Medium
Dmitry Tantsur

Bug Description

It seems to be more intuitive that is-empty on a missing value returns True, but currently it returns False. This prevents some useful things with advanced JSON queries.

Changed in ironic-inspector:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic-inspector (master)

Reviewed: https://review.openstack.org/310031
Committed: https://git.openstack.org/cgit/openstack/ironic-inspector/commit/?id=50b989474d874c6004dd2b4f0c1ec598007a2fcb
Submitter: Jenkins
Branch: master

commit 50b989474d874c6004dd2b4f0c1ec598007a2fcb
Author: Dmitry Tantsur <email address hidden>
Date: Mon Apr 25 19:37:03 2016 +0200

    is-empty conditions should accept missing values

    Returning False from is-empty condition on missing values seems extremely
    confusing and rules out some potential use cases.

    Closes-Bug: #1578184
    Change-Id: I8f976516f89367512e2ffae2815085be1776b6f6

Changed in ironic-inspector:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic-inspector (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/313932

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic-inspector (stable/mitaka)

Reviewed: https://review.openstack.org/313932
Committed: https://git.openstack.org/cgit/openstack/ironic-inspector/commit/?id=0353131952c867271e151fd96b82cf48eca6c991
Submitter: Jenkins
Branch: stable/mitaka

commit 0353131952c867271e151fd96b82cf48eca6c991
Author: Dmitry Tantsur <email address hidden>
Date: Mon Apr 25 19:37:03 2016 +0200

    is-empty conditions should accept missing values

    Returning False from is-empty condition on missing values seems extremely
    confusing and rules out some potential use cases.

    Closes-Bug: #1578184
    Change-Id: I8f976516f89367512e2ffae2815085be1776b6f6
    (cherry picked from commit 50b989474d874c6004dd2b4f0c1ec598007a2fcb)

tags: added: in-stable-mitaka
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/ironic-inspector 3.2.1

This issue was fixed in the openstack/ironic-inspector 3.2.1 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/ironic-inspector 3.3.0

This issue was fixed in the openstack/ironic-inspector 3.3.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.