Home plugin extension points addSavedObjectsToSampleDataset and addAppLinksToSampleDataset can be called after start phase which makes the content of getSampleDatasets unpredictable in time.
The plugin should be refactored to enforce strict separation between different lifecycles. This refactoring might require changes in downstream dependencies and proposing an alternative API toolset.
For example, ML plugin calls addAppLinksToSampleDataset after a license check. That's incorrect since a license level can change in time, but a sample data set won't reflect these changes and might contain outdated links.
Home
plugin extension pointsaddSavedObjectsToSampleDataset
andaddAppLinksToSampleDataset
can be called afterstart
phase which makes the content ofgetSampleDatasets
unpredictable in time. The plugin should be refactored to enforce strict separation between different lifecycles. This refactoring might require changes in downstream dependencies and proposing an alternative API toolset. For example,ML
plugin callsaddAppLinksToSampleDataset
after a license check. That's incorrect since a license level can change in time, but asample data set
won't reflect these changes and might contain outdated links.