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

fix: shift request cancellation failing #478

Merged
merged 1 commit into from
Apr 28, 2023

Conversation

ruchamahabal
Copy link
Member

@ruchamahabal ruchamahabal commented Apr 28, 2023

Problem: Shift Request cancellation failed because the framework code for cancelling linked documents first cancels the shift assignment. Then tries to cancel the shift request, which is now trying to cancel a cancelled shift assignment on_cancel hook

image

Fix: Attempt cancelling only submitted assignments. Cannot remove on_cancel handler because the framework cancellation is only triggered from client-side.

@ruchamahabal ruchamahabal force-pushed the shift-req-cancellation branch from a4ed031 to 9265605 Compare April 28, 2023 07:22
@codecov-commenter
Copy link

Codecov Report

Merging #478 (9265605) into develop (9ec2d10) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #478   +/-   ##
========================================
  Coverage    72.84%   72.84%           
========================================
  Files          190      190           
  Lines         9805     9805           
========================================
  Hits          7142     7142           
  Misses        2663     2663           
Impacted Files Coverage Δ
hrms/hr/doctype/shift_request/shift_request.py 94.36% <100.00%> (ø)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants