Skip to content

Add $geoNear stage tests#167

Open
danielfrankcom wants to merge 1 commit intodocumentdb:mainfrom
danielfrankcom:pr/geoNear
Open

Add $geoNear stage tests#167
danielfrankcom wants to merge 1 commit intodocumentdb:mainfrom
danielfrankcom:pr/geoNear

Conversation

@danielfrankcom
Copy link
Copy Markdown
Collaborator

@danielfrankcom danielfrankcom commented May 6, 2026

This change adds tests for the $geoNear aggregation stage operator.

As part of this change I introduced an indexes property to StageTestCase since I have needed this for a few operators in this category now.

I also introduced a foreign_indexes property to LookupTestCase, and defined the integration test for $lookup and $geoNear on the existing test_stages_position_lookup.py file, since it has the necessary infrastructure to deal with foreign documents already. This avoided complicating the $geoNear integration test file.

Ref: #34

Signed-off-by: Daniel Frankcom <frankcom@amazon.com>
@danielfrankcom danielfrankcom requested a review from a team as a code owner May 6, 2026 23:53
@documentdb-triage-tool
Copy link
Copy Markdown

🤖 Auto-triaged by documentdb-triage-tool.

Applied: compatibility test, enhancement
Project fields suggested: Component test-coverage · Priority P2 · Effort XL · Status Needs Review
Confidence: 0.85 (mixed)

Reasoning

component from path globs (test-coverage, test-framework); effort from diff stats (7507+1 LOC, 23 files); LLM: Adds new test coverage for the $geoNear aggregation stage, extending existing test infrastructure with new indexes and foreign_indexes properties across test case types.

If a label is wrong, remove it manually and ping @patty-chow so the rules can be tuned. The bot will not re-label items that already have component labels.

@documentdb-triage-tool documentdb-triage-tool Bot added compatibility test Compatibility test related enhancement New feature or request labels May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compatibility test Compatibility test related enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant