Skip to content

Apply task changes #188

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

Merged
merged 1 commit into from
Jul 5, 2022
Merged

Apply task changes #188

merged 1 commit into from
Jul 5, 2022

Conversation

brunoocasali
Copy link
Member

@brunoocasali brunoocasali commented Jul 5, 2022

  • Replace uid by taskUid
  • Replace ['results'] by ->getResults()

TODO:

  • To update meilisearch-php after the release.

@brunoocasali brunoocasali requested review from alallema and curquiza July 5, 2022 17:05
@@ -162,7 +162,7 @@ public function testPreRemoveWithObjectId(): void
*/
private function waitForAllTasks(): void
{
$firstTask = $this->client->getTasks()['results'][0];
$firstTask = $this->client->getTasks()->getResults()[0];
Copy link
Member

Choose a reason for hiding this comment

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

What is the new return type of getTasks, it was an array before, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

@brunoocasali brunoocasali Jul 5, 2022

Choose a reason for hiding this comment

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

Intrinsically is the same behavior but the correct way to access this value is through the getter :)

Copy link
Member

Choose a reason for hiding this comment

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

Perfect! thanks!

Copy link
Member

@curquiza curquiza left a comment

Choose a reason for hiding this comment

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

It seems not a lot of changes, I checked in the code base to be sure, but looks like everything has been updated 😊 Not a lot of changes finally for Symfony!

Well done!

@brunoocasali brunoocasali merged commit 389c407 into bump-meilisearch-v0.28.0 Jul 5, 2022
@brunoocasali brunoocasali deleted the v28-php branch July 5, 2022 18:07
brunoocasali added a commit that referenced this pull request Jul 11, 2022
@brunoocasali brunoocasali added the skip-changelog The PR will not appear in the release changelogs label Jul 11, 2022
brunoocasali added a commit that referenced this pull request Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog The PR will not appear in the release changelogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants