Page MenuHomePhabricator

Quantity and Date Inputs are not cleared on switching to "Regardless of Value"
Closed, ResolvedPublic3 Estimated Story PointsBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Create a condition with a datatype "quantity" or "time", property-value-relation "matching" and some values in the value input
  • Switch the property value relation to "regardless of value"

Actual Results (what happens?):

  • the input is disabled (that is correct), but not cleared (that is incorrect)

Expected Results (what should have happened?):

  • the values in the input (and vuex store and local variable state) are cleared

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

So it's not that bad, it's cleared in the store. Just not rerendered. I'm looking for ways to trigger it.

Change 683607 had a related patch set uploaded (by Bereket teshome; author: Bereket teshome):

[wikidata/query-builder@master] Clear Quantity and Date Inputs upon switching to "Regardless of Value"

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

Change 683607 merged by jenkins-bot:

[wikidata/query-builder@master] Clear Quantity and Date Inputs upon switching to "Regardless of Value"

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

amy_rc moved this task from Backlog to Done on the Wikidata Query Builder board.
amy_rc subscribed.

🎉