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

Admin Banner: accept valid 404 use case #4276

Merged
merged 2 commits into from
Oct 7, 2022
Merged

Admin Banner: accept valid 404 use case #4276

merged 2 commits into from
Oct 7, 2022

Conversation

gmrabian
Copy link
Contributor

@gmrabian gmrabian commented Oct 7, 2022

Description

the admin banner page was displaying an error message when there was no existing banner to be fetched. Since 404 is a valid case for no banner existing, we will ignore it for now.

Future considerations: change the banner api to allow multiple banners and fetch multiple, displaying those relevant to the current date

How to test

login as admin

go to /admin

see if banner goes away for 404 and still shows up for 500s

Code author checklist

  • I have performed a self-review of my code
  • I have added thorough tests
  • I have added analytics, if necessary
  • I have updated the documentation, if necessary

Reviewer checklist (two different people)

  • I have done the deep review and verified the items in the above checklist are g2g
  • I have done the lgtm review

Copy link
Contributor

@braxex braxex left a comment

Choose a reason for hiding this comment

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

Works well locally. Thanks for doing this.

@gmrabian gmrabian merged commit 34a414c into main Oct 7, 2022
@gmrabian gmrabian deleted the fix-banner-error branch October 7, 2022 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants