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 configuration section for exporter and delete_after #53

Merged
merged 4 commits into from
Jan 27, 2025

Conversation

ansjcy
Copy link
Member

@ansjcy ansjcy commented Jan 18, 2025

Description

This PR adds configuration panels for

image
  • when exporter disabled, delete_after days should also be disabled
image

Issues Resolved

#47

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.

@ansjcy ansjcy force-pushed the exporter-configuration-section branch 2 times, most recently from 51da3cf to 4463e18 Compare January 22, 2025 00:08
@dzane17
Copy link
Collaborator

dzane17 commented Jan 22, 2025

Do we need to show delete after status in the right side menu? When would the setting be disabled? The value is always 1-180. We could display that instead.

<h3>Delete After (days)</h3>
</EuiText>
<EuiText size="xs" style={textPadding}>
Delete the Query Insights data after certain days.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Something like Number of days to retain local index data

Copy link
Collaborator

Choose a reason for hiding this comment

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

Agree, might make more sense to display the number of days. If disabled, it seems like there is no retention period to the user which might not be the case.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Might be good to get UX feedback on this

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated based on UX feedback

Signed-off-by: Chenyang Ji <cyji@amazon.com>
Signed-off-by: Chenyang Ji <cyji@amazon.com>
Signed-off-by: Chenyang Ji <cyji@amazon.com>
@ansjcy ansjcy force-pushed the exporter-configuration-section branch 2 times, most recently from 0649155 to d071664 Compare January 27, 2025 21:03
@ansjcy ansjcy changed the title [WIP] Add configuration section for exporter and delete_after Add configuration section for exporter and delete_after Jan 27, 2025
Signed-off-by: Chenyang Ji <cyji@amazon.com>
@ansjcy ansjcy force-pushed the exporter-configuration-section branch from d071664 to 0da54ee Compare January 27, 2025 21:07
Copy link
Collaborator

@deshsidd deshsidd left a comment

Choose a reason for hiding this comment

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

LGTM. Nice work!

@@ -23,7 +23,10 @@ describe('Query Group Details Page', () => {
// waiting for the query insights queue to drain
cy.wait(10000);
cy.navigateToOverview();
cy.get('.euiTableRow').first().find('button').first().trigger('mouseover');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we need this?

@ansjcy ansjcy merged commit 9f955a0 into opensearch-project:main Jan 27, 2025
8 of 9 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 27, 2025
* Add configuration section for exporter and delete_after

Signed-off-by: Chenyang Ji <cyji@amazon.com>

* rebase from main and refactor functions

Signed-off-by: Chenyang Ji <cyji@amazon.com>

* exporter configruation pannels

Signed-off-by: Chenyang Ji <cyji@amazon.com>

* rebase main to pick up MDS changes

Signed-off-by: Chenyang Ji <cyji@amazon.com>

---------

Signed-off-by: Chenyang Ji <cyji@amazon.com>
(cherry picked from commit 9f955a0)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
ansjcy pushed a commit that referenced this pull request Jan 27, 2025
* Add configuration section for exporter and delete_after



* rebase from main and refactor functions



* exporter configruation pannels



* rebase main to pick up MDS changes



---------


(cherry picked from commit 9f955a0)

Signed-off-by: Chenyang Ji <cyji@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants