Addons-server: Drop `dev_agreement` from Addon model

Created on 25 Jun 2018  路  9Comments  路  Source: mozilla/addons-server

Addon.dev_agreement is unused. The actual property checked is read_dev_agreement, on UserProfile instead. We should delete dev_agreement from Addon.

Afaik it's only referenced in addons/admin.py and some fixtures.

code quality assigned good first bug p5 verified fixed

All 9 comments

Hi @eviljeff, I am interested in fixing this issue. Would simply removing dev_agreement from this addons/admin.py file suffice or would it need to be replaced by the read_dev_agreement attribute in the Flags list?

https://github.com/mozilla/addons-server/blob/01f4c0ccb90d3df7b7c55ed6742f93d9e7abbab8/src/olympia/addons/admin.py#L47-L51

No, we don't need to replace the reference, just remove all mentions.

Ok so I will be removing it from all the json files as well as python files that contain it in the Addons model if thats correct?

yes

I'm sorry for the many commits instead of one. Not sure how to do combine commits so I made them separate for each file change.

filed #8649 for the sql migration.

@eviljeff : Please add some STRs for this bug or mark it as "qa: not needed"

QA: if you can submission a new addon without a server error, it's okay.

No server errors encountered during submissions. Marking bug as verified.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

caitmuenster picture caitmuenster  路  5Comments

diox picture diox  路  5Comments

eviljeff picture eviljeff  路  3Comments

jvillalobos picture jvillalobos  路  4Comments

jvillalobos picture jvillalobos  路  7Comments