Skip to content

Conversation

@shimonewman
Copy link
Contributor

No description provided.

…dapters

- Introduced abstract methods in the Adapter class to check support for multiple fulltext and identical indexes.
- Updated the Database class to utilize these new methods during index validation.
- Enhanced the Mongo and SQL adapters to implement the new support checks.
- Modified the Index validator to validate multiple fulltext and identical indexes.
- Added unit and e2e tests to ensure proper validation behavior for these new features.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 18, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (2)
  • main
  • 0.69.x

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat-mongo-index-validation

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

shimonewman and others added 12 commits September 18, 2025 18:29
- Implemented methods to check support for multiple fulltext indexes and identical indexes.
- These methods delegate functionality to the underlying adapter, enhancing index validation capabilities.
…difications

- Added functionality to store original indexes before any modifications in the updateAttribute method.
- Updated index validation to use the preserved original indexes, ensuring accurate validation when altering attributes.
- Improved tests to verify behavior when updating attributes with empty newKey, accounting for identical index support.
- Updated index names in tests to ensure uniqueness and avoid conflicts.
- Added debug output for supportsIdenticalIndexes to aid in troubleshooting.
- Cleaned up whitespace in the AttributeTests to improve code readability.
- Added a check for fulltext index support before executing assertions in the testMultipleFulltextIndexValidation method.
- Ensured that tests do not perform assertions if fulltext indexing is not supported, improving test reliability.
@abnegate abnegate merged commit 2e3deb2 into feat-mongo-tmp Sep 26, 2025
17 checks passed
@abnegate abnegate deleted the feat-mongo-index-validation branch September 26, 2025 04:54
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.

3 participants