Revert "fix: sort nested object fields in manifest comparison and regenerate GraphQL types"

This reverts commit d083491b7c.
This commit is contained in:
Félix Malfait
2026-03-17 13:01:33 +01:00
parent 43d6d141aa
commit f18cf8bcc9
2 changed files with 45 additions and 62 deletions
File diff suppressed because one or more lines are too long
@@ -1,9 +1,5 @@
import { type Manifest } from 'twenty-shared/application';
const sortByUniversalIdentifier = <T extends { universalIdentifier: string }>(
items: T[],
): T[] => [...items].sort((a, b) => a.universalIdentifier.localeCompare(b.universalIdentifier));
export const normalizeManifestForComparison = <T extends Manifest>(
manifest: T,
): T => ({
@@ -20,12 +16,6 @@ export const normalizeManifestForComparison = <T extends Manifest>(
? '[checksum]'
: null,
},
objects: sortByUniversalIdentifier(
manifest.objects.map((object) => ({
...object,
fields: sortByUniversalIdentifier(object.fields),
})),
),
logicFunctions: manifest.logicFunctions?.map((fn) => ({
...fn,
builtHandlerChecksum: fn.builtHandlerChecksum ? '[checksum]' : null,