Create TYPE_ISSUE constant as SSoT constant
What does this MR do and why?
This MR creates a TYPE_ISSUE
constant as the SSoT constant for issue
, to follow our
FE guidelines of using a constant rather than object property
for primitive strings. It also updates instances of IssuableType.Issue
with the new
constant.
Future MRs will replace other duplicate issue
constants such as in ~/related_issues/constants.js#L4
and ~/boards/constants.js#L18
, and will also replace the other IssuableType
properties with constants (e.g. replace IssuableType.Epic
with TYPE_EPIC
)
Screenshots or screen recordings
How to set up and validate locally
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Coung Ngo