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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 1.4.0-beta.1
    • Schema
    • None

    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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: