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

Fix bug 790784: Port Websites Privacy Policy #933

Merged
merged 1 commit into from
Aug 6, 2013

Conversation

openjck
Copy link
Contributor

@openjck openjck commented May 31, 2013

No description provided.

@openjck
Copy link
Contributor Author

openjck commented May 31, 2013

Probably easiest to review each of commit individually, as 389ef5f reformats everything. A couple of questions from my end.

  • Do we agree that the newsletter form and "In the news" section should be removed?
  • The header looks a little weird on small screens because of trailing pipe. Thoughts? Suggestions?

@openjck
Copy link
Contributor Author

openjck commented May 31, 2013

One more: Once this lands, I need to update the following redirects. (We already have redirects set up for these pages in mozilla.org/.htaccess, but they currently point elsewhere).

I assumed I would need to update these in mozilla.org/.htaccess, but I guess I could write them into global.conf instead. Would that be better? I guess it depends on whether we plan to keep mozilla.org/.htaccess around long term.

@openjck
Copy link
Contributor Author

openjck commented Jun 6, 2013

@sgarrity mentioned that all new redirects should be written into global.conf. These redirects will do some of the same work covered in mozilla.org/.htaccess redirects, so I might want to delete those as part of this work.

@@ -14,227 +14,399 @@
<div id="main-content">
<div class="row">
Copy link
Contributor

Choose a reason for hiding this comment

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

Now that this page is without a sidebar, the <div class="row"> and class="span7" on the <article ...> tag are no longer necessary. The article tag should also get a .span-all(); mixin to provide the left/right margin to make sure the content lines up to the grid.

Copy link
Contributor

Choose a reason for hiding this comment

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

<main> ?

@sgarrity
Copy link
Contributor

sgarrity commented Jun 6, 2013

Do we agree that the newsletter form and "In the news" section should be removed?
I would agree. Without a sidebar, though, I wondered if the main article should get a .span(8) or .span(9); to keep the line lengths a bit more comfortable at the full desktop size. These would have to be turned off (with a .span-all();) in the smaller media-query sizes.

The header looks a little weird on small screens because of trailing pipe. Thoughts? Suggestions?
Probably fine as it is. Could put the 'updated' line and the PDF link on separate lines if you prefer though.

@openjck
Copy link
Contributor Author

openjck commented Jun 18, 2013

@sgarrity: Thanks for the feedback. Updated the PR with that.

@openjck
Copy link
Contributor Author

openjck commented Jun 20, 2013

Rebased!

@sgarrity
Copy link
Contributor

Design/layout changes look fine. Did you determine if you'll move the redirects into global.conf?

@openjck
Copy link
Contributor Author

openjck commented Jun 21, 2013

Yep. I was told that new redirects should be written into global.conf, so I was sure to do that in this commit. The redirects added here should cover all Website Privacy Policy URLs being used right now (see the first comment of bug 878129).

The only question is how these redirects will play with the ones already in mozilla.org/.htaccess (which redirect the same from addresses to different to addresses), but in my local testing these redirects in global.conf took precedence.

@openjck
Copy link
Contributor Author

openjck commented Jun 21, 2013

Actually, I may have missed one redirect. Checking...

@openjck
Copy link
Contributor Author

openjck commented Jun 21, 2013

I take that back. We need four redirects (three from the pages outlined in bug 878129, and one from the official page) and all of those are covered in my redirects -- it's just that the first RewriteRule catches two cases.

However, there might be another issue here. My /foundation/privacy-policy.html redirect does not appear to work any more, possibly because of the other foundation redirects that were put into place recently. Also, trying to visit /foundation/privacy-policy.html on prod now redirects me to a 404 at /en-GB/foundation/privacy-policy.html. Related?

@openjck
Copy link
Contributor Author

openjck commented Jun 27, 2013

Fixed the issue I mentioned in my last comment. This also obsoletes bug 887084, which I opened after writing my last comment.

