chore: do not serialize scope or parentScope into request payloads
This commit is contained in:
2 files changed
+10
-2
No files matched your search
@@ -6,6 +6,14 @@ import { copy } from 'ember-copy';
|
||||
* Manages serialization/normalization of data to/from the API.
|
||||
*/
|
||||
export default class ApplicationSerializer extends RESTSerializer {
|
||||
|
||||
// =attributes
|
||||
|
||||
attrs = {
|
||||
scope: { serialize: false },
|
||||
parentScope: { serialize: false }
|
||||
};
|
||||
|
||||
// =methods
|
||||
|
||||
/**
|
||||
@@ -129,4 +137,5 @@ export default class ApplicationSerializer extends RESTSerializer {
|
||||
requestType
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -23,8 +23,7 @@ module('Unit | Serializer | application', function (hooks) {
|
||||
const serializedRecord = record.serialize();
|
||||
assert.deepEqual(serializedRecord, {
|
||||
name: 'User',
|
||||
description: 'Description',
|
||||
scope_id: 'global'
|
||||
description: 'Description'
|
||||
//disabled: false, // TODO: disabled is temporarily disabled
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user