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
Fixes #5379: Remove footer field from theme submission form #7718
Conversation
8afd907
to
fb9b215
Compare
Fixes mozilla/addons#4334 @eviljeff Can you please have a look at this? |
Hey @EnTeQuAk ! Any updates here? :) |
Sorry, I missed the notifications, I'll have a look shortly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one minor nitpick and a follow-up but otherwise this looks good. Thanks a lot for your work!
I'll merge this once you fixed the comments.
Can you also add a screenshot verifying that the footer isn't being queried in the form anymore? That'll help show QA where they have to verify the issue.
"""Save theme image and calculates checksum after theme save.""" | ||
dst_root = os.path.join(user_media_path('addons'), str(addon.id)) | ||
header = os.path.join(settings.TMP_PATH, 'persona_header', header) | ||
header_dst = os.path.join(dst_root, 'header.png') | ||
if footer: | ||
footer = os.path.join(settings.TMP_PATH, 'persona_footer', footer) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this lands we should remove all files in that folder too (nothing you can do though)
@@ -672,11 +648,12 @@ def test_reupload_legacy_header_only(self, make_checksum_mock): | |||
- On approving, it would see 'footer.png' !== 'leg.png' | |||
- It run move_stored_file('footer.png', 'leg.png'). | |||
- But footer.png does not exist. BAM BUG. | |||
|
|||
Footer has been removed in issue # 5379 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a link to the issue if possible.
@@ -1148,7 +1148,6 @@ def get_queryset(self): | |||
class RereviewQueueTheme(ModelBase): | |||
theme = models.ForeignKey(Persona) | |||
header = models.CharField(max_length=72, blank=True, default='') | |||
footer = models.CharField(max_length=72, blank=True, default='') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a migration in src/olympia/migrations/
that removes this field from the database. This should not be done in this PR though but as a follow-up. Can you file an issue about that?
@EnTeQuAk I'm done with that nitpick. Also, I've created this issue: mozilla/addons#5371 |
settings.py
Outdated
@@ -80,7 +80,7 @@ | |||
SERVICES_DOMAIN = urlparse(SITE_URL).netloc | |||
SERVICES_URL = SITE_URL | |||
|
|||
ALLOWED_HOSTS = ALLOWED_HOSTS + [SERVICES_DOMAIN] | |||
ALLOWED_HOSTS = ALLOWED_HOSTS + [SERVICES_DOMAIN] + ['localhost'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you submitted that accidentally, mind backing that change out?
docs/settings/local_settings.dev.py
Outdated
@@ -1,3 +1,3 @@ | |||
from settings import * # noqa | |||
|
|||
INTERNAL_IPS = ('127.0.0.1',) | |||
INTERNAL_IPS = ('127.0.0.1', 'localhost') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you submitted that accidentally, mind backing that change out?
@@ -672,11 +648,13 @@ def test_reupload_legacy_header_only(self, make_checksum_mock): | |||
- On approving, it would see 'footer.png' !== 'leg.png' | |||
- It run move_stored_file('footer.png', 'leg.png'). | |||
- But footer.png does not exist. BAM BUG. | |||
|
|||
Footer has been removed in issue Issue #5379 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicate "Issue"
@EnTeQuAk Oops! Sorry I accidentally added it. Fixed all those things. |
Fixes mozilla/addons#4334
Removed footer field from Theme submission form