Improve error messages in the Dependency List
- Related issue: #34088 (closed)
What does this MR do?
This improves some messages being displayed on the dependencies list.
Two use cases were identified:
Dependency scanning not configured
When a project doesn't have dependency scanning configured, the Dependency List page shows an empty state, which is what we expect, but it's currently using a success
(#1aaa55
) button for the link to the documentation, when it should actually be an info
(#1f78d1
) button.
Before | After |
---|---|
No dependencies detected
Projects that have dependency scanning enabled but for which no dependencies were detected currently show a generic error message that we want to replace with an empty and a link to the supported languages and framework documentation.
Before | After |
---|---|
How to test this?
Dependency scanning not configured
In any project that doesn't have a dependency_scanning
CI job setup, browse to Security & Compliance > Dependency List
No dependencies detected
In any project that has a dependency_scanning
CI job setup (security-reports for example), browse to Security & Compliance > Dependency List
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry - [-] Documentation (if required)
-
Code review guidelines - [-] Merge request performance guidelines
-
Style guides - [-] Database guides
-
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. - [-] Tested in all supported browsers
- [-] Informed Infrastructure department of a default or new setting change, if applicable per definition of done