[Time to Visualize] Enable by Default#88390
Conversation
b2e353e to
9b596a1
Compare
…ptions to lens page. Added add to library option to savedObjectTagging test
9b596a1 to
b33de6e
Compare
| await label.click(); | ||
|
|
||
| if (dashboardId) { | ||
| // TODO - selecting an existing dashboard |
There was a problem hiding this comment.
I'm a bit confused with the flow here: is the goal to ensure just that the all dashboard selectors exist, without actually adding the Lens visualization to the dashboard?
There was a problem hiding this comment.
as part of #83140, a new selector was added to the visualize save modal to allow users to add by value directly to a dashboard from visualize. That also means that in order to save it to the library, the user needs to select the add to library option on the dashboard selector.
What I've added here is a default path that says 'if the dashboard selection section exists, and we haven't been asked to add it directly to a dashboard, select the add to library option. This prevents a number of test failures - and you can see a similar implementation in the Visualize page.
There was a problem hiding this comment.
What I've added here is a default path that says 'if the dashboard selection section exists, and we haven't been asked to add it directly to a dashboard, select the add to library option. This prevents a number of test failures - and you can see a similar implementation in the Visualize page.
nit: It might be helpful to extract this logic into another helper function that could be pulled into the lens & SO tagging functional tests. It feels like the type of implementation detail that other apps shouldn't necessarily need to concern themselves with when writing tests.
e.g. something like this could potentially be used everywhere:
await saveToNewDashboard();
await saveToExistingDashboard('my-dashboard-id');
await saveToLibrary();|
Pinging @elastic/kibana-presentation (Team:Presentation) |
|
|
||
| export const configSchema = schema.object({ | ||
| allowByValueEmbeddables: schema.boolean({ defaultValue: false }), | ||
| allowByValueEmbeddables: schema.boolean({ defaultValue: true }), |
There was a problem hiding this comment.
Just curious, is the plan to enable this in 7.12 and then delete references to it in 7.13? Or are you also planning for a cleanup for 7.12?
There was a problem hiding this comment.
That's still up in the air - because removing the ability to turn the feature off could constitute a breaking change. Right now the consensus seems to be removing references to it in 8.0.0
There was a problem hiding this comment.
We'll craft a plan to at least deprecate with a warning in 8.0 for removal in a follow-on minor, if not remove outright. It kind of depends on feedback from the field.
There was a problem hiding this comment.
Fantastic... LGTM! 🚢
Congrats @elastic/kibana-presentation and @ThomThomson and @majagrubic, especially.
lukeelmers
left a comment
There was a problem hiding this comment.
Updates to core tests LGTM, just had one suggestion of a possible way to clean things up.
| await label.click(); | ||
|
|
||
| if (dashboardId) { | ||
| // TODO - selecting an existing dashboard |
There was a problem hiding this comment.
What I've added here is a default path that says 'if the dashboard selection section exists, and we haven't been asked to add it directly to a dashboard, select the add to library option. This prevents a number of test failures - and you can see a similar implementation in the Visualize page.
nit: It might be helpful to extract this logic into another helper function that could be pulled into the lens & SO tagging functional tests. It feels like the type of implementation detail that other apps shouldn't necessarily need to concern themselves with when writing tests.
e.g. something like this could potentially be used everywhere:
await saveToNewDashboard();
await saveToExistingDashboard('my-dashboard-id');
await saveToLibrary();
Good call! I've cleaned this up by extracting all of the setting of save modal values into a new function in visualize page. Updated everywhere else it's used to use the new function. |
7a91769 to
068aab1
Compare
|
@elasticmachine merge upstream |
* Enable Time to Visualize by Default
💔 Build Failed
Failed CI StepsMetrics [docs]
History
To update your PR or re-run it, just comment with: |
Summary
A major piece of #51318
Closes #52682
Release Notes: Enable "by value embeddables" (dashboard.allowByValueEmbeddables) by default
All progress on the Time to Visualize project has been hidden behind the flag
dashboard.allowByValueEmbeddables. This PR changes the default value of that config option to true.Documentation will be added in a followup.
Checklist
Delete any items that are not applicable to this PR.
For maintainers