mirror of
https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot
synced 2024-09-08 00:18:39 +02:00
Update whitelist link (#59)
This commit is contained in:
parent
1236808aa4
commit
01301705c1
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue