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

Update affiliate handling #127

Open
bitboxer opened this issue Apr 21, 2021 · 0 comments
Open

Update affiliate handling #127

bitboxer opened this issue Apr 21, 2021 · 0 comments

Comments

@bitboxer
Copy link

bitboxer commented Apr 21, 2021

In #99 we added the affiliate logo to the json we expose. Currently the affilate code is a string in the owner database table. We should change it to an real id and reference the affilate datamodel instead.

For this, we need to:

  • Add the affiliate_id column to the owner
  • In the migration search for the affiliate_code and add assign the right affiliate
  • Migrate the production database
  • Check the data for affiliate_codes that have no affiliate_id and fix them manually
  • Rewrite all places that use the affiliate_code and replace them with the correct new behavior
  • Deploy
  • 🥳
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

No branches or pull requests

1 participant