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

Add service setting to change annual limits for platform admins #1976

Merged
merged 13 commits into from
Oct 31, 2024

Conversation

whabanks
Copy link
Contributor

@whabanks whabanks commented Oct 22, 2024

Summary | Résumé

This PR adds capability for platform admins to set annual email and sms limits for a service. It also changes the SMS and Email annual limit displays so they are no longer hard coded but fetched from the DB.

Test instructions | Instructions pour tester la modification

All service-{id} keys need to be cleared when deployed to staging / prod

  1. If it is not yet merged, check out this API PR and run flask db upgrade
  2. Login as a platform admin
  3. Navigate to a service's settings
  4. In the platform admin section, modify both the email and SMS annual limit
  5. Note that the limits are reflected in the email and text message sections above

Copy link

Copy link
Member

@andrewleith andrewleith left a comment

Choose a reason for hiding this comment

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

LGTM in general, works as expected with the API PR.

Just the nagging issue of the formatting but that doesnt impact this functionally.

replace=reply_to_email_id,
)
)

if reply_to_email_address and request.endpoint == "main.service_confirm_delete_email_reply_to":
if not reply_to_email_address["is_default"]:
flash(_("Are you sure you want to delete this reply-to email address?"), "delete")
flash(
Copy link
Member

Choose a reason for hiding this comment

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

Still confused why formatting is constantly changing, as it creates a lot of noise. Is it possible our rules keep changing?

app/config.py Outdated Show resolved Hide resolved
app/config.py Outdated Show resolved Hide resolved
@whabanks whabanks merged commit 4f85158 into main Oct 31, 2024
11 checks passed
@whabanks whabanks deleted the task/platform-admin-annual-limit-settings branch October 31, 2024 14:54
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