Convert Package Details page to use GraphQL
Context
We've done a lot of work to create GraphQL APIs for the GitLab Package Registry. With that work wrapping up in 14.1, it would be great to start updating the Package Registry UI to leverage the new API. This will help with performance and help to unblock future feature development.
Proposal
Refactor the package details page from using a mix of controllers/rest API to use the new GraphQL API.
Designs
- Show closed items
Blocks
Relates to
- gitlab-org/ci-cd/package-stage/risk-mapping #3112
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Nicolò Maria Mezzopera set weight to 3
set weight to 3
- Author Maintainer
/cc @trizzi
Collapse replies Thanks for opening this issue @nmezzopera! Do you think it's reasonable to schedule this and the list page implementation in a single milestone?
- Author Maintainer
@trizzi yes, they are completely unlinked anyhow!
@nmezzopera Should this issue be updated to workflowready for development?
1
- Nicolò Maria Mezzopera mentioned in issue #285467 (closed)
mentioned in issue #285467 (closed)
- Tim Rizzi marked this issue as related to #330846 (closed)
marked this issue as related to #330846 (closed)
- 🤖 GitLab Bot 🤖 added [deprecated] Accepting merge requests label
added [deprecated] Accepting merge requests label
- 🤖 GitLab Bot 🤖 added sectionops label
added sectionops label
- Tim Rizzi mentioned in issue #331743 (closed)
mentioned in issue #331743 (closed)
- Tim Rizzi added Package:P1 label
added Package:P1 label
- Nicolò Maria Mezzopera mentioned in merge request !61985 (merged)
mentioned in merge request !61985 (merged)
- Tim Rizzi changed the description
Compare with previous version changed the description
- Nicolò Maria Mezzopera added workflowready for development label
added workflowready for development label
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#3490 (closed)
mentioned in issue gitlab-org/quality/triage-reports#3490 (closed)
- Daniel Croft added Deliverable label
added Deliverable label
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#3564 (closed)
mentioned in issue gitlab-org/quality/triage-reports#3564 (closed)
- Sofia Vistas marked this issue as related to gitlab-org/ci-cd/package-stage/risk-mapping#31
marked this issue as related to gitlab-org/ci-cd/package-stage/risk-mapping#31
- 🤖 GitLab Bot 🤖 mentioned in issue gitlab-org/quality/triage-reports#3662 (closed)
mentioned in issue gitlab-org/quality/triage-reports#3662 (closed)
- Nicolò Maria Mezzopera assigned to @nmezzopera
assigned to @nmezzopera
- Nicolò Maria Mezzopera created merge request !64939 (merged) to address this issue
created merge request !64939 (merged) to address this issue
- Nicolò Maria Mezzopera mentioned in merge request !64939 (merged)
mentioned in merge request !64939 (merged)
- 🤖 GitLab Bot 🤖 removed [deprecated] Accepting merge requests label
removed [deprecated] Accepting merge requests label
- Nicolò Maria Mezzopera mentioned in issue #233724 (closed)
mentioned in issue #233724 (closed)
- Tim Rizzi marked this issue as related to #233724 (closed)
marked this issue as related to #233724 (closed)
- Nicolò Maria Mezzopera added workflowin dev label and removed workflowready for development label
added workflowin dev label and removed workflowready for development label
- Author Maintainer
Async Issue Update
Status
-
Complete:
60%
-
Confidence:
90%
Notes
This work will be done in 4 steps
- Add feature flag and new page bundle
- Add apollo and fetch data from API
- Wire Page components
- Remove feature flag and old code
Merge Requests
-
Complete:
- Tim Rizzi added bugperformance label
added bugperformance label
- Tim Rizzi changed title from Convert Package Details page to use apollo/graphql to Convert Package Details page to use GraphQL
changed title from Convert Package Details page to use apollo/graphql to Convert Package Details page to use GraphQL
- Tim Rizzi changed the description
Compare with previous version changed the description
- Nicolò Maria Mezzopera created merge request !65810 (merged) to address this issue
created merge request !65810 (merged) to address this issue
- Nicolò Maria Mezzopera mentioned in merge request !65810 (merged)
mentioned in merge request !65810 (merged)
- Author Maintainer
@trizzi @dcroft I won't be able to complete this work for 14.1, following a small retrospective on why:
Wrong estimation
I've estimated this work a frontend-weight3 based on my experience with the Container Registry similar refactor, this was wrong because of a few points:
- The Infrastructure registry is tied to the package app, requiring more planning and work
- The sheer number of Package managers that we support and all the nuances around them, I have much more moving parts to take in account, test and double check
- A few bug that we currently have that I
stumbled
upon doing the refactor, forcing me to stop and address them
Missing data from the API
- While the package related GraphQL API is done, in the details API we rely on data coming from other part of the
models/schema
in particular we lack some info from the pipeline schema, I will be opening an MR to add those.
Unplanned time off on my part
Due to some personal circumstances I had to take more time off, I was less focused, than I had thought this milestone, leading to a small than usual throughput
Since the work started already, I am confident that this can be closed in 14.2
1 Collapse replies Thanks for the heads up @nmezzopera, I updated the milestone to 14.2 and will update the planning issue.
- Tim Rizzi mentioned in issue #333869 (closed)
mentioned in issue #333869 (closed)
- Nicolò Maria Mezzopera created merge request !66241 (merged) to address this issue
created merge request !66241 (merged) to address this issue
- Nicolò Maria Mezzopera mentioned in merge request !66241 (merged)
mentioned in merge request !66241 (merged)
- Nicolò Maria Mezzopera mentioned in merge request !66313 (merged)
mentioned in merge request !66313 (merged)
- Author Maintainer
Async Issue Update
Status
-
Complete:
70%
-
Confidence:
90%
Notes
Merge Requests
-
Complete:
- Nicolò Maria Mezzopera created merge request !66749 (merged) to address this issue
created merge request !66749 (merged) to address this issue
- Nicolò Maria Mezzopera mentioned in merge request !66749 (merged)
mentioned in merge request !66749 (merged)
- Author Maintainer
Async Issue Update
Status
-
Complete:
75%
-
Confidence:
90%
Notes
Merge Requests
-
Complete:
- Nicolò Maria Mezzopera created merge request !67122 (merged) to address this issue
created merge request !67122 (merged) to address this issue
- Nicolò Maria Mezzopera mentioned in merge request !67122 (merged)
mentioned in merge request !67122 (merged)
- Nicolò Maria Mezzopera mentioned in merge request !67320 (merged)
mentioned in merge request !67320 (merged)
- Author Maintainer
Async Issue Update
Status
-
Complete:
85%
-
Confidence:
90%
Notes
Merge Requests
-
Complete:
- Nicolò Maria Mezzopera mentioned in merge request !67594 (merged)
mentioned in merge request !67594 (merged)
- Author Maintainer
Async Issue Update
Status
-
Complete:
90%
-
Confidence:
90%
Notes
Merge Requests
-
Complete:
- Nicolò Maria Mezzopera created merge request !67604 (merged) to address this issue
created merge request !67604 (merged) to address this issue
- Nicolò Maria Mezzopera mentioned in merge request !67604 (merged)
mentioned in merge request !67604 (merged)
- Author Maintainer
Async Issue Update
Status
-
Complete:
93%
-
Confidence:
90%
Notes
Merge Requests
-
Complete: