-
Notifications
You must be signed in to change notification settings - Fork 9
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
UIREC-292: fix update item status on unreceive piece #484
Conversation
|
||
return unreceive([currentPiece]) | ||
.then(() => { | ||
onStatusChange(PIECE_STATUS.expected); |
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.
If I'm not mistaken, calling "unreceive" API updates the piece status and you don't need to do it again.
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.
Let me check it.
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.
Screen.Recording.2024-01-29.at.13.31.27.mov
|
* UIREC-292: fix update item status on unreceive piece * fix failing test * test: improve test coverage * refactor by adding custom `useUnreceive` hook * tests: fix failing tests * refactor useUnreceive hook * update onUnreceivePiece callback function * fix failing test case * refactor onunrecieve callback * tests: add test coverage * update package.json interface versions * revert package.json interface version due to wrong PR
* UIREC-292: fix update item status on unreceive piece * fix failing test * test: improve test coverage * refactor by adding custom `useUnreceive` hook * tests: fix failing tests * refactor useUnreceive hook * update onUnreceivePiece callback function * fix failing test case * refactor onunrecieve callback * tests: add test coverage * update package.json interface versions * revert package.json interface version due to wrong PR
* UIREC-292: fix update item status on unreceive piece * fix failing test * test: improve test coverage * refactor by adding custom `useUnreceive` hook * tests: fix failing tests * refactor useUnreceive hook * update onUnreceivePiece callback function * fix failing test case * refactor onunrecieve callback * tests: add test coverage * update package.json interface versions * revert package.json interface version due to wrong PR
Purpose
UIREC-292 - fix update item status on unreceive piece according to the comment here Video source
Approach
Screen.Recording.2024-01-24.at.19.33.10.mov
TODOS and Open Questions
Learning
Pre-Merge Checklist
Before merging this PR, please go through the following list and take appropriate actions.
If there are breaking changes, please STOP and consider the following:
Ideally all of the PRs involved in breaking changes would be merged in the same day to avoid breaking the folio-testing environment. Communication is paramount if that is to be achieved, especially as the number of intermodule and inter-team dependencies increase.
While it's helpful for reviewers to help identify potential problems, ensuring that it's safe to merge is ultimately the responsibility of the PR assignee.