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

Remove FF for updating annual limits #2014

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions app/notify_client/service_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from flask import current_app
from flask_login import current_user
from notifications_utils.decorators import requires_feature

from app.extensions import redis_client
from app.notify_client import NotifyAdminAPIClient, _attach_current_user, cache
Expand Down Expand Up @@ -168,15 +167,13 @@ def update_sms_message_limit(self, service_id, sms_daily_limit):
sms_daily_limit=sms_daily_limit,
)

@requires_feature("FF_ANNUAL_LIMIT") # TODO: FF_ANNUAL_LIMIT removal
@cache.delete("service-{service_id}")
def update_sms_annual_limit(self, service_id, sms_annual_limit):
return self.update_service(
service_id,
sms_annual_limit=sms_annual_limit,
)

@requires_feature("FF_ANNUAL_LIMIT") # TODO: FF_ANNUAL_LIMIT removal
@cache.delete("service-{service_id}")
def update_email_annual_limit(self, service_id, email_annual_limit):
return self.update_service(
Expand Down
Loading