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

Cleanup dependentStores #4089

Merged
merged 1 commit into from
Oct 20, 2021
Merged

Cleanup dependentStores #4089

merged 1 commit into from
Oct 20, 2021

Conversation

nevalla
Copy link
Contributor

@nevalla nevalla commented Oct 20, 2021

This PR removes unnecessary dependent stores from workload list components.

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
@nevalla nevalla requested a review from a team as a code owner October 20, 2021 08:58
@nevalla nevalla requested review from Nokel81 and aleksfront and removed request for a team October 20, 2021 08:58
@nevalla nevalla added this to the 5.3.0 milestone Oct 20, 2021
Copy link
Contributor

@aleksfront aleksfront left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@Nokel81 Nokel81 left a comment

Choose a reason for hiding this comment

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

I am requesting changes so we can discuss this a bit more

@@ -79,7 +76,7 @@ export class Deployments extends React.Component<Props> {
isConfigurable
tableId="workload_deployments"
className="Deployments" store={deploymentStore}
dependentStores={[replicaSetStore, podsStore, nodesStore, eventStore]}
Copy link
Collaborator

Choose a reason for hiding this comment

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

So looking at it, we actually do use podsStore and replicaSetStore in DeploymentDetails (though that component calls reloadAll() for some reason. I think it would be better to remove that reload calls instead.

Copy link
Contributor Author

@nevalla nevalla Oct 20, 2021

Choose a reason for hiding this comment

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

User can navigate to Deployment details elsewhere too.

Copy link
Collaborator

Choose a reason for hiding this comment

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

okay fair enough

@Nokel81 Nokel81 merged commit 3d72db6 into master Oct 20, 2021
@Nokel81 Nokel81 deleted the cleanup-dependent-stores branch October 20, 2021 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants