You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Dashboard used to be in charge of extracting and injecting references for any panel which could be by reference. It did this by creating a reference for each panel which had a savedObjectId as part of its embeddable config. Because the Dashboard took care of this reference, the individual embeddable types never managed this reference for themselves, which was a piece of tech debt that limited how an Embeddable could be by reference.
After #176455, React Embeddables (the new Embeddable framework) will be able to extract and inject their own references. If one had a savedObjectId as part of their state, the Dashboard would attempt to create a saved object reference from it, even if the React Embeddable had already created and returned one. This could result in duplication and undefined behaviour. To prevent this, this PR moves the saved object reference injection and extraction into the inject and extract methods of each individual Embeddable type that can be by reference.
[job][logs] FTR Configs #79 / Agent policies fleet_agent_policies POST /api/fleet/agent_policies/{agentPolicyId}/copy should work with package policy with space in name
[job][logs] FTR Configs #79 / Agent policies fleet_agent_policies POST /api/fleet/agent_policies/{agentPolicyId}/copy should work with package policy with space in name
[job][logs] FTR Configs #96 / apis saved_objects import with basic data existing should return 200 when conflicts exist but overwrite is passed in
[job][logs] FTR Configs #96 / apis saved_objects import with basic data existing should return 200 when conflicts exist but overwrite is passed in
[job][logs] x-pack/test/cloud_security_posture_functional/config.ts / Cloud Security Posture Cloud Posture Rules Page "before each" hook for "Shows posture score when there are findings"
[job][logs] Jest Tests #3 / dashboard 7.11.0 - embeddable persistable state extraction should migrate 7.3.0 doc and extract embeddable state
[job][logs] Jest Tests #3 / dashboard 7.11.0 - embeddable persistable state extraction should migrate 7.3.0 doc and extract embeddable state
[job][logs] Jest Tests #3 / dashboard 7.11.0 - embeddable persistable state extraction should migrate 7.3.0 doc without embeddable state to extract
[job][logs] Jest Tests #3 / dashboard 7.11.0 - embeddable persistable state extraction should migrate 7.3.0 doc without embeddable state to extract
[job][logs] FTR Configs #23 / dashboard Export import saved objects between versions should render all panels on the dashboard
[job][logs] FTR Configs #23 / dashboard Export import saved objects between versions should render all panels on the dashboard
[job][logs] FTR Configs #5 / dashboard Reporting Dashboard Reporting Screenshots Print Layout downloads a PDF file
[job][logs] FTR Configs #5 / dashboard Reporting Dashboard Reporting Screenshots Print Layout downloads a PDF file
[job][logs] FTR Configs #60 / EPM Endpoints EPM - get returns correct package info if it was installed by upload
[job][logs] FTR Configs #60 / EPM Endpoints EPM - get returns correct package info if it was installed by upload
[job][logs] Jest Tests #3 / extractReferences extracts references from panelsJSON
[job][logs] Jest Tests #3 / extractReferences extracts references from panelsJSON
[job][logs] Jest Tests #3 / inject/extract by reference panel should extract the saved object panel
[job][logs] Jest Tests #3 / inject/extract by reference panel should extract the saved object panel
[job][logs] Jest Tests #3 / inject/extract by reference panel should inject the extracted saved object panel
[job][logs] Jest Tests #3 / inject/extract by reference panel should inject the extracted saved object panel
[job][logs] Jest Tests #3 / injectReferences fails when it can't find the reference in the array
[job][logs] Jest Tests #3 / injectReferences fails when it can't find the reference in the array
[job][logs] Jest Tests #3 / injectReferences returns injected attributes
[job][logs] Jest Tests #3 / injectReferences returns injected attributes
[job][logs] Jest Tests #3 / injectReferences skips a panel when panelRefName is missing
[job][logs] Jest Tests #3 / injectReferences skips a panel when panelRefName is missing
[job][logs] FTR Configs #78 / Machine Learning modules module setup sets up module data for apache_ecs with prefix, startDatafeed true and estimateModelMemory true
[job][logs] FTR Configs #78 / Machine Learning modules module setup sets up module data for apache_ecs with prefix, startDatafeed true and estimateModelMemory true
[job][logs] FTR Configs #12 / maps app embeddable tooltip filter actions apply filter to current view "before all" hook for "should display create filter button when tooltip is locked"
[job][logs] FTR Configs #12 / maps app embeddable tooltip filter actions apply filter to current view "before all" hook for "should display create filter button when tooltip is locked"
[job][logs] Jest Integration Tests #2 / migrating from 7.3.0-xpack which used v1 migrations copies all the document of the previous index to the new one
[job][logs] Jest Integration Tests #2 / migrating from 7.3.0-xpack which used v1 migrations copies all the document of the previous index to the new one
[job][logs] Jest Integration Tests #2 / migrating from 7.3.0-xpack which used v1 migrations creates the new index and the correct aliases
[job][logs] Jest Integration Tests #2 / migrating from 7.3.0-xpack which used v1 migrations creates the new index and the correct aliases
[job][logs] Jest Integration Tests #2 / migrating from 7.3.0-xpack which used v1 migrations migrates the documents to the highest version
[job][logs] Jest Integration Tests #2 / migrating from 7.3.0-xpack which used v1 migrations migrates the documents to the highest version
[job][logs] FTR Configs #69 / Package policies Package Policy - create can only add to hosted agent policies using the force parameter
[job][logs] FTR Configs #69 / Package policies Package Policy - create can only add to hosted agent policies using the force parameter
[job][logs] FTR Configs #52 / Reporting APIs Job parameter validation printablePdfV2 allows width and height to have decimal
[job][logs] FTR Configs #52 / Reporting APIs Job parameter validation printablePdfV2 allows width and height to have decimal
[job][logs] FTR Configs #76 / Reporting Functional Tests with Deprecated Security configuration enabled Security with reporting_user built-in role Dashboard: Download CSV file does not allow user that does not have reporting_user role
[job][logs] FTR Configs #76 / Reporting Functional Tests with Deprecated Security configuration enabled Security with reporting_user built-in role Dashboard: Download CSV file does not allow user that does not have reporting_user role
[job][logs] FTR Configs #87 / Reporting Functional Tests with Security enabled Security with reporting_user built-in role Dashboard: Generate CSV report does not allow user that does not have reporting privileges
[job][logs] FTR Configs #87 / Reporting Functional Tests with Security enabled Security with reporting_user built-in role Dashboard: Generate CSV report does not allow user that does not have reporting privileges
[job][logs] Jest Tests #1 / Should return original state with by-reference embeddable state
[job][logs] Jest Tests #2 / Should return original state with by-reference embeddable state
[job][logs] Jest Tests #1 / Should return original state with by-reference embeddable state
[job][logs] Jest Tests #2 / Should return original state with by-reference embeddable state
[job][logs] Jest Integration Tests #8 / split .kibana index into multiple system indices when migrating from a legacy version performs v1 migration and then relocates saved objects into different indices, depending on their types
[job][logs] Jest Integration Tests #8 / split .kibana index into multiple system indices when migrating from a legacy version performs v1 migration and then relocates saved objects into different indices, depending on their types
[job][logs] Jest Integration Tests #8 / split .kibana index into multiple system indices when multiple Kibana migrators run in parallel correctly migrates 7.7.2_xpack_100k_obj.zip archive
[job][logs] Jest Integration Tests #8 / split .kibana index into multiple system indices when multiple Kibana migrators run in parallel correctly migrates 7.7.2_xpack_100k_obj.zip archive
[job][logs] FTR Configs #31 / Visualize Visualize Reporting Screenshots PNG reports: sample data created in 7.6 "before all" hook for "TSVB Gauge: PNG file matches the baseline image"
[job][logs] FTR Configs #31 / Visualize Visualize Reporting Screenshots PNG reports: sample data created in 7.6 "before all" hook for "TSVB Gauge: PNG file matches the baseline image"
Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
The Dashboard used to be in charge of
extracting
andinjecting
references for any panel which could beby reference
. It did this by creating a reference for each panel which had asavedObjectId
as part of its embeddable config. Because the Dashboard took care of this reference, the individual embeddable types never managed this reference for themselves, which was a piece of tech debt that limited how an Embeddable could beby reference
.After #176455, React Embeddables (the new Embeddable framework) will be able to extract and inject their own references. If one had a
savedObjectId
as part of their state, the Dashboard would attempt to create a saved object reference from it, even if the React Embeddable had already created and returned one. This could result in duplication and undefined behaviour. To prevent this, this PR moves the saved object reference injection and extraction into theinject
andextract
methods of each individual Embeddable type that can be by reference.