Closed rebeccacremona closed 1 year ago
Patch coverage: 82.35%
and project coverage change: -0.13%
:warning:
Comparison is base (
60f5600
) 68.75% compared to head (ab4a032
) 68.63%. Report is 5 commits behind head on develop.:exclamation: Current head ab4a032 differs from pull request most recent head d0eb433. Consider uploading reports for the commit d0eb433 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
See ENG-295.
We have decided to make it simpler for domains to request that new Perma Links of their site be made private. Instead of inspecting robots.txt, the page's
meta
tags, and the requests' headers, we will instead compare the domain of the captured URL to a list, and will add domains to the list (settings.PRIVATE_BY_POLICY_DOMAINS
) upon request, according to policy.This PR renames the "keys" of the
Link.private_reason
to be descriptive, rather than "new/old", and adds two new ones:domain
, for use with the new policy, andflagged
, for use when a user has reported that a Perma Link contains flagged content (which admins sometimes recorded as private due topolicy
). Themanage/stats
page is updated accordingly.The data migration is speedy locally with a prod-like database; I'm not worried about it.