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

Feature : Move Date Histogram to dimensions #3

Closed
wants to merge 2 commits into from

Conversation

harshada8989
Copy link
Owner

@harshada8989 harshada8989 commented Oct 14, 2022

Signed-off-by: harshada.lingayat [email protected]

Description

Moving the date histogram section inside dimensions panel where it will only render when any timestamp field is selected in dimensions and once it is selected timestamp option will be removed from the dimensions dropdown

Issues Resolved

opensearch-project#1079
opensearch-project#1141

image

Comment on lines +143 to +145
const arr = [...list[name]];
arr.splice(index, 1);
list = { ...list, [name]: arr };
Copy link
Collaborator

Choose a reason for hiding this comment

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

Take this as a future task to create an utility function to insert item at a specific position. I see this type of code so many times, those can be updated with this utility function. Make sure to de-structure the elements inside the function and not while calling it. You call the function with an array and the function is going to return you a new array using the supplied list.

Copy link
Owner Author

Choose a reason for hiding this comment

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

will take it in next PR and change all across the code where same logic has been implemented

@harshada8989 harshada8989 force-pushed the feature/Move-DateHistogram branch from 4a11c6e to ae71080 Compare October 17, 2022 15:03
Signed-off-by: harshada.lingayat <[email protected]>
Signed-off-by: harshada.lingayat <[email protected]>
@harshada8989 harshada8989 force-pushed the feature/Move-DateHistogram branch from ae71080 to af0579e Compare October 17, 2022 15:29
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