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

Inability to list search indexes is not properly detected #2674

Closed
ivan-wolf opened this issue Sep 6, 2024 · 1 comment · Fixed by #2673
Closed

Inability to list search indexes is not properly detected #2674

ivan-wolf opened this issue Sep 6, 2024 · 1 comment · Fixed by #2673
Labels
Milestone

Comments

@ivan-wolf
Copy link

ivan-wolf commented Sep 6, 2024

Bug Report

Q A
BC Break no
Version 2.8.1

Summary

Inability to list indexes is not properly detected anymore by the following lines of code:

https://github.com/doctrine/mongodb-odm/blob/2.8.1/lib/Doctrine/ODM/MongoDB/SchemaManager.php#L1060-L1063

Current behavior

With MongoDB 7.0.14, the error message is $listSearchIndexes stage is only allowed on MongoDB Atlas.

It does not contain Search index, so it's not recognized as unsupported command.

As such, the odm:schema:update command fails, even when there are no search indexes defined.

How to reproduce

Run the odm:schema:update command.

Expected behavior

The odm:schema:update does not fail when there are no search indexes defined.

@alcaeus alcaeus added this to the 2.8.2 milestone Sep 6, 2024
@alcaeus alcaeus added the Bug label Sep 6, 2024
@alcaeus
Copy link
Member

alcaeus commented Sep 6, 2024

Fixed in #2673.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants