-
Notifications
You must be signed in to change notification settings - Fork 245
feat(global-writes): open global writes tab when creating a collection COMPASS-8280 #6405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| workspaces.openCollectionWorkspace(connectionId, namespace, { | ||
| newTab: true, | ||
| initialSubtab: | ||
| connectionInfo && connectionSupports(connectionInfo, 'globalWrites') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
connectionSupports won't be sufficient. we'll need to filter out the admin/config/local collections and also views. adding @djechlin-mongodb, we'll need to sync this with the hiding of the tab
more context: https://mongodb.slack.com/archives/C03DU5ATTB6/p1729869659313749
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for only realising this now 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't create views through this modal and I'm pretty sure that even db users with admin roles can't create collections inside special-ish namespaces (but for anything that is defined as special-ish by mongodb-ns package we probably can add a filter here, yeah)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah right, thanks @gribnoysup !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added in 0d124af
paula-stacho
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Description
Checklist
Motivation and Context
Open Questions
Dependents
Types of changes