[COMPASS-7035] Clear the "Drop Collection" Modal input if " Created: 22/Jul/23  Updated: 29/Oct/23  Resolved: 11/Aug/23

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: 1.39.2

Type: Bug Priority: Minor - P4
Reporter: Taveesh Anand Assignee: Sergey Petushkov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: masOS Version 13.3.1 (22E261)
node.js / npm versions: v16.16.0/9.8.0


Issue Links:
Duplicate
is duplicated by COMPASS-6791 Collection's name already pre-filled ... Closed
is duplicated by COMPASS-7152 "Drop collection" name confirmation f... Closed
Documentation Changes: Not Needed
Sprint: Iteration Hagryphus

 Description   

Problem Statement/Rationale

Whenever a user tries to drop a collection(let's say collection A), and does so successfully they have to type in the name of the collection.

After that if they goto another collection(let's say collection B) and try to drop that collection as well, they see that in the prompt they still see the previously dropped collections' name(collection A).

Steps to Reproduce

Pre-requisites: 2 collections in your database

  1. Right click on the the first collection - A
  2. Click on "Drop collection" in the context menu
  3. Fill in the collections name in the opened modal and press the button "Drop Collection"
  4. Right click on the the second collection - B
  5. Click on "Drop collection" in the context menu

Expected Results

After step 5, the expectation would be to have the collection A's name removed from the input.

Actual Results

After step 5, the actual result is that collection A's name is visible in the collection B's Drop Collection Modal

Additional Notes

Any additional information that may be useful to include.



 Comments   
Comment by Githook User [ 22/Aug/23 ]

Author:

{'name': 'Taveesh Anand', 'email': 'tavy.andy97@gmail.com', 'username': 'tavyandy97'}

Message: fix(drop-ui): clear drop collections input state if drop collections success COMPASS-7035 (#4663)

fix: clear drop collections input state if success
Branch: bump-query-parser-to-ts
https://github.com/mongodb-js/compass/commit/a59b5bb765ff1a691ef9522482d997d8e0cf20bd

Comment by Githook User [ 22/Aug/23 ]

Author:

{'name': 'Taveesh Anand', 'email': 'tavy.andy97@gmail.com', 'username': 'tavyandy97'}

Message: fix(drop-ui): clear drop collections input state if drop collections success COMPASS-7035 (#4663)

fix: clear drop collections input state if success
Branch: ga-releases
https://github.com/mongodb-js/compass/commit/a59b5bb765ff1a691ef9522482d997d8e0cf20bd

Comment by Githook User [ 14/Aug/23 ]

Author:

{'name': 'Taveesh Anand', 'email': 'tavy.andy97@gmail.com', 'username': 'tavyandy97'}

Message: fix(drop-ui): clear drop collections input state if drop collections success COMPASS-7035 (#4663)

fix: clear drop collections input state if success
Branch: compass-7095-persist-atlas-login-auth-state
https://github.com/mongodb-js/compass/commit/a59b5bb765ff1a691ef9522482d997d8e0cf20bd

Comment by Githook User [ 14/Aug/23 ]

Author:

{'name': 'Taveesh Anand', 'email': 'tavy.andy97@gmail.com', 'username': 'tavyandy97'}

Message: fix(drop-ui): clear drop collections input state if drop collections success COMPASS-7035 (#4663)

fix: clear drop collections input state if success
Branch: beta-releases
https://github.com/mongodb-js/compass/commit/a59b5bb765ff1a691ef9522482d997d8e0cf20bd

Comment by Githook User [ 11/Aug/23 ]

Author:

{'name': 'Taveesh Anand', 'email': 'tavy.andy97@gmail.com', 'username': 'tavyandy97'}

Message: fix(drop-ui): clear drop collections input state if drop collections success COMPASS-7035 (#4663)

fix: clear drop collections input state if success
Branch: COMPASS-7051-add-ai-feedback
https://github.com/mongodb-js/compass/commit/a59b5bb765ff1a691ef9522482d997d8e0cf20bd

Comment by Githook User [ 11/Aug/23 ]

Author:

{'name': 'Taveesh Anand', 'email': 'tavy.andy97@gmail.com', 'username': 'tavyandy97'}

Message: fix(drop-ui): clear drop collections input state if drop collections success COMPASS-7035 (#4663)

fix: clear drop collections input state if success
Branch: main
https://github.com/mongodb-js/compass/commit/a59b5bb765ff1a691ef9522482d997d8e0cf20bd

Comment by Taveesh Anand [ 23/Jul/23 ]

Hey Team!
Have created a PR for the same here - link

Comment by PM Bot [ 22/Jul/23 ]

Hello tavy.andy97@gmail.com, thank you for reaching out to us! The team will review your issue and get back to you soon as soon as possible.

Please review your issue to ensure you've included your environment details and have attached relevant logs (with any sensitive data redacted), so that we're best able to provide you a timely and thorough response. Thanks again!

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