Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [che-dev] Beta feature Preview URL - feedback welcome

Hello!
Nice improvement, Michal!

FYI: we have ability to define in preferences preferred way of previewing a service URL, 
so we should add info to the Che documentation on how to use these preferences.

I created the corresponding issue and added it to the epic.
Thanks!

On Mon, Oct 28, 2019 at 1:29 AM Michal Vala <mvala@xxxxxxxxxx> wrote:
Hello everyone,

we've added support for preview url into the devfile. It allows user
to define url path that should be opened after command run. This is
particularly useful when project's UI is on some non-root path, e.g.
'/admin'. But it can be used for root path as well. No container
endpoint has to be defined in the devfile for preview url.

We've decided to introduce the feature as a beta, so if you like,
please try and provide us some feedback or report an issue. Here's the
devfile you can test:
https://gist.github.com/sparkoo/62386a1c74d22a8560d05cbfe24d8fa0 It's
our Symphony devfile, with previewUrl to admin page. Or you can use
any your devfile, just make sure that `apiVersion: 1.0.1-beta` is set.
Then you can use previewUrl attribute on command.

Currently it is in master branch and will be part of 7.4.0 release so
make sure you're using latest version. It is not yet at
che.openshift.io.


We've demo it on last sprint review: https://youtu.be/5qyIH42D7a8
The feature is documented here:
https://www.eclipse.org/che/docs/che-7/making-a-workspace-portable-using-a-devfile/#command-preview-url
If you will report any issue, don't forget to link it to this epic
https://github.com/eclipse/che/issues/13945

Thanks!

--
Michal Vala
Software Engineer, Eclipse Che
Red Hat Czech


Back to the top