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

UI - Enhance application typing - kubernetes client and reducers #2999

Closed
JBWatenbergScality opened this issue Dec 24, 2020 · 0 comments · Fixed by #3002
Closed

UI - Enhance application typing - kubernetes client and reducers #2999

JBWatenbergScality opened this issue Dec 24, 2020 · 0 comments · Fixed by #3002

Comments

@JBWatenbergScality
Copy link
Contributor

JBWatenbergScality commented Dec 24, 2020

Component:

UI, typing

Why this is needed:

This brings typesafety and enhanced developer experience to the project.

What should be done:

  • Add type definitions to ui/src/services/k8s/api.js
  • Add type definitions to ui/src/ducks/reducer.js
  • Type useSelector when it is being used with useSelector<RootState> or simply useTypedSelector

Test plan:

Run flow cli to ensure typing is correctly interpreted, navigate through the code base in your IDE and see if all references to kubernetes objects are correctly typed

JBWatenbergScality added a commit that referenced this issue Dec 24, 2020
JBWatenbergScality added a commit that referenced this issue Dec 24, 2020
JBWatenbergScality added a commit that referenced this issue Dec 24, 2020
JBWatenbergScality added a commit that referenced this issue Dec 24, 2020
JBWatenbergScality added a commit that referenced this issue Dec 24, 2020
JBWatenbergScality added a commit that referenced this issue Dec 24, 2020
JBWatenbergScality added a commit that referenced this issue Dec 24, 2020
JBWatenbergScality added a commit that referenced this issue Dec 24, 2020
JBWatenbergScality added a commit that referenced this issue Dec 24, 2020
JBWatenbergScality added a commit that referenced this issue Dec 24, 2020
JBWatenbergScality added a commit that referenced this issue Dec 29, 2020
JBWatenbergScality added a commit that referenced this issue Dec 29, 2020
JBWatenbergScality added a commit that referenced this issue Dec 29, 2020
JBWatenbergScality added a commit that referenced this issue Dec 29, 2020
JBWatenbergScality added a commit that referenced this issue Dec 29, 2020
JBWatenbergScality added a commit that referenced this issue Dec 29, 2020
JBWatenbergScality added a commit that referenced this issue Dec 29, 2020
JBWatenbergScality added a commit that referenced this issue Jan 8, 2021
JBWatenbergScality added a commit that referenced this issue Jan 8, 2021
JBWatenbergScality added a commit that referenced this issue Jan 8, 2021
JBWatenbergScality added a commit that referenced this issue Jan 8, 2021
JBWatenbergScality added a commit that referenced this issue Jan 8, 2021
JBWatenbergScality added a commit that referenced this issue Jan 8, 2021
JBWatenbergScality added a commit that referenced this issue Jan 8, 2021
JBWatenbergScality added a commit that referenced this issue Jan 8, 2021
JBWatenbergScality added a commit that referenced this issue Jan 8, 2021
JBWatenbergScality added a commit that referenced this issue Jan 8, 2021
JBWatenbergScality added a commit that referenced this issue Jan 8, 2021
JBWatenbergScality added a commit that referenced this issue Jan 8, 2021
JBWatenbergScality added a commit that referenced this issue Jan 8, 2021
JBWatenbergScality added a commit that referenced this issue Jan 8, 2021
The goal of this commit is to introduce a generator of a client based upon `@kubernetes/client` custom objects client from kubernetes `CustomResourceDefinition`.

The idea behind this is to have always up to date types definition for our custom resource definition and be in sync with the json schema contained within those definitions.

Refs: #2999
JBWatenbergScality added a commit that referenced this issue Jan 13, 2021
JBWatenbergScality added a commit that referenced this issue Jan 13, 2021
JBWatenbergScality added a commit that referenced this issue Jan 13, 2021
JBWatenbergScality added a commit that referenced this issue Jan 13, 2021
JBWatenbergScality added a commit that referenced this issue Jan 13, 2021
JBWatenbergScality added a commit that referenced this issue Jan 13, 2021
The goal of this commit is to introduce a generator of a client based upon `@kubernetes/client` custom objects client from kubernetes `CustomResourceDefinition`.

The idea behind this is to have always up to date types definition for our custom resource definition and be in sync with the json schema contained within those definitions.

Refs: #2999
JBWatenbergScality added a commit that referenced this issue Jan 18, 2021
JBWatenbergScality added a commit that referenced this issue Jan 18, 2021
JBWatenbergScality added a commit that referenced this issue Jan 18, 2021
JBWatenbergScality added a commit that referenced this issue Jan 18, 2021
JBWatenbergScality added a commit that referenced this issue Jan 18, 2021
JBWatenbergScality added a commit that referenced this issue Jan 18, 2021
The goal of this commit is to introduce a generator of a client based upon `@kubernetes/client` custom objects client from kubernetes `CustomResourceDefinition`.

The idea behind this is to have always up to date types definition for our custom resource definition and be in sync with the json schema contained within those definitions.

Refs: #2999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant