-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Remove lab stage for visualizations #25702
Conversation
Pinging @elastic/kibana-app |
💔 Build Failed |
Jenkins, test this |
💚 Build Succeeded |
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.
overall code LGTM, just had two small notes
@@ -50,23 +50,6 @@ export default ({ getService, getPageObjects }) => { | |||
expect(await info.getVisibleText()).to.contain('experimental'); | |||
}); | |||
|
|||
it('should show an notification when creating lab visualizations', async () => { | |||
// Try to find a lab visualization. | |||
const labTypes = await PageObjects.visualize.getLabTypeLinks(); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Co-Authored-By: timroes <[email protected]>
💚 Build Succeeded |
💚 Build Succeeded |
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.
Code LGTM. Also checked with Tim that the saved-object-finder directive would work correctly using saved objects from previous versions: the type.stage
field is applied after loading the saved object so no conflict between lab and experimental happens here.
I've left just a minor minor minor detail comment :)
if (type.stage === 'lab') { | ||
prefix = '(Lab)'; | ||
} else if (type.stage === 'experimental') { | ||
if (type.stage === 'experimental') { | ||
prefix = '(Experimental)'; | ||
} | ||
return `${prefix} ${type.description}`; |
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.
This will always have an empty space
if there is no prefix.
What about writing something like this:
if(type.stage === 'experimental'){
return `(Experimental) ${type.description}`;
} else {
return type.description;
}
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 will ignore your comment for now, since all of that code is already removed in #23833 :-)
* Remove lab stage for visualizations * Fix typo Co-Authored-By: timroes <[email protected]> * Remove dead code
* Remove lab stage for visualizations * Fix typo Co-Authored-By: timroes <[email protected]> * Remove dead code
Summary
This PR removes the
lab
stage of visualizations who was initially only introduced so that TSVB can live in it's ownexperimental
stage, that can't be disabled via the advanced settings.This PR now removes
lab
as a stage and instead makesexperimental
the stage, that can be disabled via advanced settings. We don't change the settingid
(but the description and name), so existing settings, provisioning scripts, etc. won't break.Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.[ ] This was checked for cross-browser compatibility, including a check against IE11[ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support[ ] Documentation was added for features that require explanation or tutorials[ ] Unit or functional tests were updated or added to match the most common scenarios[ ] This was checked for keyboard-only and screenreader accessibilityFor maintainers
Dev Docs
Removal of
lab
stage for visualizationsWe removed the
lab
stage for visualizations. Theexperimental
stage is now the only non production stage available, and the one affected by the advanced setting to disable experimental visualizations.Please just change a
stage: 'lab'
in your custom vis type tostage: 'experimental'
, to mark it as non production-ready/experimental.