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

[validation] Disable uniqueness check for fields in arrays #1434

Merged
merged 1 commit into from
Aug 12, 2019

Conversation

rexxars
Copy link
Member

@rexxars rexxars commented Aug 12, 2019

When you have fields within an array that contain slugs, the uniqueness check doesn't currently work. In addition to not actually working, it raises a few interesting questions about what should be considered as unique. Unique within the array? Unique within all documents of the same type, within the array?

For now, I've disabled the uniqueness check and warned when this happens. In the future, we may be able to provide a better check that works either on array level or globally, but we need a better validation machine that batches requests and makes sure it doesn't fire too many checks at once.

Copy link
Member

@bjoerge bjoerge left a comment

Choose a reason for hiding this comment

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

👍

@rexxars rexxars merged commit c83964f into next Aug 12, 2019
@rexxars rexxars deleted the disable-array-slugs branch August 12, 2019 11:57
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