Skip to content

handled error case if no devfile registry available#2706

Merged
dgolovin merged 2 commits intoredhat-developer:mainfrom
msivasubramaniaan:2705-devfile-registry-view-does-not-show-errors-for-connectivity-related-issues-and-stays-in-loading-registry-view-mode-forever
Dec 16, 2022
Merged

handled error case if no devfile registry available#2706
dgolovin merged 2 commits intoredhat-developer:mainfrom
msivasubramaniaan:2705-devfile-registry-view-does-not-show-errors-for-connectivity-related-issues-and-stays-in-loading-registry-view-mode-forever

Conversation

@msivasubramaniaan
Copy link
Copy Markdown
Collaborator

Signed-off-by: msivasubramaniaan msivasub@redhat.com

Post Fix:
image

Signed-off-by: msivasubramaniaan <msivasub@redhat.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 13, 2022

Codecov Report

Base: 34.37% // Head: 34.13% // Decreases project coverage by -0.24% ⚠️

Coverage data is based on head (27b31be) compared to base (4beb125).
Patch coverage: 18.18% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2706      +/-   ##
==========================================
- Coverage   34.37%   34.13%   -0.25%     
==========================================
  Files          68       69       +1     
  Lines        4084     4125      +41     
  Branches      719      731      +12     
==========================================
+ Hits         1404     1408       +4     
- Misses       2680     2717      +37     
Impacted Files Coverage Δ
src/registriesView.ts 31.33% <0.00%> (-1.78%) ⬇️
src/webview/devfile-registry/registryViewLoader.ts 26.19% <33.33%> (-1.86%) ⬇️
src/openshift/component.ts 15.13% <0.00%> (-0.78%) ⬇️
src/odo/command.ts 14.00% <0.00%> (-0.19%) ⬇️
src/extension.ts 60.46% <0.00%> (ø)
src/experimental.ts 66.66% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

panel?.webview.postMessage(
{
action: eventActionName,
errorMessage: 'No Devfile registries configured'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@msivasubramaniaan Instead of showing the Devfile Webview with this message, we can just load the Error Notification of VSCode saying No devfile registry is accessible.

Copy link
Copy Markdown
Contributor

@mohitsuman mohitsuman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to see if vscode error message or webview one makes sense.

Signed-off-by: msivasubramaniaan <msivasub@redhat.com>
@dgolovin dgolovin merged commit 37ca070 into redhat-developer:main Dec 16, 2022
@msivasubramaniaan msivasubramaniaan deleted the 2705-devfile-registry-view-does-not-show-errors-for-connectivity-related-issues-and-stays-in-loading-registry-view-mode-forever branch January 3, 2023 09:24
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 View does not show errors for connectivity related issues and stays in 'Loading Registry View' mode forever

3 participants