Skip to content

fix(project): handle registry list retrieval error gracefully#1014

Open
saiashok0981 wants to merge 1 commit into
goharbor:mainfrom
saiashok0981:fix/project-create-registry-list-resilience
Open

fix(project): handle registry list retrieval error gracefully#1014
saiashok0981 wants to merge 1 commit into
goharbor:mainfrom
saiashok0981:fix/project-create-registry-list-resilience

Conversation

@saiashok0981

Copy link
Copy Markdown

Summary

This PR makes interactive project creation resilient to registry listing API failures.

Rationale & Design Decisions

  • Currently, if the Registry listing endpoint fails or is unauthorized, CreateProjectView fails immediately.
  • Listing registries is only required for selecting a proxy cache registry.
  • By handling the error gracefully (logging a debug message and passing an empty list of options), standard project creation remains functional for users without administrative registry access.
    Signed-off-by: saiashok103@gmail.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant