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

Fix index name generation #301

Merged
merged 1 commit into from
Sep 29, 2023
Merged

Fix index name generation #301

merged 1 commit into from
Sep 29, 2023

Conversation

alcaeus
Copy link
Owner

@alcaeus alcaeus commented Sep 29, 2023

Fixes #300. The internal MongoDB\generate_index_name method was removed in version 1.16.0 of the MongoDB driver. To work around this, MongoCollection now uses the internal IndexInput class to generate index names.

@alcaeus alcaeus added this to the 1.2.4 milestone Sep 29, 2023
@alcaeus alcaeus self-assigned this Sep 29, 2023
@alcaeus
Copy link
Owner Author

alcaeus commented Sep 29, 2023

Test failures are unrelated, ignoring for now.

@alcaeus alcaeus merged commit 7d488cc into 1.x Sep 29, 2023
1 of 10 checks passed
@alcaeus alcaeus deleted the fix-index-name-generation branch September 29, 2023 15:00
kirkbaly pushed a commit to HealthCall-Dev/mongo-php-adapter that referenced this pull request Jan 4, 2024
* Improve testing (alcaeus#293)

* Run workflows every Sunday

* Remove failing seed list test

* Add instrumentation when connecting

* Use Ubuntu 20.04 for tests (alcaeus#302)

* Use internal class instead of now-removed internal function (alcaeus#301)

* PHP 8.2 compatibility - deprecation notice fix (alcaeus#306)

* Avoid using private API to fix regression (alcaeus#307)

---------

Co-authored-by: Andreas Braun <[email protected]>
Co-authored-by: Andreas Braun <[email protected]>
Co-authored-by: Stevan Tosic <[email protected]>
andyputra0712 added a commit to GDP-ADMIN/kaskus-mongo-php-adapter that referenced this pull request Jun 13, 2024
* Improve testing (alcaeus#293)

* Run workflows every Sunday

* Remove failing seed list test

* Add instrumentation when connecting

* Use Ubuntu 20.04 for tests (alcaeus#302)

* Use internal class instead of now-removed internal function (alcaeus#301)

* PHP 8.2 compatibility - deprecation notice fix (alcaeus#306)

* Avoid using private API to fix regression (alcaeus#307)

* PHP8.2 Dependency

* revert old changes overriden by new commit

---------

Co-authored-by: Andreas Braun <[email protected]>
Co-authored-by: Andreas Braun <[email protected]>
Co-authored-by: Stevan Tosic <[email protected]>
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.

MongoDB\generate_index_name method doesn't exist.
1 participant