Skip to content

[fix bug 1392796] Remove old Fx desktop & private browsing pages.#5070

Merged
alexgibson merged 1 commit into
mozilla:masterfrom
jpetto:bug-1392796-remove-old-fx-desktop-private-browsing-pages
Aug 30, 2017
Merged

[fix bug 1392796] Remove old Fx desktop & private browsing pages.#5070
alexgibson merged 1 commit into
mozilla:masterfrom
jpetto:bug-1392796-remove-old-fx-desktop-private-browsing-pages

Conversation

@jpetto

@jpetto jpetto commented Aug 28, 2017

Copy link
Copy Markdown
Contributor

Description

Removes some pages deprecated by opening up new Fx hub to all locales:

  • /firefox/desktop/fast/
  • /firefox/desktop/trust/
  • /firefox/desktop/tips/
  • /firefox/desktop/customize/
  • /firefox/private-browsing/

DO NOT MERGE while I verify the redirect for /firefox/desktop/customize/. Should be good for review though.

I'm going to say the redirect for /firefox/desktop/customize/ is validated by the filing of bug 1393881.

Issue / Bugzilla link

https://bugzilla.mozilla.org/show_bug.cgi?id=1392796

Testing

Ensure no regressions and that all associated files have been removed. Make sure appropriate redirects are in place.

Integration tests passing: https://ci.us-west.moz.works/blue/organizations/jenkins/bedrock_multibranch_pipeline/detail/run-integration-tests/51/pipeline/190/

@alexgibson alexgibson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good on a first pass. A few other spots that might need updating:

  • The family nav functional tests still reference some pages being removed. It may be a good idea to run this branch against run-integration-tests.
  • media/js/firefox/private-browsing.js can be removed.
  • tests/functional/firefox/desktop/__init__.py can be removed.

I'll take another pass for good measure before merging.

Comment thread bedrock/firefox/redirects.py Outdated
redirect(r'^firefox/customize/?$', 'firefox.desktop.customize'),
redirect(r'^firefox/(?:performance|happy|speed|memory)/?$', 'firefox.desktop.fast'),
redirect(r'^firefox/security/?$', 'firefox.desktop.trust'),
# TODO: verify URL below

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Noting TODO

Comment thread bedrock/firefox/redirects.py Outdated
redirect(r'^firefox/desktop/fast/?', 'firefox.features.fast'),
redirect(r'^firefox/desktop/trust/?', 'firefox.features.independent'),
redirect(r'^firefox/desktop/tips/?', 'firefox.features.index'),
# TODO: verify link below

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Noting TODO

Comment thread tests/redirects/map_globalconf.py Outdated
url_test('/firefox/customize/', '/firefox/desktop/customize/'),
url_test('/firefox/{performance,happy,speed,memory}/', '/firefox/desktop/fast/'),
url_test('/firefox/security/', '/firefox/desktop/trust/'),
# TODO: verify URL below

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Noting TODO

Comment thread tests/redirects/map_globalconf.py Outdated
# bug 1392796
url_test('/firefox/desktop/trust/', '/firefox/features/independent/'),
url_test('/firefox/desktop/tips/', '/firefox/features/'),
# TODO: verify URL below

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Noting TODO

Comment thread bedrock/firefox/urls.py
url(r'^firefox/ios/testflight', views.ios_testflight, name='firefox.ios.testflight'),
page('firefox/mobile-download', 'firefox/mobile-download.html'),
page('firefox/mobile-download/desktop', 'firefox/mobile-download-desktop.html'),
page('firefox/private-browsing', 'firefox/private-browsing.html', alt_canonical_paths={

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Searching through the repo I can still find several references to {{ url('firefox.private-browsing') }} which will need updating.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Got 'em.

@@ -1,87 +0,0 @@
# This Source Code Form is subject to the terms of the Mozilla Public

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I can still see references to this file in tests/functional/newsletter/test_newsletter_embed.py

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is it weird that tests passed even with this outdated reference? Anyway, nice spot - will remove.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Where did tests pass?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Apparently I forgot functional tests do not run on PRs.

Comment thread bedrock/firefox/urls.py
}),
page('firefox/desktop/customize', 'firefox/desktop/customize.html'),
page('firefox/desktop/tips', 'firefox/desktop/tips.html'),
page('firefox/desktop/trust', 'firefox/desktop/trust.html'),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There's still a reference to url('firefox.desktop.trust') in firefox/dnt.html

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Bah, nice spot. 🕵️

{% block body_class %}firefox-desktop{% endblock %}

{% block extrahead %}
<script src="{{ static('js/libs/modernizr.custom.cssanimations.js') }}"></script>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can this JS file be removed? Seems like we can just use @supports these days?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah, good catch. Looks like there's another orphaned Modernizr file in there, too.

@jpetto
jpetto force-pushed the bug-1392796-remove-old-fx-desktop-private-browsing-pages branch from df58fe7 to fc1bf72 Compare August 29, 2017 19:22

@alexgibson alexgibson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Spotted a couple of redirects that need updating still, but otherwise this is looking pretty solid. Assuming integration tests are all passing, this is an r+wc from me. Nice work!

redirect(r'^firefox/desktop/trust/?', 'firefox.features.independent'),
redirect(r'^firefox/desktop/tips/?', 'firefox.features.index'),
redirect(r'^firefox/desktop/customize/?', 'https://support.mozilla.org/kb/customize-firefox-controls-buttons-and-toolbars'),
redirect(r'^firefox/private-browsing/?', 'firefox.features.private-browsing'),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we need to remove the existing redirects for /en-US/firefox/private-browsing/ above on line 525, and /en-US/firefox/desktop/fast/ on line 529 above now that we have these newer all-locale redirects? We should probably update the redirect tests to reflect these changes too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nice spot. I think we're fine just removing the en-US only redirects and their tests, as the new redirects/tests cover all locales.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are we missing a redirect test for /firefox/fast/?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Are we missing a redirect test for /firefox/fast/?

Was that ever a live URL? 404's on prod currently. There is a redirect & test for /firefox/desktop/fast/...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry I meant /firefox/features/fast/ I can only see a test for the en-US redirect

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have that test locally - waiting for integration tests to finish/pass before updating the PR. 😉

@jpetto

jpetto commented Aug 30, 2017

Copy link
Copy Markdown
Contributor Author

@jpetto
jpetto force-pushed the bug-1392796-remove-old-fx-desktop-private-browsing-pages branch from 0f18c3c to 3533c79 Compare August 30, 2017 15:22
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