[COMPASS-302] When the user wants to execute an empty query, pop up a warning box that this is not ideal Created: 08/Nov/16  Updated: 09/Dec/19  Resolved: 02/Aug/19

Status: Closed
Project: Compass
Component/s: Query Bar
Affects Version/s: None
Fix Version/s: 1.19.1

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

Attachments: GIF File explain-stupid.gif    
Issue Links:
Depends
Gantt Dependency
Epic Link: COMPASS-2267
Story Points: 1
Sprint: Compass Sprint Echidna, Compass Sprint Flamingo

 Description   

Broken off from COMPASS-291 and should be implemented after that.

Show a modal popup to warn the user when they try to run an empty explain {} because that is potentially very expensive on the database and we already know the result: a collection scan.

Acceptance Criteria:

  • When the user enters an empty query (or uses the default empty query) and hits apply, a modal window should appear with a warning text and 2 buttons, cancel/continue. Only when the user presses continue should the explain be executed.


 Comments   
Comment by Githook User [ 10/Nov/16 ]

Author:

{'name': 'KeyboardTsundoku', 'email': 'satyendra.n.sinha@gmail.com', 'username': 'KeyboardTsundoku'}

Message: COMPASS-302 added some styling to input modal
Branch: COMPASS-302-Warn-Modal-Empty-Query
https://github.com/10gen/compass/commit/7e9a9e57bafabaea479315f9491bba9794e3199b

Comment by Githook User [ 10/Nov/16 ]

Author:

{'name': 'KeyboardTsundoku', 'email': 'satyendra.n.sinha@gmail.com', 'username': 'KeyboardTsundoku'}

Message: COMPASS-302 modal added as a warning to run collection scan
Branch: COMPASS-302-Warn-Modal-Empty-Query
https://github.com/10gen/compass/commit/a08df81a39b9357b725407ae397d58d4e22fc103

Comment by Satyendra Sinha [ 10/Nov/16 ]

Since this modal should only come up on the explain plan it needs to be wired to a reacti-fied version of collection.js. So it also depends on COMPASS-309

This is blocked until COMPASS-309 is done.

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