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

DOCSP-24948-mongorestore-nsExclude-nsInclude-precedence #178

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

jmd-mongo
Copy link
Contributor

@jmd-mongo jmd-mongo commented Dec 2, 2024

DESCRIPTION

Documents that --nsExclude takes precedence over --nsInclude in cases where both are specified.

Test Results: https://gist.github.com/jmd-mongo/63690ba41fcea86fcb8880902559b992

STAGING

JIRA

https://jira.mongodb.org/browse/DOCSP-24948

Self-Review Checklist

  • Is this free of any warnings or errors in the RST?
  • Is this free of spelling errors?
  • Is this free of grammatical errors?
  • Is this free of staging / rendering issues?
  • Are all the links working?

External Review Requirements

What's expected of an external reviewer?

Copy link

netlify bot commented Dec 2, 2024

Deploy Preview for docs-commandline-tools ready!

Name Link
🔨 Latest commit 79155db
🔍 Latest deploy log https://app.netlify.com/sites/docs-commandline-tools/deploys/674f1d473604cc000856a661
😎 Deploy Preview https://deploy-preview-178--docs-commandline-tools.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@sarah-olson-mongodb sarah-olson-mongodb left a comment

Choose a reason for hiding this comment

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

Thanks for these updates @jmd-mongo. LGTM with one optional suggestion.

Comment on lines 3 to 5
specify both ``--nsExclude="prod.*"`` and ``--nsInclude="prod.trips"``,
the pattern specified by ``--nsExclude`` takes precedence and no
collections from the ``prod`` namespace are restored.
Copy link
Collaborator

Choose a reason for hiding this comment

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

(optional minimalism suggestion)
To avoid repeating "the pattern specified by ..."

Suggested change
specify both ``--nsExclude="prod.*"`` and ``--nsInclude="prod.trips"``,
the pattern specified by ``--nsExclude`` takes precedence and no
collections from the ``prod`` namespace are restored.
specify both ``--nsExclude="prod.*"`` and ``--nsInclude="prod.trips"``, no
collections from the ``prod`` namespace are restored.

@jmd-mongo jmd-mongo merged commit 3d52400 into mongodb:master Dec 3, 2024
4 checks passed
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