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

Bugfix/comprehensive index equality #496

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

slorello89
Copy link
Member

Closes #494

#479 added support for checking the equality of the current state of your model in your code versus what is in Redis, however there are a number of cases it did not account for which I missed during my review (e.g Vector fields, the special arguments from text fields, special arguments in the Document Attribute) one of which someone tripped over in #494. This PR should address all of these.

There is still the special case where it will not be able to definitively tell whether or not a index definition matches as several fields from the index definition are not returned from FT.INFO, namely STOPWORDS, PHONETIC, EF_RUNTIME, EPSILON, in which ase Redis OM will simply throw an ArgumentException.

Copy link

@bsbodden bsbodden left a comment

Choose a reason for hiding this comment

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

LGTM!

@slorello89 slorello89 merged commit 52bff7f into main Oct 28, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IsIndexCurrentAsync always returns false
2 participants