a7fd3deb73
* Fix error appearing if user leaves Sources page very quickly The issue was that the response from /sources endpoint could came after the user has left the page. Since the user has already left the page, the Sources logic is unmounted, and any code that was using the response couldn't update the value in that logic file and caused an error. Fortunately Kea provides a `breakpoint` API exactly for such cases: https://kea.js.org/docs/guide/additional#breakpoints This commit uses that API to fix the issue. * Fix error appearing after leaving Sources page less quickly This commit solves the same problem, but for the /status endpoint: 1) for the first status call that saves server values to the sources_logic 2) for the subsequent status calls that poll the server for the status updates * Increase test coverage The new test duplicates the test below it, but it doesn't set up initial source statuses. For some reason this case was considered to be covered before, but after seemingly unrelated changes in this PR, the coverage started to show that this code branch was missed. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> |
||
---|---|---|
.. | ||
actions | ||
alerting | ||
apm | ||
banners | ||
canvas | ||
cases | ||
cloud | ||
cross_cluster_replication | ||
dashboard_enhanced | ||
data_enhanced | ||
data_visualizer | ||
discover_enhanced | ||
drilldowns | ||
embeddable_enhanced | ||
encrypted_saved_objects | ||
enterprise_search | ||
event_log | ||
features | ||
file_upload | ||
fleet | ||
global_search | ||
global_search_bar | ||
global_search_providers | ||
graph | ||
grokdebugger | ||
index_lifecycle_management | ||
index_management | ||
infra | ||
ingest_pipelines | ||
lens | ||
license_api_guard | ||
license_management | ||
licensing | ||
lists | ||
logstash | ||
maps | ||
metrics_entities | ||
ml | ||
monitoring | ||
observability | ||
osquery | ||
painless_lab | ||
remote_clusters | ||
reporting | ||
rollup | ||
rule_registry | ||
runtime_fields | ||
saved_objects_tagging | ||
searchprofiler | ||
security | ||
security_solution | ||
snapshot_restore | ||
spaces | ||
stack_alerts | ||
task_manager | ||
telemetry_collection_xpack | ||
timelines | ||
transform | ||
translations | ||
triggers_actions_ui | ||
ui_actions_enhanced | ||
upgrade_assistant | ||
uptime | ||
watcher |