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

[#1971] Double-check if our current status is an eindstatus due to eS… #923

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

alextreme
Copy link
Member

…uite having multiple eindstatusses

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1dda63d) 92.96% compared to head (2bfc809) 92.96%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #923   +/-   ##
========================================
  Coverage    92.96%   92.96%           
========================================
  Files          820      820           
  Lines        28400    28402    +2     
========================================
+ Hits         26402    26404    +2     
  Misses        1998     1998           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -172,6 +172,15 @@ def get_context_data(self, **kwargs):
# The end status data is not passed if the end status has been reached,
# because in that case the end status data is already included in `statuses`
end_statustype = next((s for s in statustypen if s.is_eindstatus), None)
Copy link
Contributor

@stevenbal stevenbal Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alextreme Wouldn't this line become irrelevant after the changes you made? If I understand it correctly, the conditional below would always be triggered and override end_statustype to be the statustype of the last status (if is_eindstatus is True) right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I indeed went for the most minimal change for my hotfix for v1.12. I suspect you're correct and have updated this branch to remove this line and avoid future confusion

Copy link
Contributor

@stevenbal stevenbal Jan 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm okay I may have been wrong, I glanced over that fact that in this line the statustypen are used directly, so that way we will still get the end_statustype even if this status hasn't been reached yet, so I think we still need this line 😅

I removed the change.

@stevenbal stevenbal self-requested a review January 4, 2024 09:34
@stevenbal stevenbal force-pushed the issue/1971-check-current-status-for-eindstatus branch from fd80cea to 2bfc809 Compare January 4, 2024 10:26
@alextreme alextreme merged commit 6df0bf0 into develop Jan 4, 2024
27 checks passed
@alextreme alextreme deleted the issue/1971-check-current-status-for-eindstatus branch January 4, 2024 11:04
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 this pull request may close these issues.

3 participants