Closed Bug 1252434 Opened 9 years ago Closed 9 years ago

inconsistent results searching for flag not enabled in product/component

Categories

(bugzilla.mozilla.org :: General, defect)

Production
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1158209

People

(Reporter: Pike, Unassigned)

References

()

Details

I have a query like this: https://bugzilla.mozilla.org/rest/bug?field0-0-0=cf_locale&type0-0-0=substring&value0-0-0=af&resolution=---&include_fields=cf_locale%2Cid%2Csummary%2Cproduct%2Ccomponent That finds two bugs, both of which are in products/components which don't have the Locale flag enabled. Now, on bugs that do, say https://bugzilla.mozilla.org/rest/bug?field0-0-0=cf_locale&type0-0-0=substring&value0-0-0=de&resolution=---&include_fields=cf_locale%2Cid%2Csummary%2Cproduct%2Ccomponent right now, the returned json comes with an array for "cf_locale". But for 'af', it doesn't. I would expect that the results of the search are matching the return values. Either by the search not finding bugs in components that have the flag disabled, or by handing out that data. side tracking: I guess most of the affected bugs were filed in a component that had the flag enabled, and then got moved. Do we have docs on the intended behavior here?
(In reply to Axel Hecht [:Pike] from comment #0) > side tracking: I guess most of the affected bugs were filed in a component > that had the flag enabled, and then got moved. Do we have docs on the > intended behavior here? the correct behaviour is for bugs should have values removed for fields that are no long valid. we do this for flags and tracking flags (bug 825946), but not vanilla custom fields.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Assignee: webservice → nobody
Component: WebService → General
Product: Bugzilla → bugzilla.mozilla.org
QA Contact: default-qa
Version: unspecified → Production
You need to log in before you can comment on or make changes to this bug.