Skip to content

Commit

Permalink
Remove bucket limit broadcast message (#1414)
Browse files Browse the repository at this point in the history
Left broadcast message logic in place for now, but
update to allow it to handle None values
  • Loading branch information
michaeljcollinsuk authored Dec 17, 2024
1 parent 26a0847 commit 336e1df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion controlpanel/oidc.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ class OIDCLoginRequiredMixin(LoginRequiredMixin):

def get_context_data(self, *args, **kwargs):
context = super().get_context_data(*args, **kwargs)
context["broadcast_messages"] = settings.BROADCAST_MESSAGE.split("|")
context["broadcast_messages"] = (
settings.BROADCAST_MESSAGE.split("|") if settings.BROADCAST_MESSAGE else []
)
context["settings"] = settings
return context

Expand Down
3 changes: 1 addition & 2 deletions settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ CUSTOM_AUTH_CONNECTIONS: "auth0_nomis"
AUTH0_NOMIS_GATEWAY_URL: "https://testing.com"


BROADCAST_MESSAGE: >
AWS have increased the S3 bucket limit from one thousand to one million. | While this means that the restriction on creating new buckets has been lifted, we still recommend that you use buckets efficiently.
BROADCAST_MESSAGE:

GITHUB_VERSION: "2022-11-28"

Expand Down

0 comments on commit 336e1df

Please sign in to comment.