Extract string constants for gitlab "primitives"

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

There are many places we are recreating the same string literal 'issue', or 'epic' or 'merge_request'.

It would be nice to extract all of these into a single sort of project-wide constants file, and never use string literals for what are basically "primitives" in the gitlab ecosystem.

Some of these primitives are:

'issue' 'merge_request' 'epic'

This issue includes at least extracting these three string literals into a single constants file and removing them from all existing constants files.

For example, 'issue' exists as a constant in app/assets/javascripts/notes/constants.js and ee/app/assets/javascripts/related_items_tree/constants.js. The string 'issue' is also used all over the app and not used as a constant

Edited Sep 26, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading