-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Time to Visualize] Enable by Default #88390
[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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) |
@@ -20,7 +20,7 @@ | |||
import { schema, TypeOf } from '@kbn/config-schema'; | |||
|
|||
export const configSchema = schema.object({ | |||
allowByValueEmbeddables: schema.boolean({ defaultValue: false }), | |||
allowByValueEmbeddables: schema.boolean({ defaultValue: true }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic... LGTM! 🚢
Congrats @elastic/kibana-presentation and @ThomThomson and @majagrubic, especially.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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