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

Feature/#501 abort #517

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Feature/#501 abort #517

wants to merge 2 commits into from

Conversation

svenvandescheur
Copy link
Contributor

@svenvandescheur svenvandescheur commented Nov 25, 2024

Fixes #501

@codecov-commenter
Copy link

codecov-commenter commented Nov 25, 2024

Codecov Report

Attention: Patch coverage is 90.66667% with 7 lines in your changes missing coverage. Please review.

Project coverage is 79.72%. Comparing base (d9ad329) to head (1a32890).
Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
...uctionlist/detail/hooks/useSecondaryNavigation.tsx 88.57% 4 Missing ⚠️
frontend/src/lib/api/destructionLists.ts 0.00% 2 Missing ⚠️
...ructionlist/detail/DestructionListDetail.action.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #517      +/-   ##
==========================================
+ Coverage   75.32%   79.72%   +4.40%     
==========================================
  Files         198      196       -2     
  Lines        5531     5420     -111     
  Branches      547      550       +3     
==========================================
+ Hits         4166     4321     +155     
+ Misses       1365     1099     -266     

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


🚨 Try these New Features:

@action(detail=True, methods=["post"], name="abort-destruction")
def abort_destruction(self, request, *args, **kwargs):
@action(detail=True, methods=["post"], name="abort")
def abort(self, request, *args, **kwargs):
Copy link
Collaborator

Choose a reason for hiding this comment

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

The API schema on line 210 needs also updating

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • Update API schema

name="A test list",
author=record_manager,
status=ListStatus.ready_to_review,
planned_destruction_date=date(2024, 1, 8),
Copy link
Collaborator

Choose a reason for hiding this comment

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

The planned_destruction_date is usually only present on lists with status ready_to_delete (but i guess it is to check that it gets cleared all in one test).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

TBH: I've just renamed/altered the existing test, but now you mention it, it is useful in a test setting. We could add another test if you think thats's better?

Copy link
Collaborator

Choose a reason for hiding this comment

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

My bad 😅 I think we can leave it but maybe with a comment?

frontend/src/lib/auth/permissions.ts Show resolved Hide resolved
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