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

[Synthetics] Filtering - location filter counts are off when filter is applied #155437

Merged
merged 3 commits into from
Apr 21, 2023

Conversation

gitstart
Copy link
Contributor

@gitstart gitstart commented Apr 20, 2023

What does this PR do?

This PR fixes an issue where the location count appears incorrect when a filter is applied, but is correct when no filter is applied. The issue has been resolved by updating the logic and taking into account the filter when it is applied.

Issue References

Client: #155214

Loom/Screenshot Demo

  • Fix:
Screen.Recording.2023-04-20.at.13.40.16.mov

This code was written and reviewed by GitStart Community. Growing great engineers, one PR at a time.

…s applied

Co-authored-by: Anjola Adeuyi <57623705+anjola-adeuyi@users.noreply.github.com>
Co-authored-by: gitstart_bot <gitstart_bot@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@gitstart gitstart changed the title ELS-85 - [Synthetics] Filtering - location filter counts are off when filter is applied [Synthetics] Filtering - location filter counts are off when filter is applied Apr 20, 2023
@gitstart gitstart marked this pull request as ready for review April 20, 2023 18:22
@gitstart gitstart requested a review from a team as a code owner April 20, 2023 18:22
@shahzad31 shahzad31 added release_note:skip Skip the PR/issue when compiling release notes v8.8.0 labels Apr 20, 2023
@shahzad31
Copy link
Contributor

buildkite test this

@botelastic botelastic bot added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label Apr 21, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

Copy link
Contributor

@shahzad31 shahzad31 left a comment

Choose a reason for hiding this comment

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

LGTM !!

Pushed a fix for same issue with schedule filtering !!

@shahzad31
Copy link
Contributor

buildkite test this

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
synthetics 1.2MB 1.2MB +102.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
securitySolution 394 397 +3

Total ESLint disabled count

id before after diff
securitySolution 474 477 +3

History

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

@shahzad31 shahzad31 enabled auto-merge (squash) April 21, 2023 12:02
@jeramysoucy
Copy link
Contributor

@elasticmachine run elasticsearch-ci/docs

@shahzad31 shahzad31 merged commit f95ebdf into elastic:main Apr 21, 2023
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Apr 21, 2023
@shahzad31 shahzad31 added v8.7.0 v8.7.2 and removed backport:skip This commit does not require backporting v8.7.0 labels Apr 21, 2023
@shahzad31 shahzad31 added auto-backport Deprecated - use backport:version if exact versions are needed backport:skip This commit does not require backporting and removed auto-backport Deprecated - use backport:version if exact versions are needed labels Apr 21, 2023
@shahzad31
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.7

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

shahzad31 pushed a commit to shahzad31/kibana that referenced this pull request Apr 21, 2023
…s applied (elastic#155437)

Co-authored-by: Anjola Adeuyi <57623705+anjola-adeuyi@users.noreply.github.com>
Co-authored-by: gitstart_bot <gitstart_bot@users.noreply.github.com>
Co-authored-by: shahzad31 <shahzad31comp@gmail.com>
(cherry picked from commit f95ebdf)
@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.7 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.7:
- [Synthetics] Fix filters persistance (#152543)

Manual backport

To create the backport manually run:

node scripts/backport --pr 155437

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

shahzad31 added a commit that referenced this pull request Apr 24, 2023
…lter is applied (#155437) (#155537)

Co-authored-by: Anjola Adeuyi
Co-authored-by: GitStart <1501599+gitstart@users.noreply.github.com>
nikitaindik pushed a commit to nikitaindik/kibana that referenced this pull request Apr 25, 2023
…s applied (elastic#155437)

Co-authored-by: Anjola Adeuyi <57623705+anjola-adeuyi@users.noreply.github.com>
Co-authored-by: gitstart_bot <gitstart_bot@users.noreply.github.com>
Co-authored-by: shahzad31 <shahzad31comp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting 💝community release_note:skip Skip the PR/issue when compiling release notes Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v8.7.1 v8.7.2 v8.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants