Skip to content

Changes related to the next Meilisearch release (v0.30.0) #370

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 15 commits into from
Nov 28, 2022

Conversation

meili-bot
Copy link
Contributor

Related to this issue: meilisearch/integration-guides#221

This PR:

  • gathers the changes related to the next Meilisearch release (v0.30.0) so that this package is ready when the official release is out.
  • should pass the tests against the latest pre-release of Meilisearch.
  • might eventually contain test failures until the Meilisearch v0.30.0 is out.

⚠️ This PR should NOT be merged until the next release of Meilisearch (v0.30.0) is out.

This PR is auto-generated for the pre-release week purpose.

@bidoubiwa bidoubiwa force-pushed the bump-meilisearch-v0.30.0 branch from 65c2527 to 0cf2505 Compare November 15, 2022 18:04
* Update README.md

* Update README.tpl

* Add pagination feature for v0.30.0

* Fix failing test

* Rollback unrelated code change

Co-authored-by: meili-bot <[email protected]>
@bidoubiwa
Copy link
Contributor

bidoubiwa commented Nov 15, 2022

* Update README.md

* Update README.tpl

* Add filters in tasksQuery

* Add new error codes

* Add builder methods and tests

* Fix clippy suggestions

* Update src/tasks.rs

Co-authored-by: Amélie <[email protected]>

* Fix flacky tests

* Rename index_uids and task types

* Rename uid, status and types filters to plural

* Add new error codes

* Update error code to plural form

* Update code samples

Co-authored-by: meili-bot <[email protected]>
Co-authored-by: Amélie <[email protected]>
@bidoubiwa bidoubiwa added the skip-changelog The PR will not appear in the release changelogs label Nov 15, 2022
bidoubiwa and others added 11 commits November 17, 2022 11:23
* Add missing_master_key error code

* Fix clippy error
* Update README.md

* Update README.tpl

* Add filters in tasksQuery

* Add new error codes

* Add builder methods and tests

* Fix clippy suggestions

* Update src/tasks.rs

Co-authored-by: Amélie <[email protected]>

* Implement default taskQuery structure

* Fix flacky tests

* Fix get_tasks test

* Refactor filtering of tasks

* Rename index_uids and task types

* Rename uid, status and types filters to plural

* Add new error codes

* Update error code to plural form

* Update code samples

* Update code-samples with new filter plural naming

* Rename filters to plural form

* Implement cancel_tasks

* Add taskCancelation task details

* Fix execution of get_tasks

* Add canceled by as a return from task

* Fix taskCancelation detail

* Fix typing error

* Chage type of canceled_by

* Make variable plural

* Rollback unrelated changes

* Change variable to plural form

* Add delete tasks for v0.30.0 (#381)

* Add delete tasks for v0.30.0

* Add swap indexes for v0.30.0 (#382)

* Add swap indexes for v0.30.0

* Implement swap indexes

* Add indexSwap detail

* Use tuples as type for the indexes field

* Add tests on index swap

* Create better documentation for indexes swap

* Fix clippy errors

* Fix missing bracket

* Fix swap doc test

* Make doc more clear

Co-authored-by: meili-bot <[email protected]>
Co-authored-by: Amélie <[email protected]>
399: Update version for the next release (v0.21.0) r=bidoubiwa a=bidoubiwa

This version makes this package compatible with Meilisearch v0.30.0 🎉
Check out the changelog of [Meilisearch v0.30.0](https://github.com/meilisearch/meilisearch/releases/tag/v0.30.0) for more information on the changes.

## 🚀 Enhancements

- New `pagination` strategy with the search parameters`page` and `hitsPerPage` #374
- New bulder methods on `get_tasks`: `with_uids`, `with_before_enqueued_at`, ... see #375
- New `client.cancel_tasks` method that lets you cancel `enqueued` and `processing` tasks #377 
- New `client.delete_tasks` method that lets you delete tasks #381 
- New `client.swap_indexes` method that lets you swap two indexes #382

## ⚠️ Breaking change

- builder functions on `TasksQuery` name changes: #375
   - `with_status` -> `with_statuses`
   - `with_index_uid` -> `with_index_uids`
   - `with_type` -> `with_types`
- Task detail `receivedDocumentIds` renamed to `providedIds` #393
- Error field in `Task` is now always present and has a `None` value when there are no errors #390
- Add and rename some error codes: #384 

Co-authored-by: Charlotte Vermandel <[email protected]>
@bidoubiwa bidoubiwa requested a review from alallema November 28, 2022 14:47
@bidoubiwa bidoubiwa marked this pull request as ready for review November 28, 2022 14:47
Copy link
Contributor

@alallema alallema left a comment

Choose a reason for hiding this comment

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

LGTM! 🔥 🔥 🔥
Are you sure you don't prefer to have the PR version update separately?

@bidoubiwa
Copy link
Contributor

I was thinking about it, you'r probably right! I will do that next time :)

@bidoubiwa
Copy link
Contributor

bors merge

@bors
Copy link
Contributor

bors bot commented Nov 28, 2022

Build succeeded:

@bors bors bot merged commit 9457894 into main Nov 28, 2022
@bors bors bot deleted the bump-meilisearch-v0.30.0 branch November 28, 2022 15:14
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.

3 participants