Change type dialog shows empty bullet point when promoting to epic
Summary
When promoting an issue to an epic via the "Change type" dialog, if there are no fields that will be lost, the warning message displays an empty bullet point instead of omitting the list entirely.
Steps to reproduce
- Create an issue without iteration or designs assigned
- Click to change the issue type
- Select "Epic (Promote to group)" from the dropdown
- Observe the warning message
What is the current bug behavior?
The warning message states "Some fields are not present in epic. If you change type now, this information will be lost." followed by an empty bullet point. The dialog attempts to generate a list of fields that will be lost, but it renders an empty bullet point instead of omitting the list.
What is the expected correct behavior?
When there are no fields that will be lost during the type change:
- Option 1: Don't show the warning message at all
- Option 2: Show the warning but omit the bullet list entirely
- Option 3: Show a message like "No field data will be lost" instead of an empty list
Relevant logs and/or screenshots
Warning message when no field data will be lost:
Warning message when field data will be lost, but there is still an empty bullet point:
Patch release information for backports
If the bug fix needs to be backported in a patch release to a version under the maintenance policy, please follow the steps on the patch release runbook for GitLab engineers.
Refer to the internal "Release Information" dashboard for information about the next patch release, including the targeted versions, expected release date, and current status.
High-severity bug remediation
To remediate high-severity issues requiring an internal release for single-tenant SaaS instances, refer to the internal release process for engineers.