Skip to content

NPM installation: enable instance level switch

What does this MR do?

Related Issue:

#334107 (closed)

Description:

On the package detail page of a npm package https://gitlab.com/<group>/<project>/-/packages/<packageId>, there is a Registry setup step, of which this step is only applicable for instance-level endpoints

When using a project-level endpoint this is not always correct, and causes problems with authentication.

This change adds a radio button selector to allow you to switch between the setup steps for project-level and instance-level. Please see the screenshot below.

The npm registry docs have also been update to include this detail.

Risk:

Additional frontend test cases were added to cover the changes. The change itself has little risk as it mainly focuses on the presentation layer.

Screenshots (strongly suggested)

Before After
before after

Video:

RegistrySetupStep

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Nicolò Maria Mezzopera

Merge request reports