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

Add shrink index page #516

Conversation

gaobinlong
Copy link
Contributor

@gaobinlong gaobinlong commented Dec 29, 2022

Signed-off-by: Binlong Gao [email protected]

Description

The main changes of this PR are:

  1. Add shrink index page.
  2. Add unit tests for the change.

Issues Resolved

#468

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Binlong Gao <[email protected]>
@gaobinlong gaobinlong requested a review from a team December 29, 2022 07:44
@codecov-commenter
Copy link

Codecov Report

Merging #516 (4e1cab1) into index-operation-common (f3fb5d9) will increase coverage by 1.10%.
The diff coverage is n/a.

@@                    Coverage Diff                     @@
##           index-operation-common     #516      +/-   ##
==========================================================
+ Coverage                   52.21%   53.32%   +1.10%     
==========================================================
  Files                         219      222       +3     
  Lines                        6885     7078     +193     
  Branches                     1160     1198      +38     
==========================================================
+ Hits                         3595     3774     +179     
- Misses                       3023     3030       +7     
- Partials                      267      274       +7     
Impacted Files Coverage Δ
...ement-dashboards-plugin/public/pages/Main/Main.tsx 7.14% <0.00%> (-0.27%) ⬇️
...pages/CreateIndex/components/AliasSelect/index.tsx 100.00% <0.00%> (ø)
.../ShrinkIndex/container/ShrinkIndex/ShrinkIndex.tsx 86.50% <0.00%> (ø)
...plugin/public/pages/ShrinkIndex/utils/constants.ts 100.00% <0.00%> (ø)
...ds-plugin/public/components/RemoteSelect/index.tsx 86.36% <0.00%> (+2.27%) ⬆️
...onents/FormGenerator/built_in_components/index.tsx 54.16% <0.00%> (+8.33%) ⬆️
...s-plugin/public/components/BetterToolTip/index.tsx 87.50% <0.00%> (+12.50%) ⬆️
...s-plugin/public/components/CustomFormRow/index.tsx 100.00% <0.00%> (+20.00%) ⬆️
...index-management-dashboards-plugin/utils/helper.ts 100.00% <0.00%> (+100.00%) ⬆️
...ards-plugin/public/context/JobSchedulerContext.tsx 100.00% <0.00%> (+100.00%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

if (result && result.ok) {
this.context.notifications.toasts.addSuccess(`${indexName} has been set to block write operations.`);
} else {
const errorMessage = `There is a problem set index setting for ${indexName}, please check with Admin`;
Copy link
Contributor

@amsiglan amsiglan Jan 8, 2023

Choose a reason for hiding this comment

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

There seems to be some typo here
There is a problem set index setting for. Should it be There is a problem when updating index setting for...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, thanks for your review, I'll change it and check the whole file.

@xluo-aws xluo-aws mentioned this pull request Jan 10, 2023
1 task
@gaobinlong
Copy link
Contributor Author

closed by #537

@gaobinlong gaobinlong closed this Jan 11, 2023
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.

3 participants