Commit cc748936 authored by ViolanteCodes's avatar ViolanteCodes
Browse files

added logic to not display blocks in issue template when gitlab times out

parent 2376a7bf
...@@ -19,7 +19,7 @@ class GitlabDownProject: ...@@ -19,7 +19,7 @@ class GitlabDownProject:
self.attributes = { self.attributes = {
'created_at': '2020-12-01T17:19:24.061Z', 'created_at': '2020-12-01T17:19:24.061Z',
'description': 'A mock project that displays when GitLab calls time out.', 'description': 'A mock project that displays when GitLab calls time out.',
'id': 404, 'id': 'NA',
'last_activity_at': '2020-12-15T21:45:42.934Z', 'last_activity_at': '2020-12-15T21:45:42.934Z',
'name': 'GitLab Timed Out', 'name': 'GitLab Timed Out',
'name_with_namespace': 'The Tor Project / Anon-Ticket', 'name_with_namespace': 'The Tor Project / Anon-Ticket',
...@@ -77,11 +77,11 @@ class GitlabDownIssue: ...@@ -77,11 +77,11 @@ class GitlabDownIssue:
'id': '', 'id': '',
'iid': '', 'iid': '',
'labels': [], 'labels': [],
'milestone': { 'created_at': '2020-12-02T15:36:29.028Z', 'milestone': { 'created_at': '',
'description': 'A fake milestone', 'description': 'A fake milestone',
'title': 'GITLAB TIMED OUT', 'title': 'GITLAB TIMED OUT',
'updated_at': '2020-12-09T17:29:00.536Z', 'updated_at': '',
'web_url': 'https://gitlab.torproject.org/groups/tpo/-/milestones/19'}, 'web_url': ''},
'project_id': '', 'project_id': '',
'state': 'opened', 'state': 'opened',
'title': """OH NO! IF YOU'RE SEEING THIS, SOMETHING WENT WRONG!""", 'title': """OH NO! IF YOU'RE SEEING THIS, SOMETHING WENT WRONG!""",
...@@ -129,12 +129,6 @@ class GitlabDownNote: ...@@ -129,12 +129,6 @@ class GitlabDownNote:
def __init__(self): def __init__(self):
self.name = 'GitLab API call failed.' self.name = 'GitLab API call failed.'
self.attributes = { self.attributes = {
'author': { 'avatar_url': None,
'id': 748,
'name': 'MariaV',
'state': 'active',
'username': 'MariaV',
'web_url': 'https://gitlab.torproject.org/MariaV'},
'body': """***If you're seeing this note, it means that the call 'body': """***If you're seeing this note, it means that the call
to the gitlab API timed out.***""", to the gitlab API timed out.***""",
'created_at': '', 'created_at': '',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment