Skip to content

[7.x] Migrate legacy sort arrays on saved searches (#43038)#43234

Merged
Bargs merged 3 commits intoelastic:7.xfrom
Bargs:backport/43038/7.x
Aug 15, 2019
Merged

[7.x] Migrate legacy sort arrays on saved searches (#43038)#43234
Bargs merged 3 commits intoelastic:7.xfrom
Bargs:backport/43038/7.x

Conversation

@Bargs
Copy link
Copy Markdown
Contributor

@Bargs Bargs commented Aug 13, 2019

With my multi sort PR I changed the sort property on saved searches to contain a nested array. Discover and Dashboard were backwards compatible with the old format but it turns out the nested array caused issues for CSV export. Instead of trying to support single and two dimension arrays everywhere, this PR simply adds a migration for saved searches in 7.4 and updates our sample data sets so that we can always expect sort objects to be two dimensional arrays. I also cleaned up the backwards compatibility code in Discover and Dashboard.

With my multi sort PR I changed the sort property on saved searches to contain a nested array. Discover and Dashboard were backwards compatible with the old format but it turns out the nested array caused issues for CSV export. Instead of trying to support single and two dimension arrays everywhere, this PR simply adds a migration for saved searches in 7.4 and updates our sample data sets so that we can always expect sort objects to be two dimensional arrays. I also cleaned up the backwards compatibility code in Discover and Dashboard.
@Bargs Bargs added the backport This PR is a backport of another PR label Aug 13, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@Bargs Bargs merged commit f40aa17 into elastic:7.x Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants