Add functions for generating URLs free of personally identifying info.

Review Request #9902 — Created May 1, 2018 and submitted

Information

Djblets
release-1.0.x
a9b2c81...

Reviewers

This introduces a new djblets.privacy.pii module containing a
build_pii_safe_page_url() method that takes the current request and
returns a URL without personally identifying information. This is
intended for use in situations where a non-strict representation of a
URL needs to be tracked or logged and you don't want to include any PII
in it.

An accompanying template tag, {% pii_safe_page_url %}, was also added
for easily injecting into templates.

A guide has also been added to show how this functionality is used.

Unit tests pass.

Made use of this in some code I'm developing, testing out the redaction
for several URLs and query strings.

Built the docs and checked for errors and broken links.

david
  1. Nice!

  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-1.0.x (8f5f062)
Loading...