Skip to content
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

GODRIVER-1569 Add support for authorizedDatabases option #371

Merged

Conversation

divjotarora
Copy link
Contributor

No description provided.

@divjotarora divjotarora requested review from jyemin and iwysiu April 16, 2020 15:18
Copy link
Contributor

@iwysiu iwysiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with nit

@@ -11,6 +11,10 @@ type ListDatabasesOptions struct {
// If true, only the Name field of the returned DatabaseSpecification objects will be populated. The default value
// is false.
NameOnly *bool

// If true, only the databases which the user is authorized to see will be returned. For more information about
// the behavior of this option, see https://docs.mongodb.com/manual/reference/privilege-actions/#find.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: add a note about the default value

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd intentionally left this out because the behavior is different not only between major server versions but between minor versions in the 4.0.x cycle, but reading the linked docs page again, I think it's safe to document that the default value is true, so I've added a note.

@jyemin During your review, can you comment whether or not you think this is OK to document?

Copy link
Contributor

@jyemin jyemin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@divjotarora divjotarora merged commit 90fdeba into mongodb:master Apr 21, 2020
@divjotarora divjotarora deleted the godriver1569-authorized-dbs-option branch April 21, 2020 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants