Skip to content

Conversation

@brunoocasali
Copy link
Member

  • Create TasksQuery to handle query string for /tasks calls
  • Add TasksResults type to handle the object response in the GET /tasks response.

@brunoocasali brunoocasali requested a review from bidoubiwa August 2, 2022 18:27
self.tasks.waitForTask(task: task, options: options, completion)
}

public func waitForTask(
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you forgot to a comment above explaining the function and its parameters

Copy link
Member Author

Choose a reason for hiding this comment

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

All the descriptions of the new classes/types/methods will be done after these PRs being merged :)

Copy link
Contributor

Choose a reason for hiding this comment

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

They will not be in #321 ?

Comment on lines +25 to +27
"type": types.isEmpty ? nil : types.joined(separator: ","),
"status": status.isEmpty ? nil : status.joined(separator: ","),
"indexUid": indexUid.isEmpty ? nil : indexUid.joined(separator: ",")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this ternary useful since you are safe guarding above?

Copy link
Member Author

Choose a reason for hiding this comment

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

After your suggestion I had to change to this: "indexUid": indexUid != nil ? indexUid?.joined(separator: ",") : nil

@brunoocasali brunoocasali requested a review from bidoubiwa August 3, 2022 14:47
Base automatically changed from indexes-changes to bump-meilisearch-v0.28.0 August 4, 2022 12:56
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.

bors merge

@meili-bors
Copy link
Contributor

meili-bors bot commented Aug 4, 2022

🔒 Permission denied

Existing reviewers: click here to make bidoubiwa a reviewer

@brunoocasali brunoocasali merged commit 1972cc1 into bump-meilisearch-v0.28.0 Aug 4, 2022
@brunoocasali brunoocasali deleted the tasks-changes branch August 4, 2022 13:06
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.

3 participants