Skip to content
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

v0.28: Changes to Tasks API #1706

Closed
guimachiavelli opened this issue Jun 8, 2022 · 2 comments · Fixed by #1707 or #1746
Closed

v0.28: Changes to Tasks API #1706

guimachiavelli opened this issue Jun 8, 2022 · 2 comments · Fixed by #1707 or #1746
Assignees
Milestone

Comments

@guimachiavelli
Copy link
Member

guimachiavelli commented Jun 8, 2022

With v0.28, a few changes have been introduced to the Tasks API:

Pagination

As the name states, users will get paginated results when using GET /tasks. This pagination will work differently from other routes (e.g. /keys, /documents) and depend on query parameters from, next, and limit. For more information on this decision, consult the spec or one of the indicated SMEs.

Filtering

Users will also be able to filter tasks by status, type, or index. These filters can be concatenated (?status=finished&indexUid=INDEX_UID) and a user can use a comma-separated list of values (?status=enqueued,processing).

According to current spec, it seems only AND operations (but not OR/NOT) are supported. Might be good to confirm this before beginning.

/indexes

Remove two endpoints, GET /indexes/:indexUid/tasks and GET /indexes/:indexUid/tasks/:taskUid

/tasks

Create one new endpoints to replace the ones removed from /indexes : GET /tasks?indexUid=:indexUid

Task types

  • Task types documentPartial and documentAddition are renamed documentAdditionOrUpdate
  • Task type clearAll is renamed documentDeletion

References

@guimachiavelli guimachiavelli added this to the v0.28 milestone Jun 8, 2022
@guimachiavelli guimachiavelli mentioned this issue Jun 15, 2022
@guimachiavelli guimachiavelli linked a pull request Jun 15, 2022 that will close this issue
@dichotommy
Copy link
Contributor

Also, uid in the summarized task response is renamed taskUid.

@maryamsulemani97
Copy link
Contributor

Add new errors:

  • invalid_task_status
  • invalid_task_type

@guimachiavelli guimachiavelli linked a pull request Jun 22, 2022 that will close this issue
bors bot added a commit that referenced this issue Jun 29, 2022
1746: v0.28 tasks r=maryamsulemani97 a=dichotommy

Changes related to the tasks API in v0.28. For a description of these changes, see the [associated issue](#1706).

Co-authored-by: Tommy Melvin <[email protected]>
Co-authored-by: Tommy <[email protected]>
bors bot added a commit that referenced this issue Jul 11, 2022
1707: v0.28 r=guimachiavelli a=guimachiavelli

This is a staging PR for all changes related to Meilisearch v0.28.

Please avoid making changes directly to this PR; instead, create new child branches based off this one.

Closes #1687, #1688, #1691, #1692, #1693, #1694, #1699, #1700, #1701, #1702, #1703, #1704, #1706, #1722, #1727, #561

Co-authored-by: gui machiavelli <[email protected]>
Co-authored-by: gui machiavelli <[email protected]>
Co-authored-by: Tommy Melvin <[email protected]>
Co-authored-by: Maryam Sulemani <[email protected]>
Co-authored-by: Maryam <[email protected]>
@bors bors bot closed this as completed in #1707 Jul 11, 2022
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 a pull request may close this issue.

3 participants