Skip to content

MongoTemplate.createCollection(String, CollectionOptions) does not consider timeseries options #3984

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
mathink-ma opened this issue Mar 4, 2022 · 1 comment
Assignees
Labels
type: bug A general bug

Comments

@mathink-ma
Copy link

When the convertToDocument method is called when the non-object creation method createCollection is used, this method is not adapted to the time series
image
image

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 4, 2022
@christophstrobl christophstrobl self-assigned this Mar 10, 2022
@christophstrobl
Copy link
Member

good catch - we'll take care of this!

@christophstrobl christophstrobl added the type: bug A general bug label Mar 10, 2022
@christophstrobl christophstrobl removed the status: waiting-for-triage An issue we've not yet triaged label Mar 10, 2022
@mp911de mp911de changed the title Using mongoTemplate to create time series collection (not object creation) error MongoTemplate.createCollection(String, CollectionOptions) does not consider timeseries options Mar 11, 2022
@mp911de mp911de added this to the 3.3.3 (2021.1.3) milestone Mar 11, 2022
mp911de pushed a commit that referenced this issue Mar 11, 2022
This commit fixes an issue when creating a collection via MongoTemplate without passing on type information. In this case potential time series information was lost.

Closes #3984
Original pull request: #3990.
mp911de added a commit that referenced this issue Mar 11, 2022
Add missing Override annotations to template API methods.

See #3984
mp911de added a commit that referenced this issue Mar 11, 2022
Extract CreateCollectionOptions conversion to EntityOperations to unify collection creation. Adopt tests.

See #3984
Original pull request: #3990.
mp911de added a commit that referenced this issue Mar 11, 2022
Extract CreateCollectionOptions conversion to EntityOperations to unify collection creation. Adopt tests.

See #3984
Original pull request: #3990.
mp911de added a commit that referenced this issue Mar 11, 2022
Add missing Override annotations to template API methods.

See #3984
mp911de added a commit that referenced this issue Mar 11, 2022
Add missing Override annotations to template API methods.

See #3984
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants