-
Notifications
You must be signed in to change notification settings - Fork 95
Improve tasks and batches types, refactor related tests #1943
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
Closed
Closed
Changes from all commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
797d9ee
Remove unnecessary classes
flevi29 23218d2
Save progress
flevi29 e5f1840
Progress
flevi29 4dceb10
Progress
flevi29 a18fad3
Merge branch 'main' into improve-task-batch
flevi29 9553b75
Fix formatting
flevi29 baf08c5
Fix test
flevi29 b5bfb5d
Fix test
flevi29 b8c7afc
Fix rest of the tests, adjust readme
flevi29 207da36
Add documentation, adjust types, functions, misc
flevi29 5651f6c
Merge branch 'main' into improve-task-batch
flevi29 a10699a
Fix formatting
flevi29 1ea7670
Revert some changes, misc
flevi29 8062d9b
Adjust types
flevi29 b77291b
Fix test
flevi29 b525e8d
Misc
flevi29 ccd5c20
Adjust docs
flevi29 bcbac12
Adjust doc
flevi29 03be679
Merge branch 'main' into improve-task-batch
flevi29 49dedd0
Merge with main
flevi29 890102a
Merge branch 'improve-task-batch' of github.com:flevi29/meilisearch-j…
flevi29 6e00229
Revert settings types change
flevi29 1dc418a
Fix formatting
flevi29 d141b1b
Add task wait applier to tasks as well
flevi29 6ff3d52
Revert bad test
flevi29 72c1456
Remove focus from test, experiment with old interval
flevi29 048a479
Fix not clearing timers when task is successfully awaited
flevi29 53a9049
Try and fix waitTask being slow
flevi29 adc946b
Fix unhandled rejections
flevi29 d2b3234
Refactor waitTask
flevi29 b509d60
Try fix slow waitTask
flevi29 9f4aacc
Try fix slow waitTask
flevi29 4db49a6
Add ability to specify default wait options for tasks through exporte…
flevi29 bc08957
Shorten code
flevi29 b5a6a7d
Rename variables
flevi29 a906055
Remove hint about bad Meilisearch version
flevi29 8c500a3
Add test for failing waitTask
flevi29 b2acf84
Fix formatting, don't add timeout if interval is invalid
flevi29 88f210e
Rename functions, adjust description
flevi29 15984a2
Do not export TaskClient in index
flevi29 1c74be0
Merge branch 'main' into improve-task-batch
flevi29 3156692
Revert deprecations
flevi29 9be9626
Merge branch 'main' into improve-task-batch
flevi29 a278fe6
Merge with main
flevi29 824f284
Merge branch 'improve-task-batch' of github.com:flevi29/meilisearch-j…
flevi29 61cf291
Fix formatting
flevi29 f9d412a
Merge branch 'main' into improve-task-batch
flevi29 7db2295
Merge with main
flevi29 cb7ff86
Added missing batchUids prop, misc
flevi29 d1e7b60
Make waitTask abort last getTask on timeout
flevi29 0b65095
Improve timeout errors, fix tests
flevi29 97c3019
Misc
flevi29 cdbd556
Fix error
flevi29 12fe057
Fix formatting
flevi29 fc4e9f4
Remove unnecessary tests
flevi29 324ae8c
Fix waitTask, try Symbol for timeout ID
flevi29 43f79b2
Fix http requests not catching abort error on response.text()
flevi29 6248a59
Fix Node.js 18 compat
flevi29 4f2b292
Add documentation to changed errors
flevi29 13cec4b
Merge with main
flevi29 517e119
Merge with main
flevi29 1cd5aae
Merge branch 'main' into improve-task-batch
Strift 68c4afd
Update type definitions header
flevi29 51cb947
Improve tasks and batches, refactor tests
flevi29 1a32547
Merge with main
flevi29 50a7ee1
Improvements
flevi29 dfa1e61
Fix bad merge
flevi29 b7c975e
Try fix renamed file
flevi29 878388a
Refactor code, minor changes
flevi29 df365fb
Revert file rename, cannot fix git not detecting it properly
flevi29 29d1c1b
Add test for wait options
flevi29 2bf02e5
Fix documentation
flevi29 05d87ec
Merge branch 'main' into improve-task-batch
flevi29 fddd1e3
Use randomUUID instead of fixed UUID
flevi29 80095a0
Revert renaming of types and certain symbols
flevi29 9d1287c
Add missing renames
flevi29 d7dd3fe
Misc
flevi29 dd8946a
Fix test
flevi29 ff1e7e1
Update src/types/task_and_batch.ts
flevi29 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API implementation now returns a SummarizedTaskPromise (and SummarizedTaskView) instead of EnqueuedTask. Please update the README examples to reflect the new type names for consistency.
Copilot uses AI. Check for mistakes.