Files
twenty/packages/twenty-shared/src/application/deterministic-identifier/get-view-field-group-universal-identifier.util.ts
T
Weiko 56e20a81ea Revert 21949 (#22081)
#21949 introduced deterministic uuid utils with usage in the same PR. 
Usage was not uniform and expected a backfill command as well. 
Since we want to release I'm reverting all the changes from that PR that
concerns twenty-server and only keeping the unused utils in
twenty-shared and I'll introduce usages within the same PR as backfill
command
2026-06-24 15:37:16 +02:00

18 lines
576 B
TypeScript

import { computeDeterministicUuid } from '@/application/deterministic-identifier/compute-deterministic-uuid.util';
// A view field group is identified by its name within its view.
export const getViewFieldGroupUniversalIdentifier = ({
applicationUniversalIdentifier,
viewUniversalIdentifier,
name,
}: {
applicationUniversalIdentifier: string;
viewUniversalIdentifier: string;
name: string;
}): string =>
computeDeterministicUuid({
entityNamespace: 'viewFieldGroup',
value: `${viewUniversalIdentifier}:${name}`,
applicationUniversalIdentifier,
});