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

purge: ptokens #9485

Merged
merged 5 commits into from
Sep 28, 2021
Merged

purge: ptokens #9485

merged 5 commits into from
Sep 28, 2021

Conversation

thelostone-mc
Copy link
Member

@thelostone-mc thelostone-mc commented Sep 15, 2021

Description

Removes personal tokens

Refers/Fixes

GITC-409

Flows Tested
  • bounty flow
  • hackathon flow
  • grants flow
  • explorer
  • profile

Copy link
Contributor

@gdixon gdixon left a comment

Choose a reason for hiding this comment

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

LGTM, but let's make sure the tests are green before merging -- it looks like we need to sort out the fixtures/create a migration to drop the !null constraint on profile->tokens

Comment on lines +16 to +25
# migrations.AddField(
# model_name='activity',
# name='ptoken',
# field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='ptoken_activities', to='ptokens.PersonalToken'),
# ),
# migrations.AddField(
# model_name='activity',
# name='redemption',
# field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='ptokens.RedemptionToken'),
# ),
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason to keep this around? I'd prefer to delete unused code over commenting it out and leaving it in. We can always pull this back from git if it's needed.

Copy link
Member Author

Choose a reason for hiding this comment

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

So this is only cause it's a migration which are auto generated !
Ideally we wouldn't want to change this but when we remove a django it causes travis to complain as it runs through the boot

@thelostone-mc thelostone-mc merged commit 5826266 into gitcoinco:master Sep 28, 2021
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.

3 participants