Skip to content

Deprecate MongoCustomConversions.BigDecimalRepresentation.STRING #4957

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

Closed
wants to merge 1 commit into from

Conversation

therepanic
Copy link
Contributor

@therepanic therepanic commented Apr 22, 2025

It is better to use BigInteger storage as Decimal128, so we should deprecate storage as strings.

Fix: #4920

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 22, 2025
@mp911de mp911de changed the base branch from main to 5.0.x April 24, 2025 06:29
@mp911de mp911de changed the base branch from 5.0.x to main April 24, 2025 06:30
@mp911de mp911de added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Apr 24, 2025
@mp911de mp911de added this to the 5.0 M3 (2025.1.0) milestone Apr 24, 2025
kssumin pushed a commit to kssumin/spring-data-mongodb that referenced this pull request May 2, 2025
This commit modifies the AddFieldsOperationBuilder to correctly treat String values as field references.
When a String value is passed, it is now interpreted as a reference to another field, following MongoDB's field reference syntax.

Closes spring-projects#4957

Signed-off-by: kssumin <[email protected]>
kssumin pushed a commit to kssumin/spring-data-mongodb that referenced this pull request May 2, 2025
This commit modifies the AddFieldsOperationBuilder to correctly treat String values as field references.
When a String value is passed, it is now interpreted as a reference to another field, following MongoDB's field reference syntax.

Closes spring-projects#4957

Signed-off-by: kssumin <[email protected]>
kssumin pushed a commit to kssumin/spring-data-mongodb that referenced this pull request May 2, 2025
This commit modifies the AddFieldsOperationBuilder to correctly treat String values as field references.
When a String value is passed, it is now interpreted as a reference to another field, following MongoDB's field reference syntax.

Closes spring-projects#4957

Signed-off-by: kssumin <[email protected]>
@christophstrobl
Copy link
Member

Thank you for taking the time to look into this. Since it is a behaviour breaking change there are several test failures that need to be addressed before we can bring the change in.

@christophstrobl christophstrobl added the status: waiting-for-feedback We need additional information before we can continue label May 28, 2025
@mp911de mp911de removed the status: waiting-for-feedback We need additional information before we can continue label Jul 15, 2025
mp911de pushed a commit that referenced this pull request Jul 15, 2025
Signed-off-by: Andrey Litvitski <[email protected]>
Original pull request: #4957
Closes: #4920
mp911de pushed a commit that referenced this pull request Jul 15, 2025
Update tests to work with new defaults and move those with previous String defaulting into a new home.
Revise reference documentation.

Original pull request: #4957
See: #4920
mp911de added a commit that referenced this pull request Jul 15, 2025
Adopt rebase changes. Update documentation to reflect default changes.

Original pull request: #4957
See: #4920
@mp911de
Copy link
Member

mp911de commented Jul 15, 2025

Thank you for your contribution. That's merged and polished now.

@mp911de mp911de closed this Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate MongoCustomConversions.BigDecimalRepresentation.STRING
4 participants