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

Adjustments to Advent of Code #211

Merged
merged 6 commits into from
Nov 29, 2024
Merged

Adjustments to Advent of Code #211

merged 6 commits into from
Nov 29, 2024

Conversation

49Indium
Copy link
Member

@49Indium 49Indium commented Nov 20, 2024

This consists of two parts (that could have been separate PRs but are related).

Firstly, better error are now given session token expires. If the session token expires, the leaderboard page redirects to the advent home page (with a successful 200 response code) so the bot fails to read this as python. If we block redirects, we can detect this earlier and provide a better error message.

Secondly, AOC registrations did not persist between years. By removing the year in the registrations table, registrations will persist between years. Not that this will also require access to the database to remove this column. PLEASE DON'T MERGE until this is done. Once reviewed, I am happy to do this.

@49Indium 49Indium changed the title Adjusted Advent to give better error when session token expires Adjustments to Advent of Code Nov 26, 2024
@49Indium 49Indium added the infra-only due to access requirements (database stuff, usually), only infra can complete this label Nov 26, 2024
TheOnlyMrCat
TheOnlyMrCat previously approved these changes Nov 26, 2024
Copy link
Member

@TheOnlyMrCat TheOnlyMrCat left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Copy link
Member

@andrewj-brown andrewj-brown left a comment

Choose a reason for hiding this comment

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

ballin

@andrewj-brown andrewj-brown merged commit 8b82091 into main Nov 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra-only due to access requirements (database stuff, usually), only infra can complete this
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants