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

Cache date time filter in local storage #848

Merged

Conversation

amsiglan
Copy link
Collaborator

@amsiglan amsiglan commented Jan 3, 2024

Description

This change caches the date time filter set on various pages so that on page refresh we remember it.

Issues Resolved

#731

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: Amardeepsingh Siglani <amardeep7194@gmail.com>
Copy link

codecov bot commented Jan 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0b9016d) 31.02% compared to head (1c94035) 31.04%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #848      +/-   ##
==========================================
+ Coverage   31.02%   31.04%   +0.01%     
==========================================
  Files         157      157              
  Lines        5202     5206       +4     
  Branches      918      919       +1     
==========================================
+ Hits         1614     1616       +2     
- Misses       3401     3403       +2     
  Partials      187      187              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@amsiglan amsiglan added backport 2.x backport 2.6 Used for marking changes that must be merged into 2.6 branch backport 2.7 backport 2.8 backport 2.9 backport 2.10 backport 2.11 PRs to be backported to 2.11 branch labels Jan 4, 2024
Copy link
Collaborator

@AWSHurneyt AWSHurneyt left a comment

Choose a reason for hiding this comment

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

The windows cypress tests are known to be flaky with timeout issues. Rerunning those tests, and approving.

Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
@AWSHurneyt
Copy link
Collaborator

Similar to PR #864, the 3_alerts.spec.js cypress tests are failing due to the maven artifact. See #864 (comment) for more details.

@AWSHurneyt AWSHurneyt merged commit a7c7eef into opensearch-project:main Feb 7, 2024
7 of 9 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 7, 2024
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
(cherry picked from commit a7c7eef)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.6 failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/security-analytics-dashboards-plugin/backport-2.6 2.6
# Navigate to the new working tree
pushd ../.worktrees/security-analytics-dashboards-plugin/backport-2.6
# Create a new branch
git switch --create backport-848-to-2.6
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 a7c7eef809dc870d207dffba16dbd1b45a4a542c
# Push it to GitHub
git push --set-upstream origin backport-848-to-2.6
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/security-analytics-dashboards-plugin/backport-2.6

Then, create a pull request where the base branch is 2.6 and the compare/head branch is backport-848-to-2.6.

@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.7 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/security-analytics-dashboards-plugin/backport-2.7 2.7
# Navigate to the new working tree
pushd ../.worktrees/security-analytics-dashboards-plugin/backport-2.7
# Create a new branch
git switch --create backport-848-to-2.7
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 a7c7eef809dc870d207dffba16dbd1b45a4a542c
# Push it to GitHub
git push --set-upstream origin backport-848-to-2.7
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/security-analytics-dashboards-plugin/backport-2.7

Then, create a pull request where the base branch is 2.7 and the compare/head branch is backport-848-to-2.7.

@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.8 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/security-analytics-dashboards-plugin/backport-2.8 2.8
# Navigate to the new working tree
pushd ../.worktrees/security-analytics-dashboards-plugin/backport-2.8
# Create a new branch
git switch --create backport-848-to-2.8
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 a7c7eef809dc870d207dffba16dbd1b45a4a542c
# Push it to GitHub
git push --set-upstream origin backport-848-to-2.8
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/security-analytics-dashboards-plugin/backport-2.8

Then, create a pull request where the base branch is 2.8 and the compare/head branch is backport-848-to-2.8.

@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.9 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/security-analytics-dashboards-plugin/backport-2.9 2.9
# Navigate to the new working tree
pushd ../.worktrees/security-analytics-dashboards-plugin/backport-2.9
# Create a new branch
git switch --create backport-848-to-2.9
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 a7c7eef809dc870d207dffba16dbd1b45a4a542c
# Push it to GitHub
git push --set-upstream origin backport-848-to-2.9
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/security-analytics-dashboards-plugin/backport-2.9

Then, create a pull request where the base branch is 2.9 and the compare/head branch is backport-848-to-2.9.

@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.10 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/security-analytics-dashboards-plugin/backport-2.10 2.10
# Navigate to the new working tree
pushd ../.worktrees/security-analytics-dashboards-plugin/backport-2.10
# Create a new branch
git switch --create backport-848-to-2.10
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 a7c7eef809dc870d207dffba16dbd1b45a4a542c
# Push it to GitHub
git push --set-upstream origin backport-848-to-2.10
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/security-analytics-dashboards-plugin/backport-2.10

Then, create a pull request where the base branch is 2.10 and the compare/head branch is backport-848-to-2.10.

@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.11 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/security-analytics-dashboards-plugin/backport-2.11 2.11
# Navigate to the new working tree
pushd ../.worktrees/security-analytics-dashboards-plugin/backport-2.11
# Create a new branch
git switch --create backport-848-to-2.11
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 a7c7eef809dc870d207dffba16dbd1b45a4a542c
# Push it to GitHub
git push --set-upstream origin backport-848-to-2.11
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/security-analytics-dashboards-plugin/backport-2.11

Then, create a pull request where the base branch is 2.11 and the compare/head branch is backport-848-to-2.11.

AWSHurneyt pushed a commit that referenced this pull request Feb 7, 2024
(cherry picked from commit a7c7eef)

Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.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
Labels
backport 2.x backport 2.6 Used for marking changes that must be merged into 2.6 branch backport 2.7 backport 2.8 backport 2.9 backport 2.10 backport 2.11 PRs to be backported to 2.11 branch failed backport
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants