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 several registration fields that are not required anymore #494

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

glbert-does
Copy link
Member

@glbert-does glbert-does commented Mar 13, 2023

when ready, this will close #488

  • rating (is fetched from the site via the api)
  • peak rating (could be fetched from the site and maybe still is; but this has not been used in ages anyway)
  • previous season alt (we know who was an alt last season – i am not completely sure everything works correctly here though)
  • already in slack group (we know that, it's players who are linked)
  • slack_username (as far as i know, this hasn't been used in years)

i removed "expected rating" at the same time. this hasn't been used in ages, and cannot even be used with the current team gen algorithm. frankly, i am not certain it ever made sense to use it.

@glbert-does glbert-does marked this pull request as ready for review March 22, 2023 17:25
Copy link
Collaborator

@lakinwecker lakinwecker left a comment

Choose a reason for hiding this comment

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

I haven't finished a full review, but I thought I would send my first comments anyways. I'll want to do a deeper review and test this a bit, which don't have time for today. But first let's deal with changing the old migrations. What was the intent for those?

@@ -20,7 +20,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='registration',
name='already_in_slack_group',
field=models.BooleanField(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Altering old migrations has no effect on the live database, what was the intent with this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

the intent was simply to make the new migrations revertible. as far as i can tell, that's the only thing it does, and i didn't see a downside to it. i don't mind removing the changes to the old migrations from the pull request.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I am pretty sure there are ways to make the new migrations invertible that don't include modifying old migrations. The problem with modifying old migrations is that our live database will not be in sync with this change, which means that new migrations may assume they can do things that they can't and it will succeed in development, but not on prod. Let's remove the changes to old migrations and if you want the new migrations to be revertible, we can work through that.

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.

shorten registration form
2 participants