Skip to content

Conversation

brunoocasali
Copy link
Member

Fix breaking changes from 0.28 engine version including:

  • Rename nbHits response parameter to estimatedTotalHits.
  • Delete exhaustiveNbHits response parameter.
  • Delete exhaustiveFacetsCount response parameter.
  • matches request parameter is renamed showMatchesPosition.
  • _matchesInfo response parameter is renamed _matchesPosition.
  • facetsDistribution request parameter is renamed facets.
  • facetsDistribution response parameter is renamed facetDistribution.

@brunoocasali brunoocasali added the enhancement New feature or request label Aug 2, 2022
@brunoocasali brunoocasali requested a review from bidoubiwa August 2, 2022 18:34

func testSearchFacetsDistributionNullValue() {
func testSearchFacetDistributionNullValue() {
let expectation = XCTestExpectation(description: "Search for Books using facets distribution with 0 value")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the description still relevant?

func testSearchMatches() {
let expectation = XCTestExpectation(description: "Search for Books using matches")

typealias MeiliResult = Result<SearchResult<Book>, Swift.Error>
Copy link
Contributor

Choose a reason for hiding this comment

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

The description above

    let expectation = XCTestExpectation(description: "Search for Books using matches")

should become using showMatchesPosition. Sorry I can't make a suggestion on it :(


func testSearchFacetsDistribution() {
func testSearchFacetDistribution() {
let expectation = XCTestExpectation(description: "Search for Books using facets distribution")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let expectation = XCTestExpectation(description: "Search for Books using facets distribution")
let expectation = XCTestExpectation(description: "Search for Books using facets")

case .failure(let error):
dump(error)
XCTFail("Failed to search with testSearchFacetsDistribution")
XCTFail("Failed to search with testSearchFacetDistribution")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
XCTFail("Failed to search with testSearchFacetDistribution")
XCTFail("Failed to search with testSearchFacetDistributionNullValue")

Base automatically changed from settings-changes to bump-meilisearch-v0.28.0 August 4, 2022 13:18
@brunoocasali brunoocasali merged commit 03ef56e into bump-meilisearch-v0.28.0 Aug 4, 2022
@brunoocasali brunoocasali deleted the search-changes branch August 4, 2022 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants