-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
refactor: Add exception handling in background job within BOM Update Tool (backport #30146) #30520
Merged
marination
merged 15 commits into
version-13-hotfix
from
mergify/bp/version-13-hotfix/pr-30146
Apr 6, 2022
Merged
refactor: Add exception handling in background job within BOM Update Tool (backport #30146) #30520
marination
merged 15 commits into
version-13-hotfix
from
mergify/bp/version-13-hotfix/pr-30146
Apr 6, 2022
Conversation
This file contains 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
…Tool (cherry picked from commit f57725f)
- Created BOM Update Log that will handle queued job status and failures - Moved validation and BG job to thus new doctype - BOM Update Tool only works as an endpoint (cherry picked from commit 4283a13) # Conflicts: # erpnext/manufacturing/doctype/bom_update_tool/bom_update_tool.py
- Added Typing - Moved all job business logic to bom update log - Added `run_bom_job` that handles errors and runs either of two methods - UX: Replace button disabled until both inputs are filled - Show log creation message on UI for correctness - APIs return log document as result - Converted raw sql to QB (cherry picked from commit cff9155) # Conflicts: # erpnext/manufacturing/doctype/bom_update_tool/bom_update_tool.py
(cherry picked from commit 8aff75f)
(cherry picked from commit 3e3af95)
(cherry picked from commit f3715ab) # Conflicts: # erpnext/manufacturing/doctype/bom_update_tool/bom_update_tool.py
- test creation of log and it's impact (cherry picked from commit 1d1e925)
(cherry picked from commit 7949567)
- Explain explicit commits and skip semgrep - Format client side translated string correctly (cherry picked from commit ebf0094)
- Renamed public function`update_new_bom` to `update_new_bom_in_bom_items` - Replaced `get_cached_doc` with `get_doc` - Removed click progress bar (drive through update log) - Removed `bom_obj.update_new_bom()`, was redundant. Did same job as `update_new_bom_in_bom_items` - Removed `update_new_bom()` in `bom.py`, unused. - Prettier query formatting - `update_type` annotated as non optional Literal - Removed redundant use of JobTimeoutException - Corrected type annotations in `create_bom_update_log()` (cherry picked from commit 620575a) # Conflicts: # erpnext/manufacturing/doctype/bom_update_tool/bom_update_tool.py
- Covers full validate function (cherry picked from commit a945484)
(cherry picked from commit 2fece52)
mergify
bot
requested review from
marination,
rohitwaghchaure and
ankush
as code owners
March 31, 2022 10:26
marination
force-pushed
the
mergify/bp/version-13-hotfix/pr-30146
branch
from
April 5, 2022 13:16
2f4073f
to
ec646a1
Compare
marination
approved these changes
Apr 5, 2022
Unrelated failures |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This is an automatic backport of pull request #30146 done by Mergify.
Cherry-pick of 4283a13 has failed:
Cherry-pick of cff9155 has failed:
Cherry-pick of f3715ab has failed:
Cherry-pick of 620575a has failed:
To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally
Mergify commands and options
More conditions and actions can be found in the documentation.
You can also trigger Mergify actions by commenting on this pull request:
@Mergifyio refresh
will re-evaluate the rules@Mergifyio rebase
will rebase this PR on its base branch@Mergifyio update
will merge the base branch into this PR@Mergifyio backport <destination>
will backport this PR on<destination>
branchAdditionally, on Mergify dashboard you can:
Finally, you can contact us on https://mergify.com