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

remove button toggle and add stop button #623

Merged
merged 2 commits into from
Apr 6, 2022

Conversation

kavithacm
Copy link
Collaborator

Signed-off-by: Kavitha Conjeevaram Mohan [email protected]

Description

Replace EUI Button toggle with EUI button and add new stop button

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.

Signed-off-by: Kavitha Conjeevaram Mohan <[email protected]>
@kavithacm kavithacm requested a review from a team as a code owner April 5, 2022 22:28
@codecov-commenter
Copy link

codecov-commenter commented Apr 5, 2022

Codecov Report

Merging #623 (682e8a0) into main (94035bb) will increase coverage by 0.00%.
The diff coverage is 66.66%.

@@            Coverage Diff            @@
##               main     #623   +/-   ##
=========================================
  Coverage     54.70%   54.71%           
  Complexity      283      283           
=========================================
  Files           240      240           
  Lines          7778     7781    +3     
  Branches       1634     1636    +2     
=========================================
+ Hits           4255     4257    +2     
- Misses         3349     3350    +1     
  Partials        174      174           
Flag Coverage Δ
dashboards-observability 46.33% <66.66%> (+0.01%) ⬆️
opensearch-observability 76.60% <ø> (ø)

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

Impacted Files Coverage Δ
...ability/public/components/common/search/search.tsx 51.21% <66.66%> (+1.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 94035bb...682e8a0. Read the comment docs.

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.

Question: do we need to update cypress tests/jest tests, and update snapshots for these changes?

@kavithacm
Copy link
Collaborator Author

Question: do we need to update cypress tests/jest tests, and update snapshots for these changes?

oh yes, a small change is required in cypress. i'll update it

@kavithacm kavithacm marked this pull request as draft April 5, 2022 22:47
Signed-off-by: Kavitha Conjeevaram Mohan <[email protected]>
@kavithacm kavithacm marked this pull request as ready for review April 6, 2022 00:21
@kavithacm kavithacm requested a review from a team April 6, 2022 00:21
@@ -400,7 +400,6 @@ describe('Switch on and off livetail', () => {
cy.wait(delay * 2);
cy.get('.euiToastHeader__title').contains('On').should('exist');

cy.get('[data-test-subj=eventLiveTail]').click();
Copy link
Member

Choose a reason for hiding this comment

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

Why was this removed from cypress? Don't we switch on the live tail for cypress?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i removed stop as an option from popover elements and kept it as a separate button, so removed this

setIsLiveTailOn(false);
setLiveHits(0);
setIsLiveTailPopoverOpen(false);
if (isLiveTailOnRef.current) setToast('Live tail Off', 'danger');
Copy link
Member

Choose a reason for hiding this comment

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

Question: does this needs to be a red colored toast. Would this give an erroneous impression to users?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this was a change proposed by David to change it to red so that it would be different from the On toast message

Copy link
Member

@ps48 ps48 left a comment

Choose a reason for hiding this comment

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

Minor edits.

@kavithacm kavithacm merged commit b216cdd into opensearch-project:main Apr 6, 2022
@kavithacm kavithacm deleted the change-toggle-stop branch April 6, 2022 16:22
eugenesk24 pushed a commit to eugenesk24/trace-analytics that referenced this pull request Jun 6, 2022
* remove button toggle and add stop button

Signed-off-by: Kavitha Conjeevaram Mohan <[email protected]>

* update cypress

Signed-off-by: Kavitha Conjeevaram Mohan <[email protected]>
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.

4 participants