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

New deployment forms: changes in operator-related views #5411

Merged
merged 4 commits into from
Sep 29, 2022

Conversation

antgamdia
Copy link
Contributor

Description of the change

Before start adding deep changes to the deployment form, this PR is extracting those views related to operators (which will get refactored once we encapsulate the operators as a plugin) and aligning the views to the new "in-line diff editor".

Therefore, the old (and pretty unmaintained) Differential component, has been removed in these views (but they have not in the non-operators ones for now).

Also, adding a couple of minor changes in the utility functions.

Benefits

The non-operator-related views can be now safely modified in subsequent PRs.

Possible drawbacks

N/A

Applicable issues

Additional information

I'll be stacking more PRs on top of this one.

image

…nstead

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
@netlify
Copy link

netlify bot commented Sep 29, 2022

Deploy Preview for kubeapps-dev canceled.

Name Link
🔨 Latest commit 735bf3f
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/6335759d2fd79a0008483190

@@ -4,9 +4,9 @@
import Ajv, { ErrorObject, JSONSchemaType } from "ajv";
import * as jsonpatch from "fast-json-patch";
import * as yaml from "js-yaml";
import { isEmpty, set } from "lodash";
import _ from "lodash";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why using _ instead of importing the needed functions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, we should import them explicitly (see this benchmark). I just added some ongoing changes in my working branch, where I just used the usual _ import for lodash, but we should decrease the bundle size when possible. Thanks!

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Copy link
Collaborator

@castelblanque castelblanque left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@antgamdia antgamdia merged commit 554d0db into main Sep 29, 2022
@antgamdia antgamdia deleted the 4396-operators-view branch September 29, 2022 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants