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

Dynamically generate che workspace factory URL in Topology after getting cheURL from ConsoleLink CR #2536

Merged
merged 1 commit into from
Aug 30, 2019

Conversation

rohitkrai03
Copy link
Contributor

@rohitkrai03 rohitkrai03 commented Aug 29, 2019

This PR -

  • Looks for ConsoleLink CR which will be created by Eclipse Che Operator and will have Che Dashboard URL.
  • Based on the Che URL from ConsoleLink we generate a Che Factory URL that will take the user through the workspace creation process.
  • Based on the annotation for Git Repo URL and Che URL dynamically adds Edit URL on topology nodes.

ezgif com-video-to-gif

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 29, 2019
@rohitkrai03
Copy link
Contributor Author

/kind bug

@openshift-ci-robot openshift-ci-robot added kind/bug Categorizes issue or PR as related to a bug. component/dev-console Related to dev-console approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 29, 2019
'app.openshift.io/vcs-ref': ref,
'app.openshift.io/vcs-ref': gitRef || 'master',
...(cheURL && {
'app.openshift.io/edit-url': `${cheURL}/f?url=${gitURL}&policy.create=peruser`,

Choose a reason for hiding this comment

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

can we change policy.create to policys.create ? To match eclipse-che/che#14355 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, will update the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Choose a reason for hiding this comment

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

thx

Copy link
Contributor

Choose a reason for hiding this comment

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

That is policies.

'app.openshift.io/vcs-ref': ref,
'app.openshift.io/vcs-ref': gitRef || 'master',
...(cheURL && {
'app.openshift.io/edit-url': `${cheURL}/f?url=${gitURL}&policys.create=peruser`,

Choose a reason for hiding this comment

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

policys -> policies

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. policys is what you mentioned in your earlier comment.

Choose a reason for hiding this comment

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

I'm sorry. I was wrong. policies is the correct query name

@rohitkrai03 rohitkrai03 changed the title Add annotation for che workspace URL that reads ConsoleLink CR and generates factory URL Dynamically generate che workspace factory URL in Topology after getting cheURL from ConsoleLink CR Aug 29, 2019
@christianvogt
Copy link
Contributor

/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 29, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: christianvogt, rohitkrai03

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 5d2d384 into openshift:master Aug 30, 2019
@spadgett spadgett added this to the v4.2 milestone Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/dev-console Related to dev-console kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants