-
Notifications
You must be signed in to change notification settings - Fork 44
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
Update actions menu after start/stop detector action for the selected detector #895
Update actions menu after start/stop detector action for the selected detector #895
Conversation
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #895 +/- ##
==========================================
- Coverage 31.05% 31.04% -0.01%
==========================================
Files 157 157
Lines 5230 5234 +4
Branches 981 982 +1
==========================================
+ Hits 1624 1625 +1
- Misses 3419 3422 +3
Partials 187 187 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add unit/integ test to verify behaviour of success from stop > start, start > stop and failure on start or stop?
Yes working on adding tests |
…u-after-action-detectors-table
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Added cypress test for the toggle button |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good. Approving assuming CI passes.
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
… detector (#895) * updated selected items state after action Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> * added cypress test for detector toggle action Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> * simplified code Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> --------- Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> (cherry picked from commit 8e2ae0a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… detector (#895) * updated selected items state after action Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> * added cypress test for detector toggle action Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> * simplified code Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> --------- Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> (cherry picked from commit 8e2ae0a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… detector (#895) * updated selected items state after action Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> * added cypress test for detector toggle action Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> * simplified code Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> --------- Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> (cherry picked from commit 8e2ae0a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
… detector (#895) (#928) * updated selected items state after action * added cypress test for detector toggle action * simplified code --------- (cherry picked from commit 8e2ae0a) 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> Co-authored-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
… detector (#895) * updated selected items state after action Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> * added cypress test for detector toggle action Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> * simplified code Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> --------- Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> (cherry picked from commit 8e2ae0a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…or the selected detector (#957) * Update actions menu after start/stop detector action for the selected detector (#895) * updated selected items state after action Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> * added cypress test for detector toggle action Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> * simplified code Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> --------- Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> (cherry picked from commit 8e2ae0a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fixed cypress tests Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> --------- 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> Co-authored-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
…for the selected detector (#930) * Update actions menu after start/stop detector action for the selected detector (#895) * updated selected items state after action Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> * added cypress test for detector toggle action Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> * simplified code Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> --------- Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> (cherry picked from commit 8e2ae0a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fixed cypress test Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com> --------- 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> Co-authored-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Description
When a detector is stopped using the action menu in the Detectors table, the action menu does not update for the selected item i.e. the menu item still says
Stop detector
even though the detector is stopped.This PR fixes the issue by updating the selected items state maintained in the Detectors components after the action is complete and we load the updated list of detectors.
Check List
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.