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

Stop setting _latest_version field, remove it from Addon model #4014

Merged
merged 1 commit into from
Nov 22, 2016

Conversation

diox
Copy link
Member

@diox diox commented Nov 16, 2016

Part of mozilla/addons#3621

The column is kept for now because the migration is costly, but since it's NULLable it should not be a problem. Deleting the column is a follow-up task in the same issue.

Part of #3751

The column is kept for now because the migration is costly, but
since it's NULLable it should not be a problem. Deleting the
column is a follow-up task in the same issue.
@diox diox force-pushed the stop-setting-latest-version branch from 9f5c506 to e7c532a Compare November 16, 2016 14:40
Copy link
Contributor

@EnTeQuAk EnTeQuAk left a comment

Choose a reason for hiding this comment

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

r+wc

@@ -1820,7 +1820,7 @@ def test_current_version_is_listed_only(self):

def test_firefox_versions(self):
self.setup_new_version()
assert self.addon.update_version()
self.addon.update_version()
Copy link
Contributor

Choose a reason for hiding this comment

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

Why remove that check?

Copy link
Member Author

Choose a reason for hiding this comment

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

With latest_version no longer set by update_version(), that assertion (which wasn't very useful in that test) will fail.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, I was just reading the docs and they still mention that the method returns True

@EnTeQuAk EnTeQuAk self-assigned this Nov 17, 2016
@diox diox merged commit 4ba6ae4 into mozilla:master Nov 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants