Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.

Remove most references to shared/ResourceRef#3887

Merged
absoludity merged 7 commits into
masterfrom
3779-dashboard-3-deletion-1
Dec 3, 2021
Merged

Remove most references to shared/ResourceRef#3887
absoludity merged 7 commits into
masterfrom
3779-dashboard-3-deletion-1

Conversation

@absoludity
Copy link
Copy Markdown
Contributor

Description of the change

When the dashboard was handling the fetching of resources directly from the k8s api server, it needed to also keep state about whether resources were namespaced, url endpoints for the resources and a bunch of other book-keeping. This is no longer necessary for the dashboard.

This PR begins the work of extracting the ResourceRef model, by removing it from the AppView and corresponding components/containers, and doing a drop-in replacement with the simpler generated ResourceRef from our protobuf message.

Benefits

Less code to maintain, simpler dashboard.

Possible drawbacks

Applicable issues

Additional information

Copy link
Copy Markdown
Contributor

@antgamdia antgamdia left a comment

Choose a reason for hiding this comment

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

Excellent!! It's great we are removing so much logic from the UI. Now it looks much better! Thanks for the clean-up!

@@ -22,10 +19,4 @@ function mapStateToProps({ kube }: IStoreState, props: IAccessURLTableContainerP
};
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not necessarily in this PR, but we should also get rid of the xxxxContainer.tsx in favor of just using react hooks, especially, now we have removed more logic

@absoludity absoludity force-pushed the 3779-dashboard-2-appview branch from 79bd8a4 to ab8ef43 Compare December 2, 2021 19:19
Base automatically changed from 3779-dashboard-2-appview to master December 3, 2021 03:16
Signed-off-by: Michael Nelson <minelson@vmware.com>
Signed-off-by: Michael Nelson <minelson@vmware.com>
Signed-off-by: Michael Nelson <minelson@vmware.com>
Signed-off-by: Michael Nelson <minelson@vmware.com>
Signed-off-by: Michael Nelson <minelson@vmware.com>
Signed-off-by: Michael Nelson <minelson@vmware.com>
@absoludity absoludity force-pushed the 3779-dashboard-3-deletion-1 branch from da886ee to c1e2820 Compare December 3, 2021 03:19
* Extract more unused actions.

Signed-off-by: Michael Nelson <minelson@vmware.com>

* Prettier

Signed-off-by: Michael Nelson <minelson@vmware.com>

* Remove no-longer-used test code.

Signed-off-by: Michael Nelson <minelson@vmware.com>
@absoludity absoludity merged commit 6afeba1 into master Dec 3, 2021
@absoludity absoludity deleted the 3779-dashboard-3-deletion-1 branch December 3, 2021 04:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants