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

Filter out unresolved links in Dictionary::get_any() #6644

Merged
merged 2 commits into from
May 19, 2023
Merged

Conversation

tgoyne
Copy link
Member

@tgoyne tgoyne commented May 17, 2023

While trying to understand some details of what the code dealing with unresolved links was doing I discovered that some of it was not covered by tests. Adding some more tests ended up exposing a bug: Dictionary::get_any() was missing the check for unresolved links that the other getters have. This is the getter used for queries on dictionaries, so it resulted in queries using tombstone objects.

@tgoyne tgoyne self-assigned this May 17, 2023
@cla-bot cla-bot bot added the cla: yes label May 17, 2023
@tgoyne tgoyne requested a review from jedelbo May 17, 2023 22:41
@tgoyne tgoyne marked this pull request as ready for review May 17, 2023 22:41
Copy link
Contributor

@jedelbo jedelbo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only one comment.

src/realm/query_expression.cpp Outdated Show resolved Hide resolved
@tgoyne tgoyne merged commit 4536bc2 into master May 19, 2023
2 checks passed
@tgoyne tgoyne deleted the tg/unresolved-link branch May 19, 2023 16:24
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants