persistable state migrations#103680
Merged
ppisljar merged 8 commits intoelastic:masterfrom Jul 7, 2021
Merged
Conversation
dfe4987 to
dfecf0e
Compare
dfecf0e to
57ff3c8
Compare
851df39 to
82401dc
Compare
streamich
reviewed
Jul 6, 2021
Contributor
streamich
left a comment
There was a problem hiding this comment.
Not sure I understand exactly what is happening in this PR, let's Zoom on this.
Contributor
streamich
approved these changes
Jul 6, 2021
Contributor
streamich
left a comment
There was a problem hiding this comment.
LGTM, checked that Lens visualizations can migrate from 7.12 to latest.
# Conflicts: # src/plugins/kibana_utils/common/persistable_state/index.ts
# Conflicts: # src/plugins/kibana_utils/common/persistable_state/index.ts
clintandrewhall
approved these changes
Jul 6, 2021
Contributor
clintandrewhall
left a comment
There was a problem hiding this comment.
Approving to unblock from @elastic/kibana-presentation
src/plugins/dashboard/server/saved_objects/dashboard_migrations.ts
Outdated
Show resolved
Hide resolved
Contributor
Author
|
@elasticmachine merge upstream |
Contributor
💚 Build SucceededMetrics [docs]Module Count
Public APIs missing comments
Page load bundle
Unknown metric groupsAPI count
History
To update your PR or re-run it, just comment with: |
ppisljar
added a commit
to ppisljar/kibana
that referenced
this pull request
Jul 7, 2021
ppisljar
added a commit
that referenced
this pull request
Jul 7, 2021
jloleysens
added a commit
to jloleysens/kibana
that referenced
this pull request
Jul 8, 2021
…-of-max-results * 'master' of github.com:elastic/kibana: (36 commits) Lower Kibana app bundle limits (elastic#104688) [Security Solutions] Fixes bug with the filter query compatibility for transforms (elastic#104559) [RAC] Add mapping update logic to RuleDataClient (elastic#102586) Fix import workpad (elastic#104722) [canvas] Fix Storybook service decorator (elastic#104750) [Detection Rules] Add 7.14 rules (elastic#104772) [Enterprise Search] Fix beta notification in sidebar (elastic#104763) Fix engine routes that are meta engine or non-meta-engine specific (elastic#104757) [Fleet] Fix policy revision number getting bumped for no reason (elastic#104696) persistable state migrations (elastic#103680) [Fleet] Fix add agent in the package policy table (elastic#104749) [DOCS] Creates separate doc for security in production (elastic#103973) [SO Migration] fix reindex race on multi-instance mode (elastic#104516) [Security Solution] Update text in Endpoint Admin pages (elastic#104649) [package testing] Decrease timeout to 2 hours (elastic#104668) Fix background styling of waterfall chart sidebar tooltip. (elastic#103997) [Fleet + Integrations UI] Integrations UI Cleanup (elastic#104641) [Fleet] Link to download page of current stack version on Agent install instructions (elastic#104494) [Workplace Search] Fix Media Type field preview is unformatted bug (elastic#104684) [ML] add marker body (elastic#104672) ... # Conflicts: # x-pack/plugins/fleet/public/search_provider.test.ts
3 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary
Embeddable exposed
getMigrationVersionswhich returned list of versions that have a migration registered.This PR replaces that with
getAllMigrationsfunction on PersistableStateService that should return an object with all versions for which migrations exist mapped to an actual migration function for that verison.This makes it much easier to consume migrations. Example was added as well to embeddable examples plugin.
Checklist
Delete any items that are not applicable to this PR.
For maintainers