Add support for schemaless attributes in Database and Structure classes#714
Add support for schemaless attributes in Database and Structure classes#714abnegate merged 12 commits intofeat-mongo-tmpfrom
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 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. Comment |
* removed redundant internal attribute property * removed marked skipped * used construcuted promoted property
c310193 to
533e530
Compare
Schema behaviour
Previous
Structure Validations were coming for collection attributes along with the internal attributes resulting to structure exceptions for free form document structure in the mongodb adapter
Current
Structure validations happening for the internal attributes only and not for the free form document in the mongodb
Attributes and query behaviour
Previous
Previously due to attributes metadata storage , validations were able to able run and validations were getting done on the each attribute.
Same for query
Current
For mongodb, the attributes validation are getting skipped -> data directly getting dumped in the underlying db.
For query, we can query on both existing and non existing fields
Index
Same for index