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-1476 Edit capability for blocking periods #1313

Merged
merged 8 commits into from
Oct 30, 2024

Conversation

mattjamc
Copy link
Collaborator

@mattjamc mattjamc commented Oct 25, 2024

TP2000-1476 Edit capability for blocking periods

Why

User’s can create a blocking periods for quotas, but they can’t edit existing periods. We should implement that journey using the create form as a template.

What

This PR:

  • adds the ability to edit quota blocking periods including update, edit-update and edit-create journeys
  • adds the ability to delete quota blocking periods

List view

image

Edit

image

Confirm update

image

Delete

image

Confirm delete

image

@mattjamc mattjamc marked this pull request as ready for review October 28, 2024 12:30
@mattjamc mattjamc requested a review from a team as a code owner October 28, 2024 12:30
@@ -1242,6 +1248,77 @@ def get_queryset(self):
return QuotaSuspension.objects.filter(pk=self.deleted_suspension)


class QuotaBlockingUpdateMixin(TrackedModelDetailMixin):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not essential, but if my refactoring of the quotas space PR is released first, you could move these into their own file with the other QuotaBlocking model views.

Copy link
Collaborator

@CPrich905 CPrich905 left a comment

Choose a reason for hiding this comment

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

One comment which is entirely dependent on whether this goes out before my PR or not, otherwise LGTM :)

@mattjamc mattjamc merged commit c5eaaa0 into master Oct 30, 2024
8 checks passed
@mattjamc mattjamc deleted the TP2000-1476-Edit-capability-for-blocking-periods branch October 30, 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
Development

Successfully merging this pull request may close these issues.

2 participants