mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
removes "courier:batchSearches" setting during migration (#122672)
This commit is contained in:
parent
651f623050
commit
872b2f4af0
2 changed files with 27 additions and 0 deletions
|
@ -210,6 +210,31 @@ describe('ui_settings 8.0.0 migrations', () => {
|
|||
migrationVersion: {},
|
||||
});
|
||||
});
|
||||
|
||||
test('removes "courier:batchSearches" setting', () => {
|
||||
const doc = {
|
||||
type: 'config',
|
||||
id: '8.0.0',
|
||||
attributes: {
|
||||
buildNum: 9007199254740991,
|
||||
'courier:batchSearches': true,
|
||||
},
|
||||
references: [],
|
||||
updated_at: '2020-06-09T20:18:20.349Z',
|
||||
migrationVersion: {},
|
||||
};
|
||||
|
||||
expect(migration(doc)).toEqual({
|
||||
type: 'config',
|
||||
id: '8.0.0',
|
||||
attributes: {
|
||||
buildNum: 9007199254740991,
|
||||
},
|
||||
references: [],
|
||||
updated_at: '2020-06-09T20:18:20.349Z',
|
||||
migrationVersion: {},
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('ui_settings 8.1.0 migrations', () => {
|
||||
|
|
|
@ -89,6 +89,8 @@ export const migrations = {
|
|||
'telemetry:optIn',
|
||||
'xPackMonitoring:allowReport',
|
||||
'theme:version',
|
||||
// owner: Team:AppServices
|
||||
'courier:batchSearches',
|
||||
].includes(key)
|
||||
? {
|
||||
...acc,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue