removes "courier:batchSearches" setting during migration (#122672)

This commit is contained in:
Anton Dosov 2022-01-12 13:25:45 +01:00 committed by GitHub
parent 651f623050
commit 872b2f4af0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 0 deletions

View file

@ -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', () => {

View file

@ -89,6 +89,8 @@ export const migrations = {
'telemetry:optIn',
'xPackMonitoring:allowReport',
'theme:version',
// owner: Team:AppServices
'courier:batchSearches',
].includes(key)
? {
...acc,