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

Devfile Registry editor is to allow devfile version selection and use… #4467

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vrubezhny
Copy link
Contributor

… when creating a component #4189

Fixes: #4189
Issue: #3850

@codecov-commenter
Copy link

codecov-commenter commented Sep 13, 2024

Codecov Report

Attention: Patch coverage is 58.87850% with 88 lines in your changes missing coverage. Please review.

Project coverage is 43.57%. Comparing base (da60441) to head (a880bac).
Report is 546 commits behind head on main.

Files with missing lines Patch % Lines
.../webview/create-component/createComponentLoader.ts 40.38% 31 Missing ⚠️
src/registriesView.ts 23.68% 29 Missing ⚠️
src/devfile-registry/devfileRegistryWrapper.ts 87.65% 10 Missing ⚠️
src/webview/common-ext/createComponentHelpers.ts 59.09% 9 Missing ⚠️
src/webview/devfile-registry/registryViewLoader.ts 25.00% 9 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #4467       +/-   ##
===========================================
+ Coverage   32.37%   43.57%   +11.20%     
===========================================
  Files          85       98       +13     
  Lines        6505     7974     +1469     
  Branches     1349     1700      +351     
===========================================
+ Hits         2106     3475     +1369     
- Misses       4399     4499      +100     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vrubezhny vrubezhny force-pushed the fix-devfile-registry-editor-version-select branch 8 times, most recently from 29ea326 to 2e80f02 Compare September 20, 2024 16:06
@vrubezhny vrubezhny force-pushed the fix-devfile-registry-editor-version-select branch 3 times, most recently from ce00ceb to 5e119c3 Compare September 23, 2024 11:43
@vrubezhny vrubezhny marked this pull request as ready for review September 23, 2024 12:03
@vrubezhny vrubezhny force-pushed the fix-devfile-registry-editor-version-select branch from 5e119c3 to e5a6879 Compare September 24, 2024 00:29
@vrubezhny vrubezhny force-pushed the fix-devfile-registry-editor-version-select branch from e5a6879 to a880bac Compare September 24, 2024 20:16
@datho7561
Copy link
Contributor

adding new Devfile registries doesn't seem to work. I tried to add http://registry.stage.devfile.io , and nothing happened: no warnings and it didn't appear in the "Devfile Registries" section of the sidebar

@vrubezhny
Copy link
Contributor Author

adding new Devfile registries doesn't seem to work. I tried to add http://registry.stage.devfile.io , and nothing happened: no warnings and it didn't appear in the "Devfile Registries" section of the sidebar

Try refreshing the Devfile Registry View tree - that is a known issue I fixed in #4473.

@datho7561
Copy link
Contributor

Refreshing didn't work for me. That other PR says that it depends on this one in order to work - is that still the case? Is it possible to move the fix to this PR?

@vrubezhny
Copy link
Contributor Author

Refreshing didn't work for me. That other PR says that it depends on this one in order to work - is that still the case? Is it possible to move the fix to this PR?

I could try implementing the fix in this PR... the problem is that it'll need to make even more changes in depending #4473 due to conflicts (as it changes the same code)

@datho7561
Copy link
Contributor

Should I focus on reviewing the other PR then?

@vrubezhny
Copy link
Contributor Author

Should I focus on reviewing the other PR then?

Adding/removing devfile registries are not the part of this PR....

With this one you can focus on the following goals:

  1. to provide a possibility to change the version of a devfile when creating a component (from Devfile Registry editor, a template, a git repository or a local codebase) and making sure that everything still works and the selected devfile version is really applied for a component created.
  2. Overall performance improvement (we don't need to read whole the devfile registries contents together with the default devfile versions attached into the memory at start and keep it in while working with the extension).
  3. getting rid of odo registry and odo registry --detail usages

The #4473 - is exactly about devfile registry tree, adding/changing/removing registries, refreshing the tree and the cache maintenance and getting rid of odo preference view, odo preference add registry and odo preference remove registry

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.

Devfile Registry editor is to allow devfile version selection and use when creating a component
3 participants