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: query objects with static and persisted schemas #6715

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jessmartin
Copy link
Member

Background

I ran into an issue querying for objects with a statically-defined schema and a persisted schema in Contacts App.

Expected Behavior

I believe that all objects that match a typename should be returned by the query, regardless of whether the object was created with a statically-defined schema or a persisted schema.

The failing test demonstrates the expected behavior.

As an aside, it seems that we have entangled the ideas of "persisted" and "dynamic" schemas. A statically-defined schema should be able to be persisted without becoming dynamic. Persistence just implies I want to share objects and schemas with other peers without depending on them to have a statically-defined type definition in their codebase. It does not imply that I want to modify that schema at runtime (make it dynamic).

@jessmartin
Copy link
Member Author

@ZaymonFC here's a failing unit test that demonstrates the problem we ran into between Contacts app and Table.

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.

None yet

1 participant