The only thing worth mentioning at this point is that /foundation/privacy-policy.html is currently redirecting to /en-GB/foundation/privacy-policy.html on production (for reasons I still don't understand). I could redirect that to the new Privacy Policy as well if we think it would be worth it.

@sgarrity
Copy link
Contributor

sgarrity commented Jul 4, 2013

The layout/styles/content are r+ from me, but I'd defer to a wiser soul to review the redirects.

@openjck
Copy link
Contributor Author

openjck commented Jul 12, 2013

I think @pmclanahan said he could take a look at that.

# NB: The /foundation/privacy-policy.html redirect below must appear before the
# foundation redirects added with bug 724633. Otherwise, the address will first
# be prefixed with a locale, and this redirect will not work.
RewriteRule ^/(\w{2,3}(?:-\w{2}(?:-mac)?)?/)?privacy-policy(\.html)?$ /b/$1privacy/policies/websites/ [L,R=301]
Copy link
Contributor

Choose a reason for hiding this comment

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

These are all confusing. They're redirects, but they're using the /b/ urls. The /b/ is a private url prefix only intended to be used by an apache [PT] rewrite rule. Is there a [PT] rule for this page? If so I think all that needs doing is to remove the /b from these.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see one. So my guess is that you need to remove those /b prefixes for these rules, and also add:

RewriteRule ^/(\w{2,3}(?:-\w{2})?/)?privacy/policies/websites(/?)$ /b/$1privacy/policies/websites$2 [PT]

You also don't need the (?:-mac)? bit anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the feedback. My understanding was that /b/ needed to be used for all Bedrock redirect targets. Is this not correct?

Copy link
Contributor

Choose a reason for hiding this comment

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

Posted this reply in IRC already, but for the record:
You need to redirect /path to /b/path for bedrock to handle the request, but that has to be a separate pass-through redirect. If you need to redirect a different URL to that path, it has to be a separate redirect (one to rewrite the old->new URL, and another to force bedrock to serve the new url (/b).

Copy link
Contributor

Choose a reason for hiding this comment

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

That is indeed not correct. If you look at all the rules in this file, you'll see that only the ones that end with [PT] use /b/, as the [PT] means "pass through". It tells apache to proxy matching requests to that url and serve the result. It's how we have bedrock installed. When it's a redirect however (one with [L,R=301]) it doesn't (or shouldn't) use the /b/ because we never want the user to ever see the /b/ urls.

@openjck
Copy link
Contributor Author

openjck commented Jul 19, 2013

Makes sense. Thanks for explaining that to me.

Updated the commit to fix the issue.

Members section, above, it discloses that information only to those of its employees, contractors, service providers, and subsidiaries
and related organizations that need to know that information in order to process it on Mozilla's behalf and that have agreed not to
disclose it to others. Mozilla endeavors to maintain an up-to-date list of its subsidiaries and related organizations at
<a href="http://www.mozilla.org/about/organizations.html">http://www.mozilla.org/about/organizations.html</a>, however we don’t guarantee this list to be complete. As of the date of this update,
Copy link
Contributor

Choose a reason for hiding this comment

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

This organizations URL is on bedrock now and can use url()

@sgarrity
Copy link
Contributor

We talked over this one on the weekly PR review call. pmac says the redirects look good.

Any mozilla links should be HTTPS.

After that and a rebase, we should be good to go.

What about l10n? We don't need to block on it right now.

@openjck
Copy link
Contributor Author

openjck commented Aug 2, 2013

Rebased and updated the links. Craig is updating the corresponding PDF right now -- I will push my updated PR once that is done.

As for l10n, I could wrap the content in l10n blocks, but I thought I should not given that this is policy. At least, that is the precedent I saw with other policies hosted on mozilla.org.

@openjck
Copy link
Contributor Author

openjck commented Aug 2, 2013

PDF is up, so we should be all set.

@jpetto
Copy link
Contributor

jpetto commented Aug 6, 2013

Looking good! 🍻

jpetto added a commit that referenced this pull request Aug 6, 2013
Fix bug 790784: Port Websites Privacy Policy
@jpetto jpetto merged commit 0f908d9 into mozilla:master Aug 6, 2013
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.

5 participants