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

[Reporting] Add Refresh parameter to Delete query #78516

Merged
merged 2 commits into from
Sep 29, 2020

Conversation

tsullivan
Copy link
Member

@tsullivan tsullivan commented Sep 24, 2020

Summary

Problem: When a report is deleted from the listing of reporting jobs in Management, the page immediately runs a followup call to get the latest list of jobs from the server. This allows the listing to remove the item from the list as soon as the user clicks delete, and then immediately get a refreshed state from the server. However, it has been reported that when the page syncs with the server the first time, stale job items still come up in the result and do not go away until the second refresh from the UI.

This PR fixes the problem by causing Elasticsearch to clear the cache of old results after deleting documents. That way, the next time Reporting asks for a list of all the reports, the deleted ones do not appear.

This fixes a problem of the state of the server that the user perceives, and unfortunately for now requires manual testing.

Release note: fixed a problem in the list of Reports jobs in Management would not refresh with the correct items immediately after deleting a report from the listing.

Closes #76543

@tsullivan tsullivan added (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead release_note:fix Team:AppArch v7.10.0 v8.0.0 labels Sep 24, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@tsullivan
Copy link
Member Author

@elasticmachine merge upstream

1 similar comment
@tsullivan
Copy link
Member Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@tsullivan tsullivan merged commit aa9131f into elastic:master Sep 29, 2020
@tsullivan tsullivan deleted the fix/76543 branch September 29, 2020 16:10
tsullivan added a commit to tsullivan/kibana that referenced this pull request Sep 29, 2020
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
tsullivan added a commit that referenced this pull request Sep 29, 2020
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead release_note:fix v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Reporting] Listing of reports doesn't refresh correctly after reports have been deleted
4 participants