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

TP2000-1444 Require a current workbasket on workbasket checks and violations views #1262

Conversation

dalecannon
Copy link
Contributor

@dalecannon dalecannon commented Jul 11, 2024

TP2000-1444 Require a current workbasket on workbasket checks and violations views

Why

Uncaught exceptions are raised and a generic server error page is displayed when attempting to access the workbasket checks view (/workbaskets/current/checks/) or workbasket violations view (/workbaskets/current/violations/) without a current workbasket.

What

  • Uses require_current_workbasket decorator on both WorkBasketsChecksView and WorkBasketsViolations, redirecting users without a current workbasket to the NoActiveWorkbasket view, where users are invited to create or select a new workbasket (like other views that require a current workbasket do)

@dalecannon dalecannon requested a review from a team as a code owner July 11, 2024 15:17
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.11%. Comparing base (76b3df5) to head (d1a7341).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1262   +/-   ##
=======================================
  Coverage   93.11%   93.11%           
=======================================
  Files         620      620           
  Lines       47329    47352   +23     
  Branches     3343     3349    +6     
=======================================
+ Hits        44070    44093   +23     
  Misses       2619     2619           
  Partials      640      640           

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

@dalecannon dalecannon changed the title TP2000-1444 Fix AttributeError on workbasket checks view TP2000-1444 Require a current workbasket on workbasket checks and violations views Jul 11, 2024
@dalecannon dalecannon merged commit 497b777 into master Jul 11, 2024
8 checks passed
@dalecannon dalecannon deleted the TP2000-1444--workbasket-checks-view-require-current-workbasket branch July 11, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants