Skip to content

MONGOID-5720 - Deprecate GeoNear class and Criteria#max_scan methods#5761

Closed
johnnyshields wants to merge 9 commits intomongodb:masterfrom
johnnyshields:dep-old-server-methods-classes
Closed

MONGOID-5720 - Deprecate GeoNear class and Criteria#max_scan methods#5761
johnnyshields wants to merge 9 commits intomongodb:masterfrom
johnnyshields:dep-old-server-methods-classes

Conversation

@johnnyshields
Copy link
Copy Markdown
Contributor

@johnnyshields johnnyshields commented Nov 24, 2023

Deprecate of the following which don't work on work on MongoDB Server 4.2+:

  • GeoNear class (and its methods)
  • Criteria#max_scan

GeoNear is already deprecated somewhat, but this adds additional doc deprecations to ensure nothing is missed.

@johnnyshields johnnyshields changed the title Deprecate of GeoNear class and Criteria#max_scan methods Deprecate GeoNear class and Criteria#max_scan methods Nov 24, 2023
@johnnyshields johnnyshields changed the title Deprecate GeoNear class and Criteria#max_scan methods MONGOID-5720 - [Cleanup] Deprecate GeoNear class and Criteria#max_scan methods Nov 25, 2023
@johnnyshields johnnyshields changed the title MONGOID-5720 - [Cleanup] Deprecate GeoNear class and Criteria#max_scan methods MONGOID-5720 - Deprecate GeoNear class and Criteria#max_scan methods Nov 25, 2023
@johnnyshields johnnyshields changed the title MONGOID-5720 - Deprecate GeoNear class and Criteria#max_scan methods [READY FOR REVIEW] MONGOID-5720 - Deprecate GeoNear class and Criteria#max_scan methods Nov 25, 2023
@johnnyshields
Copy link
Copy Markdown
Contributor Author

johnnyshields commented May 5, 2025

This can be merged when the team is ready to drop support for Server 4.0, which I imagine should be soon since it's deep EOL (even 4.4 is EOL)

@jamis jamis changed the title [READY FOR REVIEW] MONGOID-5720 - Deprecate GeoNear class and Criteria#max_scan methods MONGOID-5720 - Deprecate GeoNear class and Criteria#max_scan methods May 7, 2025
@jamis
Copy link
Copy Markdown
Contributor

jamis commented Apr 24, 2026

Apologies for not merging this sooner. I've posted an updated PR that deprecates Criteria#max_scan -- GeoNear was deprecated and removed previously.

#6140

@jamis jamis closed this Apr 24, 2026
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