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

Sysinfo cleanup #1472

Merged
merged 4 commits into from
Jul 15, 2021
Merged

Sysinfo cleanup #1472

merged 4 commits into from
Jul 15, 2021

Conversation

OskarDamkjaer
Copy link
Contributor

To understand how the :sysinfo frame works, I've refactored and cleaned it up. This PR doesn't intend change any behaviour.

Changes:

  • Add types
  • Renane SysInfoFrame from index.tsx to SysInfoFrame to be searchable and match other frames
  • Remove unused state and props
  • Extract SysinfoTable to it's own component
  • Remove left over cluster handling that should have been removed in use new output of show databases #997

@OskarDamkjaer OskarDamkjaer requested a review from jharris4 July 12, 2021 13:08
@@ -34,27 +47,12 @@ jest.mock(
)

describe('sysinfo component', () => {
test('should render causal cluster table', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the reason for removing this test?

@@ -0,0 +1,205 @@
/*
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we perhaps use git commands to rename this file? As it stands now, it looks like we'll lose the commit history on this file after it was renamed...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking a single commit that only renamed would be enough, I'll try git mv!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seems to me from this stack overflow thread it doesn't matter if I use git mv instead? https://stackoverflow.com/questions/2314652/is-it-possible-to-move-rename-files-in-git-and-maintain-their-history

@@ -236,41 +236,3 @@ export const responseHandler = (setState: any) =>
success: true
})
}

export const clusterResponseHandler = (setState: any) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

None of this cluster code was used? We should probably check that things are working properly with a server cluster... :-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the PR description I've linked the PR that motivated this change :)

@OskarDamkjaer OskarDamkjaer requested a review from jharris4 July 15, 2021 08:29
Copy link
Contributor

@jharris4 jharris4 left a comment

Choose a reason for hiding this comment

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

LGTM

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 this pull request may close these issues.

2 participants