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

Mark builder classes as final and internal #1542

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Nov 28, 2024

Most of the classes don't need to be used outside of the factory methods. Mark them as internal and final. This can be changed later if necessary.
This allows us to make changes as needed to this classes.

@GromNaN GromNaN requested a review from a team as a code owner November 28, 2024 11:03
@GromNaN GromNaN requested a review from alcaeus November 28, 2024 11:03
@GromNaN GromNaN force-pushed the builder-final-internal branch from 8ee804e to 29247c6 Compare November 28, 2024 14:19
Copy link
Member

@jmikola jmikola left a comment

Choose a reason for hiding this comment

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

Is this technically a BC break since we've already released a 1.x version with these classes? I wouldn't object to moving forward with this anyway, but just wanted to confirm.

@GromNaN
Copy link
Member Author

GromNaN commented Dec 2, 2024

This code have not been released yet in the library. Only as pre-version in mongodb/builder.

@GromNaN GromNaN requested a review from jmikola December 2, 2024 20:43
Copy link
Member

@jmikola jmikola left a comment

Choose a reason for hiding this comment

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

In the future, it may be best to isolate any changes to generated files in a separate commit. GitHub collapses the contents of those files by default, but they still pollute the PR view.

@GromNaN GromNaN merged commit 9fc0d42 into mongodb:v1.x Dec 2, 2024
31 checks passed
@GromNaN GromNaN deleted the builder-final-internal branch December 2, 2024 21:43
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.

2 participants