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

feat: accessing editor devfile from dashboard url #2747

Merged
merged 2 commits into from
Jun 26, 2024

Conversation

dkwon17
Copy link
Contributor

@dkwon17 dkwon17 commented Jun 21, 2024

For eclipse-che/che-dashboard#1134

What does this pull request change?

This PR documents the changes for eclipse-che/che-dashboard#1134

What issues does this pull request fix or reference?

eclipse-che/che-dashboard#1134

Specify the version of the product this pull request applies to

Che 7.88.0

Pull Request checklist

The author and the reviewers validate the content of this pull request with the following checklist, in addition to the automated tests.

  • Any procedure:
    • Successfully tested.
  • Any page or link rename:
    • The page contains a redirection for the previous URL.
    • Propagate the URL change in:
  • Builds on Eclipse Che hosted by Red Hat.
  • the Validate language on files added or modified step reports no vale warnings.

@dkwon17 dkwon17 requested review from deerskindoll and a team as code owners June 21, 2024 16:15
Copy link

github-actions bot commented Jun 21, 2024

Click here to review and test in web IDE: Contribute

Copy link

github-actions bot commented Jun 21, 2024

🎊 Navigate the preview: https://667b3ef88f2f1b7dd8ddcb70--eclipse-che-docs-pr.netlify.app 🎊

@che-bot che-bot added this to Triage in Reviews Jun 21, 2024
`pass:c,a,q[{prod-url}]/dashboard/api/editors/devfile?che-editor=publisher/editorname/version`

TIP: When retrieving the editor definition from within the {orch-name} cluster, the {prod-short} dashboard API can be accessed via the dashboard service:
`\http://che-dashboard.{prod-namespace}.svc.cluster.local:8080/dashboard/api/editors/devfile?che-editor=__<editor id>__`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am getting this error:

Get "http://che-dashboard.eclipse-che.svc.cluster.local:8080/dashboard/api/editors/devfile": dial tcp: lookup che-dashboard.eclipse-che.svc.cluster.local: no such host --- docs/next/end-user-guide/managing-workspaces-with-apis/index.html --> http://che-dashboard.eclipse-che.svc.cluster.local:8080/dashboard/api/editors/devfile?che-editor=che-incubator/che-code/latest

Hi @deerskindoll is there a way to supress the error? This link is not supposed to be accessible unless it's accessed within a cluster

Copy link
Contributor

Choose a reason for hiding this comment

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

on it

Copy link
Contributor

Choose a reason for hiding this comment

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

@dkwon17 you need to add pass:c,a,q in front of the address to deactivate the link

additional thought: since the address is explicitly featuring che-dashboard, is it applicable for downstream? otherwise, you need to replace it with {prod-url}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated, it is working, thank you

Good catch, it should be che upstream and devspaces downstream, so I've updated it to {prod-id-short}

Signed-off-by: dkwon17 <dakwon@redhat.com>
Reviews automation moved this from Triage to Approved Jun 25, 2024
@ibuziuk
Copy link
Member

ibuziuk commented Jun 25, 2024

@deerskindoll could you clarify why the build is broken

@deerskindoll
Copy link
Contributor

@deerskindoll could you clarify why the build is broken

Build fixed. Mykhailo is looking into the general issue.

Copy link
Contributor

@deerskindoll deerskindoll left a comment

Choose a reason for hiding this comment

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

lgtm

@ibuziuk ibuziuk merged commit 4cbaec6 into eclipse-che:main Jun 26, 2024
5 of 6 checks passed
Reviews automation moved this from Approved to Done Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Reviews
  
Done
3 participants