Adds loading for package details additional metadata
requested to merge 338336-redesign-package-details-additional-metadata-loading-experience into master
What does this MR do and why?
-
This MR deals with improving the additional metadata section of the package details page.
- Adds loader for additional metadata in package details page
- Creates new graphQL query to request for package metadata
- Removes metadata related fragment (except for NuGet & Maven) from package details graphQL query
- Only Composer, Maven, NuGet, PyPi, Conan package types render this section
- Handles error states
-
Improves error handling aspects for Redesign package details history loading experi... (!87054 - merged)
- Adds back dependent fields in
pipelines
query required bydetails/package_title.vue
& was removed in !87054 (diffs)
- Adds back dependent fields in
Screenshots or screen recordings
Conan package loading (The screen recording container 3 loader lines, but I have reduced this number to 2 after considering similar package metadata from other package types.
How to set up and validate locally
Additional metadata is visible only on few types of packages
- Create different types of packages, follow https://gitlab.com/gitlab-org/ci-cd/package-stage/package/-/wikis/Packages-Tips-&-Tricks#how-to-createa-package-with-metadatum
- Visit the package details page.
- Composer, Maven, NuGet, PyPi, Conan packages should have the additional metadata
- Other package types should not have additional metadata section. Verify that extra GraphQL API is not being made.
- Simulate graphql query failure & make sure alert message is being displayed.
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.
Closes #365228 (closed)
Edited by Rahul Chanila