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

[Watcher] Update skipped jests tests #88225

Merged
merged 2 commits into from
Jan 14, 2021

Conversation

alisonelizabeth
Copy link
Contributor

@alisonelizabeth alisonelizabeth commented Jan 13, 2021

Fixes #87691

Some of the watcher tests were recently converted to jest via #87599. As part of that work, it was revealed that not all tests had been running in CI previously. Some of the tests were failing as-is and skipped. This PR addresses any issues and all watcher jest tests should be running now.

@alisonelizabeth alisonelizabeth added chore Feature:Watcher v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.12.0 labels Jan 13, 2021
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@@ -119,7 +119,7 @@ export class WatchStatus {
}

get lastFired() {
const actionStatus = max(this.actionStatuses, 'lastExecution');
const actionStatus = maxBy(this.actionStatuses, 'lastExecution');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This appears to be an actual bug that the test caught. I don't see how this was working before based on the lodash documentation.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice it got caught 👍

@alisonelizabeth alisonelizabeth marked this pull request as ready for review January 14, 2021 02:27
@alisonelizabeth alisonelizabeth requested a review from a team as a code owner January 14, 2021 02:27
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

Copy link
Contributor

@sebelga sebelga left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for fixing those tests @alisonelizabeth !

@@ -119,7 +119,7 @@ export class WatchStatus {
}

get lastFired() {
const actionStatus = max(this.actionStatuses, 'lastExecution');
const actionStatus = maxBy(this.actionStatuses, 'lastExecution');
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice it got caught 👍

@alisonelizabeth alisonelizabeth added the release_note:skip Skip the PR/issue when compiling release notes label Jan 14, 2021
@alisonelizabeth alisonelizabeth merged commit 8678954 into elastic:master Jan 14, 2021
@alisonelizabeth alisonelizabeth deleted the watcher_update_tests branch January 14, 2021 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Feature:Watcher release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Watcher] Update skipped jest tests
4 participants