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

(POC) Add devfile v2 outerloop flow to console #6321

Closed
wants to merge 53 commits into from

Conversation

reginapizza
Copy link
Contributor

@reginapizza reginapizza commented Aug 12, 2020

This PR is to implement the Import from Devfile flow.

UX mocks for this flow can be found here

Changes made and what is left to do is documented here.

Full demo video can be found here.

@Shraddhak22 @jaideepr97 @ranakan19 @wtam2018 @mitchharpur

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 12, 2020
@openshift-ci-robot
Copy link
Contributor

Hi @reginapizza. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Aug 12, 2020
@openshift-ci-robot openshift-ci-robot added component/core Related to console core functionality component/dev-console Related to dev-console component/git-service Related to git-service labels Aug 12, 2020
@andrewballantyne
Copy link
Contributor

Thanks for opening up this PR @reginapizza - I'll look through and see what you have come up with. Would you mind updating the description with a couple screenshots / gifs of the work you have done so it's clearer at a glance?

/hold
/assign

Also a little bookkeeping - Master is currently pointing at 4.6, and this is a 4.7 implementation. So just going to put a cautionary hold on this PR while we review the changes and discuss things.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 12, 2020
@reginapizza
Copy link
Contributor Author

@andrewballantyne PR description has been updated with screenshots!

My apologies about not understanding the versioning, still getting used to things here... should I update from master to relesease-4.7 then?

@openshift-ci-robot openshift-ci-robot added the component/backend Related to backend label Sep 30, 2020
@reginapizza
Copy link
Contributor Author

Just a quick update: things are working on the UI side for the most part, the last big puzzle piece to complete the flow is getting the devfile/parser library to work. The diagram below shows how the communication works between the app and the library; in place of the devfile/parser library we are using mocked data in the backend.

importFromDevfileFlowchart

Please see this doc for a more in-depth status update, including items that are still on the to-do list.

@reginapizza reginapizza changed the title (WIP) Add devfile v2 outerloop flow to console (POC) Add devfile v2 outerloop flow to console Oct 7, 2020
Copy link
Contributor

@serenamarie125 serenamarie125 left a comment

Choose a reason for hiding this comment

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

Please add the "Dev Preview" badge on the Import from devfile form page. Thanks!

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: reginapizza
To complete the pull request process, please assign rhamilto after the PR has been reviewed.
You can assign the PR to them by writing /assign @rhamilto in a comment when ready.

The full list of commands accepted by this bot can be found 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

@andrewballantyne
Copy link
Contributor

@reginapizza Are we going to want to get this in before the backend is ready. Based on the meeting yesterday it sounded like they are moving the right direction but are not yet ready. I think we may be able to get this into the UI and swing back with a go update to add the proper connectivity to the devfile lib.

Thoughts?

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 30, 2020
@reginapizza
Copy link
Contributor Author

Please add the "Dev Preview" badge on the Import from devfile form page. Thanks!

@serenamarie125 The images in the original description were outdated, the badge is currently there though. I've updated the description to include a full demo video that accurately reflects the code here now.

@serenamarie125
Copy link
Contributor

@serenamarie125 The images in the original description were outdated, the badge is currently there though. I've updated the description to include a full demo video that accurately reflects the code here now.

Looks great, thanks @reginapizza

@jaideepr97
Copy link
Contributor

@reginapizza Are we going to want to get this in before the backend is ready. Based on the meeting yesterday it sounded like they are moving the right direction but are not yet ready. I think we may be able to get this into the UI and swing back with a go update to add the proper connectivity to the devfile lib.

Thoughts?

Sounds good to me @andrewballantyne

@maysunfaisal
Copy link
Member

FYI, the devfile library PR is up for review at devfile/library#44

@andrewballantyne
Copy link
Contributor

I'll look to take over this PR going into next sprint. Thanks @maysunfaisal !

Comment on lines 189 to +194
if (validated === ValidatedOptions.warning) {
return 'URL is valid but cannot be reached. If this is a private repository, enter a source secret in Advanced Git Options';
}
if (validated === ValidatedOptions.warning) {
return 'Valid URL but devfile build guidance not available.';
}
Copy link
Member

Choose a reason for hiding this comment

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

Both these if conditions check for warning. Looks like the condition for not reachable should be an error looking at the logic above in this file

Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting, I'll have to validate the UI code once I move it over. I'm trying to close off the ticket I'm working on but clusters seem to be having some issues today. Good catch though.

@andrewballantyne
Copy link
Contributor

/close

See #7299 for the continued work on Devfile addition to DevConsole.

@openshift-ci-robot
Copy link
Contributor

@andrewballantyne: Closed this PR.

In response to this:

/close

See #7299 for the continued work on Devfile addition to DevConsole.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@reginapizza reginapizza deleted the addDevfile branch April 21, 2022 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/backend Related to backend component/core Related to console core functionality component/dev-console Related to dev-console component/git-service Related to git-service do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants