[CoreViewField BREAKING_CHANGES] Refactor view field service v2 and resolver (#14396)
## Introduction ### Twenty-sever Standardizing resolver input and transpilation models + return type on destroy and delete ~~Finally~~ Did plug everything under a feature flag and add coverage Next will do same for the view resolver and service v2 ### Twenty-front Refactored view field service in order to use codegenerated strictly typed mutations and adapt to new api contract
This commit is contained in:
+12
-5
@@ -32,11 +32,18 @@ export const useViewFieldAggregateOperation = () => {
|
||||
}
|
||||
await updateViewFieldRecords([
|
||||
{
|
||||
...currentViewField,
|
||||
aggregateOperation:
|
||||
convertExtendedAggregateOperationToAggregateOperation(
|
||||
aggregateOperation,
|
||||
),
|
||||
input: {
|
||||
id: currentViewField.id,
|
||||
update: {
|
||||
isVisible: currentViewField.isVisible,
|
||||
position: currentViewField.position,
|
||||
size: currentViewField.size,
|
||||
aggregateOperation:
|
||||
convertExtendedAggregateOperationToAggregateOperation(
|
||||
aggregateOperation,
|
||||
),
|
||||
},
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user