[COMPASS-167] Re-implement "open ranges" behavior in reactified schema view Created: 12/Sep/16  Updated: 10/Jan/24  Resolved: 08/Oct/19

Status: Closed
Project: Compass
Component/s: Schema
Affects Version/s: 1.4.0-beta.1
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Thomas Rueckstiess Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: GIF File open_closed_ranges_query_builder.gif     PNG File reddit m101js data - Screen Shot 2016-09-13 at 1.46.01 PM.png    
Issue Links:
Related
Epic Link: COMPASS-2234
Story Points: 3

 Description   

For MongoDB World, we've implemented a behavior in the query builder on "number" minicharts to create open ranges, e.g. {"$lt": 20} instead of {"$gt": 15, "$lt": 20} (special request from Dana for the demo). The behavior was to click-drag the selection box over the edge of the chart to trigger the open range, while still allowing closed ranges when dragging close to the edge.

This behavior got lost in the transition to the React version of the schema in the 1.4.0-beta cycle.

We want to re-implement it, and also add subtle visual feedback that indiciates to the user that they have reached/passed the threshold between open/close ranges (e.g. a faded background to the side when switching to open range).

The implementation for this behavior is available in the old code base, but it needs to be adjusted to the new query builder code.

Code Snippets:

Acceptance criteria:

  • add "outside chart" implementation for minicharts
  • call setRangeValue in query store


 Comments   
Comment by Peter Schmidt [ 14/Oct/16 ]

The resolution of "Gone away" is throwing this off. I don't want to clone the ticket so I might see if I can get this done on the plane before next sprint starts, then it's "free" for the purposes of the sprint.

Comment by Peter Schmidt [ 13/Sep/16 ]

(Really tangentially) Also affects the Reddit M101JS demo if you open it in Compass. https://www.youtube.com/watch?v=2pMtlTeJ8Ek

Generated at Wed Feb 07 22:24:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.