Skip to content

Supress tooltip errors for private projects #1123

@kriswest

Description

@kriswest

Describe the bug
If you add a private GitHub project to git proxy, users without access to it or not logged into GitHub will be presented with tooltip errors whenever they visit the repository list or details page for that project.

As the additional data returned by the API call is non-essential (project metadata and images), we should suppress the error / reduce it down to a warning message in the console. The data will definitely be optional after #1043 as we can only retrieve it for GiutHub and GitLab and not other SCM providers/bare git repos (without them supporting it or doing further work).

To Reproduce
Steps to reproduce the behaviour:

  1. add a private project, e.g. https://github.com/finos/flowave-bpm-platform.git (which does exist, but is currently private)
  2. Confirm you can't see the project (visit the URL)
  3. Visit the repository listing page anbd observe the tooltip error.

Expected behaviour
The existence of a private project doesn't degrade the UI experience for users that don't have access to it.

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions