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
Bug 1808402: Add yaml editor for values.yaml in helm install form #4513
Bug 1808402: Add yaml editor for values.yaml in helm install form #4513
Conversation
9261dd1
to
dfb2506
Compare
@rohitkrai03: This pull request references Bugzilla bug 1808402, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
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. |
/cherry-pick release-4.4 |
@rohitkrai03: once the present PR merges, I will cherry-pick it on top of release-4.4 in a new PR and assign it to you. In response to this:
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. |
982bdac
to
3e9c73b
Compare
@rohitkrai03: This pull request references Bugzilla bug 1808402, which is valid. 3 validation(s) were run on this bug
In response to this:
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rohitkrai03 Install button is enabled even when yaml and release name is empty
I think its because he removed the @rohitkrai03 ^^ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rohitkrai03 Height of YAML editor increases after it's rendered and also every time install is clicked.
Too much whitespace between Yaml Editor and Submit/Cancel button
Also, there is a scrollbar on this page whereas all other Yaml pages throughout console don't have one, probably because Yaml editor itself has scrollbar for code. |
3e9c73b
to
56a485b
Compare
Fixed this. Now release name field will always be populated with default value and yaml editor will only be shown if there is values.yaml to show. |
|
Other yaml pages let the editor handle create, update or other actions. The hieght is controlled by yaml editor along with the action buttons inside the editor. Now we are using it as a form field instead of self contained page, this is why the action buttons are not fixed at the bottom similar to all other forms that we have. |
/assign @christianvogt |
@@ -0,0 +1,4 @@ | |||
.yaml-editor-formik-field { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.yaml-editor-formik-field { | |
.ocs-yaml-editor-field { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
||
const initialValues: HelmInstallFormData = { | ||
releaseName: '', | ||
releaseName: chartName ? `${chartName}-defaulted` : '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know the screenshot in design has a suffix -defaulted
but was this really the intention? Why not default to simply the chart name itself? Was this confirmed with UX or assumed based on screenshot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just followed what the UX design doc had in the screenshot assuming that's what the ask was. @serenamarie125 @Veethika can you confirm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it wasn't explicitly called out, i feel like it was just an artifact of design filling in arbitrary data.
I don't know how a suffix of -defaulted
is better than simply the chart name itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to have just the chart name as default pre-populated release name.
export interface YAMLEditorFieldProps extends FieldProps { | ||
onChange?: (value: string) => void; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do these prop types keep going into this file instead of co-located in the component file itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of the components such as DropdownField
and NSDropdownField
share prop types along with extending the base FieldProps
. That is why all the field props are there in one file.
1150c78
to
667cf48
Compare
@rohitkrai03: This pull request references Bugzilla bug 1808402, which is valid. 3 validation(s) were run on this bug
In response to this:
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. |
@serenamarie125 This PR - #4507 adds the ability in topology for a helm release to be added in an application group. But according to you we are not allowing that in 4.4. cc: @christianvogt |
325ea07
to
24c6f42
Compare
/test e2e-gcp-console |
/lgtm |
/test e2e-gcp-console |
1 similar comment
/test e2e-gcp-console |
/retest Please review the full test history for this PR and help us cut down flakes. |
/lgtm cancel @rohitkrai03 size of the main vendor bundle has increased big time. |
Yup, i'm saying to hide it from the secondary masthead when showing the Install Chart form - we can see it in the animated gifs |
@christianvogt Not sure why that would happen, I am using the yaml editor as an async component. The whole page is on async route. So how would that affect vendor bundle size? |
/test e2e-gcp-console |
@christianvogt Seems to be a flake in the test. The job succeeded when I reran it. |
/test e2e-gcp-console |
@rohitkrai03 @christianvogt Yeah... this is unfortunately a known bundle flake. I did briefly express shock to @spadgett about this a while back on a PR... I am still quite confused how a process of bundling is not deterministic. You'd think the items to bundle are static; must be some race condition to bundling x before y... and one gets a better result through uglify or something. I believe it was related to Pattenfly icons the last time - not sure if that's always the case. Maybe we should look into this for 4.5 and try to cut down on this flake? (it happens pretty frequently) |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christianvogt, divyanshiGupta, 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 |
@rohitkrai03: All pull requests linked via external trackers have merged. Bugzilla bug 1808402 has been moved to the MODIFIED state. In response to this:
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. |
@rohitkrai03: new pull request created: #4642 In response to this:
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. |
Fixes - https://issues.redhat.com/browse/ODC-3066
This PR -
EditYAML
component.EditYAML
with some new props to configure editor so that it's suitable in a Formik form./api/helm/chart
endpoint to fetch chart details and dump chart values in the yaml editor and then uses that to send payload to helm installation API.Steps to test this PR -
./build-backend.sh
on latest master to get the backend API endpoint changes inbridge
.export HELM_REPOSITORY_CONFIG="/tmp/repositories.yaml"
before running./bin/bridge
.Screenshots -