Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As an Admin, I want to enable registry.devfile.io in CR on demand, and see all the devfiles as Getting Started samples on the User Dashboard #22142

Closed
ibuziuk opened this issue Apr 11, 2023 · 0 comments · Fixed by eclipse-che/che-dashboard#816
Assignees
Labels
area/dashboard kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system. sprint/next
Milestone

Comments

@ibuziuk
Copy link
Member

ibuziuk commented Apr 11, 2023

Is your task related to a problem? Please describe

In order to enable the registry, the admin updates CR accordingly:

    devfileRegistry:
      externalDevfileRegistries:
        - url: https://registry.devfile.io/

On the dashboard side, all the devfiles from https://registry.devfile.io/viewer are available as the Getting Started: e.g. https://registry.devfile.io/viewer/devfiles/community/dotnet60 is displayed as

image

Describe the solution you'd like

on the dashboard startup we get the index from https://registry.devfile.io/index and update it to the appropriate format that UD can handle. Note that the self-links need to be correctly transformed e.g.

   "links": {
      "self": "devfile-catalog/dotnet50:1.0.3"
    }, 

should be transformed to v2 format:

  "links": {
    "v2": "https://registry.devfile.io/devfiles/dotnet50/1.0.3"
  }

Describe alternatives you've considered

N/A

Additional context

For performance optimization, we should read, https://registry.devfile.io/index only once during UD pod startup
Also, it would be nice to add the devfile.io tag on UD to all devfiles coming from https://registry.devfile.io

Also, it should be possible to disable internal registry and only use devfile.io

    devfileRegistry:
      disableInternalRegistry: true
      externalDevfileRegistries:
        - url: https://registry.devfile.io/
@ibuziuk ibuziuk added the kind/task Internal things, technical debt, and to-do tasks to be performed. label Apr 11, 2023
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Apr 11, 2023
@ibuziuk ibuziuk changed the title As an Admin, I want to enable https://registry.devfile.io/ as Devfile registry in CR, and see all the devfiles as Getting Started samples on the User Dashboard As an Admin, I want to enable registry.devfile.io as Devfile registry in CR on demand, and see all the devfiles as Getting Started samples on the User Dashboard Apr 11, 2023
@ibuziuk ibuziuk added area/dashboard sprint/next severity/P1 Has a major impact to usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Apr 11, 2023
@ibuziuk ibuziuk moved this to 📋 Backlog in Eclipse Che Team A Backlog Apr 11, 2023
@ibuziuk ibuziuk added this to the 7.65 milestone Apr 11, 2023
@ibuziuk ibuziuk changed the title As an Admin, I want to enable registry.devfile.io as Devfile registry in CR on demand, and see all the devfiles as Getting Started samples on the User Dashboard As an Admin, I want to enable registry.devfile.io in CR on demand, and see all the devfiles as Getting Started samples on the User Dashboard Apr 11, 2023
@ibuziuk ibuziuk moved this from 📋 Backlog to 📅 Planned in Eclipse Che Team A Backlog Apr 19, 2023
@olexii4 olexii4 moved this from 📅 Planned to 🚧 In Progress in Eclipse Che Team A Backlog May 5, 2023
@olexii4 olexii4 moved this from 🚧 In Progress to Ready for Review in Eclipse Che Team A Backlog May 15, 2023
@ibuziuk ibuziuk modified the milestones: 7.65, 7.67 May 17, 2023
@ibuziuk ibuziuk moved this from Ready for Review to ✅ Done in Eclipse Che Team A Backlog May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dashboard kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system. sprint/next
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants