Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 20 additions & 15 deletions alertlib/jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"Learning Components": "LC",
"Marketing & Philanthropy Product": "MPP",
"MPP": "MPP",
"Security": "SEC",

# These are deprecated and will be removed soon.
"Classroom": "CLASS",
Expand All @@ -46,24 +47,28 @@
"Test": "TEST",
}

_ISSUETYPE_ID_SUPPORT = "10201"
_ISSUETYPE_ID_BUG = "10103"

# Associates a Jira project key with an issue type ID for that project's
# default issue type
_PROJECT_TO_ISSUETYPE_ID = {
"ARCH": "10201", # Support
"CLASS": "10201", # Support
"CL": "10201", # Support
"CP": "10201", # Support
"DI": "10201", # Support
"DIST": "10201", # Support
"FEI": "10201", # Support
"GL": "10201", # Support
"INFRA": "10103", # Bug
"LC": "10201", # Support
"MPP": "10201", # Support
"LP": "10201", # Support
"TP": "10201", # Support
"TEST": "10201", # Support
"TUT": "10201", # Support
"ARCH": _ISSUETYPE_ID_SUPPORT,
"CLASS": _ISSUETYPE_ID_SUPPORT,
"CL": _ISSUETYPE_ID_SUPPORT,
"CP": _ISSUETYPE_ID_SUPPORT,
"DI": _ISSUETYPE_ID_SUPPORT,
"DIST": _ISSUETYPE_ID_SUPPORT,
"FEI": _ISSUETYPE_ID_SUPPORT,
"GL": _ISSUETYPE_ID_SUPPORT,
"INFRA": _ISSUETYPE_ID_BUG,
"LC": _ISSUETYPE_ID_SUPPORT,
"MPP": _ISSUETYPE_ID_SUPPORT,
"LP": _ISSUETYPE_ID_SUPPORT,
"SEC": _ISSUETYPE_ID_SUPPORT,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment above these says it's the "default" issue type, but it looks like any new issues will just get filed of this type, so I think @Khan/security gets to pick.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Support" seems better than "Bug" for our world as a sane default.

"TP": _ISSUETYPE_ID_SUPPORT,
"TEST": _ISSUETYPE_ID_SUPPORT,
"TUT": _ISSUETYPE_ID_SUPPORT,
}


Expand Down