You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additionally, queries with the OR operation de-duplicates results in ndb (see the note above the linked heading), which is why using != (i.e. < OR >) fixed the 'bug' in #1778
Currently, my solution is to replace osv.Bug.query(osv.Bug.aliases != '') with osv.Bug.query(ndb.OR(osv.Bug.aliases > '', osv.Bug.aliases < '')) to restore the original behaviour.
The text was updated successfully, but these errors were encountered:
Making this issue to document this problem we've run into.
osv.Bug.query(osv.Bug.aliases != '')
to find all bugs that have at least one alias in the aliases field.aliases < '' OR aliases > ''
!=
insteadAdditionally, queries with the OR operation de-duplicates results in ndb (see the note above the linked heading), which is why using
!=
(i.e.< OR >
) fixed the 'bug' in #1778Currently, my solution is to replace
osv.Bug.query(osv.Bug.aliases != '')
withosv.Bug.query(ndb.OR(osv.Bug.aliases > '', osv.Bug.aliases < ''))
to restore the original behaviour.The text was updated successfully, but these errors were encountered: