[COMPASS-4891] Read Only Version of Compass can drop collections Created: 22/Jun/21  Updated: 29/Oct/23  Resolved: 08/Jul/21

Status: Closed
Project: Compass
Component/s: Readonly
Affects Version/s: 1.26.1
Fix Version/s: 1.28.1

Type: Bug Priority: Major - P3
Reporter: Jeffrey Cheak Assignee: Maurizio Casimirri
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File 88ED48DD-9C0A-469D-8DE8-2C7855F3CAA3.jpeg     JPEG File DCC3963F-FAFC-41EC-A7B0-9E42455EF823.jpeg     JPEG File E7D3786E-32D2-4604-B162-88DE51DE1E6A.jpeg    
Story Points: 2
Documentation Changes: Not Needed
UserVoice Links:

Sprint: Iteration Geneva

 Description   

Description

What is going wrong?

Steps to Reproduce

How could an engineer replicate the issue you’re reporting?

1) Download the latest version of MongoDB Compass read only version.

2) Load a collection. 

3) Delete collection as any user type(admin or other) via the UI.

Expected Results

What do you expect to happen?

UI trashcan icon should not be clickable in the read only version of compass

Actual Results

What do you observe is happening?

I can click the trashcan and delete the collection

Additional Notes

Any additional information that may be useful to include.



 Comments   
Comment by Githook User [ 21/Jul/21 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(databases-collections): hide drop-collection button in compass read-only COMPASS-4891 (#2331)
Branch: install-before-publish
https://github.com/mongodb-js/compass/commit/01da9a2c65bed5e538b9097a73c47b4106e924ad

Comment by Githook User [ 08/Jul/21 ]

Author:

{'name': 'Maurizio Casimirri', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(databases-collections): hide drop-collection button in compass read-only COMPASS-4891 (#2331)
Branch: main
https://github.com/mongodb-js/compass/commit/01da9a2c65bed5e538b9097a73c47b4106e924ad

Comment by Githook User [ 07/Jul/21 ]

Author:

{'name': 'mcasimir', 'email': 'maurizio.cas@gmail.com', 'username': 'mcasimir'}

Message: fix(databases-collections): hide drop-collection button in compass read-only COMPASS-4891
Branch: COMPASS-4891
https://github.com/mongodb-js/compass/commit/684196b04c513f2b22de7a5f61caa2a9f58ca5eb

Comment by Jeffrey Cheak [ 24/Jun/21 ]

Hi Emilio,

 

I added the Read Only version number of Compass and attached a screenshot.

 

Version: 1.26.1

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