Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-167

Re-implement "open ranges" behavior in reactified schema view

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.4.0-beta.1
    • Component/s: Schema
    • None

      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

        1. open_closed_ranges_query_builder.gif
          163 kB
          Thomas Rueckstiess
        2. reddit m101js data - Screen Shot 2016-09-13 at 1.46.01 PM.png
          191 kB
          Peter Schmidt

            Assignee:
            Unassigned Unassigned
            Reporter:
            thomas.rueckstiess@mongodb.com Thomas Rueckstiess
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: