Page MenuHomePhabricator

(MS3) Query for specific property with values in a specific range
Closed, ResolvedPublic5 Estimated Story Points

Description

As an editor I want to query data with values within a certain range in order to find all the results I am looking for, not just the ones with the exact values.

Problem:
Right now we can only query with exact matching for 'date' and 'quantity values'.

Example:

Screenshots/mockups:
date/time ranges
Label 1: before
Label 2: after

image.png (487×995 px, 42 KB)

quantity ranges
Label 1: less than
Label 2: more than
image.png (490×999 px, 46 KB)

BDD
GIVEN a visual query
WHEN querying for Properties of datatype time
THEN the editor can also choose one of 'before"/"after' in the dropdown

GIVEN a visual query
WHEN querying for Properties of datatype quantity
THEN the editor can also choose one of 'less than"/"more than' in the dropdown

Acceptance criteria:

  • Editors can choose between 'exact match' and 'range' for the given value when selecting a Property of datatype time or quantity.
  • Range options are only available for time and quantity values.
  • The range label varies depending on the datatype ("before"/"after" for time and "less than"/"more than" for quantity)

Related Objects

StatusSubtypeAssignedTask
Resolved amy_rc
Resolved amy_rc
ResolvedMichael
Resolved amy_rc
ResolvedMichael
ResolvedLadsgroup
ResolvedLadsgroup
Resolvedguergana.tzatchkova
ResolvedMichael
Resolvedguergana.tzatchkova
ResolvedMichael
Resolvedguergana.tzatchkova
ResolvedMichael
ResolvedMichael
Resolvedguergana.tzatchkova
Resolved amy_rc
ResolvedLadsgroup
ResolvedLadsgroup
Resolved bete
ResolvedMichael
Resolved bete
Resolved bete
ResolvedMichael
Resolved bete
Resolved bete
Resolved bete
Resolved bete
Resolvedguergana.tzatchkova
ResolvedMichael
ResolvedMichael
ResolvedMichael
ResolvedMichael

Event Timeline

Michael renamed this task from (MS3) Query for specific property with values in a specific range to (MS3) 🛑 Query for specific property with values in a specific range.Feb 24 2021, 1:04 PM
Michael renamed this task from (MS3) 🛑 Query for specific property with values in a specific range to (MS3) Query for specific property with values in a specific range.Apr 7 2021, 7:08 PM
Michael subscribed.

This is now ready to be verified on the test-system as well :)

Change 678282 had a related patch set uploaded (by Michael Große; author: Michael Große):

[wikidata/query-builder@master] Ensure day precision for day values

https://gerrit.wikimedia.org/r/678282

That patch doesn't belong to this ticket.

amy_rc claimed this task.
amy_rc moved this task from Test (Verification) to Done on the Wikidata Query Builder board.