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

Cypress v12.8.1 - Remade all Cypress test for visualizations charts #679

Merged
merged 3 commits into from
Jul 18, 2023

Conversation

TackAdam
Copy link
Collaborator

@TackAdam TackAdam commented Jul 14, 2023

Description

[Describe what this change achieves]
Removed Cypress testing for visuals we don't have.
Created Cypress testing for all existing visualization options in explorer.
Screenshot 2023-07-11 at 9 17 26 AM

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • 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.

@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Merging #679 (6c4967f) into main (14ec857) will increase coverage by 0.17%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #679      +/-   ##
==========================================
+ Coverage   43.42%   43.59%   +0.17%     
==========================================
  Files         300      312      +12     
  Lines       18113    18581     +468     
  Branches     4447     4479      +32     
==========================================
+ Hits         7866     8101     +235     
- Misses       9712    10438     +726     
+ Partials      535       42     -493     
Flag Coverage Δ
dashboards-observability 43.59% <ø> (+0.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 94 files with indirect coverage changes

@TackAdam
Copy link
Collaborator Author

Screenshot 2023-07-13 at 2 15 44 PM Screenshot 2023-07-13 at 2 21 28 PM Screenshot 2023-07-13 at 4 36 38 PM Screenshot 2023-07-14 at 1 46 03 PM Screenshot 2023-07-14 at 1 22 34 PM

Copy link
Collaborator

@mengweieric mengweieric left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning up visualization tests

@@ -0,0 +1,210 @@
/*
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the reason to rename/renumber the files?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Was trying to follow the formatting of going in order of the visualizations appearing. After removing the visualizations we don't have I just numbered them in the order they appear in explorer.

'STDDEV_SAMP',
'STDDEV_POP',
];

export const querySearch = (query, rangeSelected) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

As a code hygiene concern, we try to keep constants and functions (helper functions) in separate files.
This separation helps b/c it's easier to scan the files of "like kind" code. The two files might change at different paces (yes, this is testing, both are likely slow-moving files)... the churn could be less with the separation.

Even though a lot of the code in utils/event_analytics/constants.js was pre-existing, this would be a convenient time to re-organize the file (split).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch, separated all helper functions and removed from the constants file.

@TackAdam TackAdam merged commit 5c96cc6 into opensearch-project:main Jul 18, 2023
9 of 10 checks passed
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

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

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-679-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 5c96cc624ddbac6c3427187e45787fde8906a0d3
# Push it to GitHub
git push --set-upstream origin backport/backport-679-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-679-to-2.x.

TackAdam added a commit to TackAdam/dashboards-observability that referenced this pull request Jul 20, 2023
Cypress v12.8.1 - Remade all Cypress test for visualizations charts

(cherry picked from commit 5c96cc6)
Signed-off-by: TackAdam <[email protected]>
YANG-DB pushed a commit that referenced this pull request Jul 20, 2023
Cypress v12.8.1 - Remade all Cypress test for visualizations charts

(cherry picked from commit 5c96cc6)
Signed-off-by: TackAdam <[email protected]>
amsiglan pushed a commit to amsiglan/dashboards-observability that referenced this pull request Jun 7, 2024
…earch-project#729)

Cypress v12.8.1 - Remade all Cypress test for visualizations charts

(cherry picked from commit 5c96cc6)
Signed-off-by: TackAdam <[email protected]>
(cherry picked from commit ebf2c6a)
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.

4 participants