Skip to content

Show accurate number of errored packages on package registry list page

Context

As part of Filter package registry UI to show packages wit... (#451054 - closed) we updated the error package alert to show the number of error packages & add a link to the packages page with error status filter.

This was a MVC implementation which computes this number based on the current page results. This is not accurate since we don't know the errored packages from all the pages.

Solution

  • Make a separate GraphQL request to get count & first item most recently published error packages
  • Show the error alert above the search bar. In the alert,
    • Show details of the single package if count is 1, with button opening the modal to deleted the only package.
    • Otherwise, show the error message with exact count, with button updating the page to show all error packages sorted by most recently published, discarding the current filters.
  • Change the alert message for when multiple packages with error exist from: %{count} packages were not published to the registry. Remove these packages and try again. to Failed to publish %{count} packages. Delete these packages and try again.

Design

#451054[multi_error_filter_a.png]

Edited by Rahul Chanila