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

Bug fixes for Policy Managed Indices and Indexes pages #1134

Closed
wants to merge 5 commits into from

Conversation

tandonks
Copy link
Collaborator

@tandonks tandonks commented Aug 20, 2024

Description

This PR achieves 3 things:

  1. Bug fixes in Policy Managed Indices action button
  2. Reverts yarn.lock file changes that went with the previos PR: Update new header for Alias, Index Templates, Policy Managed Indices, Indexes and Transform Jobs #1124
  3. Fixes bug in indexes page

Issues Resolved

[List any issues this PR will resolve]

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.

@@ -435,7 +435,7 @@ export class ManagedIndices extends MDSEnabledComponent<ManagedIndicesProps, Man
showEditModal,
isPopoverOpen,
} = this.state;

console.log(this.context);
Copy link
Member

Choose a reason for hiding this comment

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

console is not accepted.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

Comment on lines +544 to +561
<ModalConsumer>
{({ onShow, onClose }) => (
<EuiContextMenuItem
key="Edit"
toolTipPosition="left"
disabled={selectedItems.length !== 1 || isDataStreamIndexSelected}
data-test-subj="editOption"
onClick={() =>
onShow(RolloverAliasModal, {
index: selectedItems[0].index,
core: this.context,
})
}
>
Edit rollover alias
</EuiContextMenuItem>
)}
</ModalConsumer>,
Copy link
Member

Choose a reason for hiding this comment

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

Any reason we are changing the logic here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There was a bug in that implementation there due to which the button was not working properly, so have fixed that

@@ -14,6 +14,7 @@ import {
EuiOverlayMask,
EuiCodeBlock,
} from "@elastic/eui";
import { size } from "lodash";
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
import { size } from "lodash";

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

@tandonks tandonks changed the title Feel good changes Bug fixes for Policy Managed Indices and Indexes pages and make look and feel good changes Aug 20, 2024
@tandonks tandonks changed the title Bug fixes for Policy Managed Indices and Indexes pages and make look and feel good changes Bug fixes for Policy Managed Indices and Indexes pages Aug 20, 2024
@CaptainDredge
Copy link
Contributor

@tandonks closing this PR since you've opened a new one with required changes

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