-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically tag bodies with few public requests
Automatically apply and remove a tag to bodies that have a low number of public requests, so that users can find them via a public search to help bootstrap basic transparency/site content, and admins can add a tag-based note to suggest generally useful first requests. The changelog suggests a one-shot script to mass-apply the tag to existing bodies that are missing an email. Fixes #7361
- Loading branch information
1 parent
60e5822
commit b12b788
Showing
10 changed files
with
135 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Depending on spec run ordering an authority may or may not meet the criteria | ||
# to have the tag auto-applied, and as such breaks the expectations (e.g. | ||
# sometimes the tag string will be "foo", sometimes "foo not_many_requests"). | ||
# Use this in an `around` block to disable the tagging for specs that match a | ||
# defined set of tags: | ||
# | ||
# around do |example| | ||
# disable_not_many_requests_auto_tagging { example.run } | ||
# end | ||
# | ||
def disable_not_many_requests_auto_tagging | ||
orig = PublicBody.not_many_public_requests_size | ||
PublicBody.not_many_public_requests_size = 0 | ||
yield | ||
PublicBody.not_many_public_requests_size = orig | ||
end |
Empty file.