1
0
Fork 0
mirror of https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot synced 2024-11-23 20:42:38 +01:00

Update whitelist link (#59)

This commit is contained in:
Meno25 2023-03-25 13:52:27 +02:00 committed by GitHub
parent 1236808aa4
commit 01301705c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -140,7 +140,7 @@ class PostCreationHandler(object):
def _check_analytics(self):
path = get_gerrit_path(
'analytics/refinery',
'static_data/pageview/whitelist/whitelist.tsv'
'static_data/pageview/allowlist/allowlist.tsv'
)
url = '.'.join(self.parts[:2])
refinery_whitelist = get_file_from_gerrit(path)

View file

@ -106,11 +106,11 @@ class AnalyticsPatchMaker(GerritBot):
self.project = project
super().__init__(
'analytics/refinery',
'Add {} to pageview whitelist \n\nBug:{}'.format(project, bug_id)
'Add {} to pageview allowlist \n\nBug:{}'.format(project, bug_id)
)
def changes(self):
with open('static_data/pageview/whitelist/whitelist.tsv', 'r') as f:
with open('static_data/pageview/allowlist/allowlist.tsv', 'r') as f:
lines = f.read().split('\n')
projects = []
non_projects = []
@ -126,5 +126,5 @@ class AnalyticsPatchMaker(GerritBot):
))
projects = list(set(projects))
projects.sort()
with open('static_data/pageview/whitelist/whitelist.tsv', 'w') as f:
with open('static_data/pageview/allowlist/allowlist.tsv', 'w') as f:
f.write('\n'.join(projects) + '\n' + '\n'.join(non_projects))