Skip to content

Add support for schemaless attributes in Database and Structure classes#714

Merged
abnegate merged 12 commits intofeat-mongo-tmpfrom
attributes-fix-schemaless
Sep 25, 2025
Merged

Add support for schemaless attributes in Database and Structure classes#714
abnegate merged 12 commits intofeat-mongo-tmpfrom
attributes-fix-schemaless

Conversation

@ArnabChatterjee20k
Copy link
Contributor

@ArnabChatterjee20k ArnabChatterjee20k commented Sep 23, 2025

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

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 23, 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 attributes-fix-schemaless

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.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

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.

❤️ Share

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

@ArnabChatterjee20k ArnabChatterjee20k marked this pull request as draft September 24, 2025 19:21
@ArnabChatterjee20k ArnabChatterjee20k marked this pull request as ready for review September 24, 2025 19:26
@abnegate abnegate merged commit 4741ab1 into feat-mongo-tmp Sep 25, 2025
17 checks passed
@abnegate abnegate deleted the attributes-fix-schemaless branch September 25, 2025 04:22
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.

2 participants