Remove attributes used only on kv-v2 config (#12529)

This commit is contained in:
Chelsea Shaw 2021-09-13 10:33:12 -05:00 committed by GitHub
parent 2576be23d0
commit f850ba08a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ export default ApplicationSerializer.extend({
serialize(snapshot) {
let type = snapshot.record.get('engineType');
let data = this._super(...arguments);
// These items are on the model, but used by the kv-v2 config endpoint only
delete data.max_versions;
delete data.cas_required;
delete data.delete_version_after;
// only KV uses options
if (type !== 'kv' && type !== 'generic') {
delete data.options;