Skip to content

Conversation

@damien-rivet
Copy link
Contributor

@damien-rivet damien-rivet commented Oct 2, 2020

Summary

Fixes #48.

Remove acceptNewFields routes and add default values for searchableAttributes and displayedAttributes in Settings.

Miscellaneous

Added UT for testing default values and removed distinctAttributes from JSON test payload.

Cleaned up Setting struct and added default values for attributes.
Added UT for testing default values.
Removed "distinctAttributes" from JSON test payload.

Signed-off-by: Damien Rivet <[email protected]>
@damien-rivet damien-rivet changed the title [48] Remove acceptNewFields routes [#48] Remove acceptNewFields routes Oct 2, 2020
Removed unneeded Setting initializer.
ppamorim
ppamorim previously approved these changes Oct 3, 2020
@ppamorim
Copy link
Contributor

ppamorim commented Oct 3, 2020

@curquiza Could you please review and merge if approved?

@ppamorim ppamorim requested a review from curquiza October 3, 2020 20:28
Copy link
Contributor

@bidoubiwa bidoubiwa left a comment

Choose a reason for hiding this comment

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

Thanks a lot for this contribution! It's a really good work :)

Restored all explicit types which were removed previously.
Added missing Linux test for Settings.

Signed-off-by: Damien Rivet <[email protected]>
@damien-rivet
Copy link
Contributor Author

Just FYI, I had to reword my last commit since the build failed to restart the build.

And without changing anything, the build completed successfully this time, the failing test was testDeleteDocument in DocumentsTests.swift.

@ppamorim
Copy link
Contributor

ppamorim commented Oct 5, 2020

@Ethenyl Thank you very much, we really appreciate your effort in this PR.

Regarding the failing testDeleteDocument test, don't worry. We are sorting these tests in the PR #54.

@ppamorim ppamorim self-requested a review October 5, 2020 12:33
Copy link
Contributor

@bidoubiwa bidoubiwa left a comment

Choose a reason for hiding this comment

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

Thanks a lot

@curquiza curquiza merged commit a28d4a3 into meilisearch:master Oct 5, 2020
@curquiza curquiza changed the title [#48] Remove acceptNewFields routes Remove acceptNewFields routes Oct 5, 2020
@curquiza curquiza added the breaking-change The related changes are breaking for the users label Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change The related changes are breaking for the users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove acceptNewFields

4 participants