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

Rework the Account model #1999

Draft
wants to merge 26 commits into
base: next
Choose a base branch
from

Conversation

stevenruidigao
Copy link
Contributor

@stevenruidigao stevenruidigao commented Jan 10, 2025

Changes

Please describe the changes made in the pull request here.

I don't think you want to merge this (since I believe it stil is kind of broken), but it contains some changes to make working with accounts significantly easier (and enables automatic season resets).

I think it also fixes some errors I found in the code while rewriting the accounts model, but those might be hard to find. It also contains the fixes in #1998 (I'm sorry, I know this makes it hard for this PR to be useful).

Screenshots

These are effectively required for non-trivial changes, but appreciated for all.

So ideally the site looks exactly the same, but I almost guarantee you there are some bugs in this PR.


Below you'll find a checklist. For each item on the list, check one option (if completed) and delete the other as appropriate. (Delete this line too)

Tested Locally

  • This PR has been tested locally, and ensured to not cause any breaking changes
  • This PR makes a trivial change

Tests

  • Automated tests have been added
  • This PR does not require tests

Changelog

  • Changelog Section below has been updated with Changelog entry
  • This PR does not make a user-facing change

Changelog Entry (delete this section if this PR does not need a changelog entry)

Check one, delete the other:

  • New Feature
  • Bug Fix

Check one, delete the other:

  • Major Change
  • Minor Change

Changelog Headline: Revamp accounts model. Make seasons automatically reset.

Changelog Details: Many variables in the accounts model have been renamed. Season stats should now automatically reset when the server restarts. Other things to do with seasons might not automatically reset / work when the season resets.

@cozuya
Copy link
Owner

cozuya commented Jan 16, 2025

STEVE

anything I can do here?

@stevenruidigao
Copy link
Contributor Author

stevenruidigao commented Jan 16, 2025

STEVE

anything I can do here?

Right now, probably not a lot, but thanks for offering!

I think that this is probably still not ready and I'm not sure if this is something we should even do. However, I do think that we should consider changing the account model since the way seasons are recorded seems kind of janky right now.

I'd be interested to know what your thoughts are, though!

PS: I've also been working on a version with updated dependencies and rewriting the server in Typescript and I've found having Typescript makes the code a lot easier to manage.

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