Conversation
Contributor
📊 API Changes ReportREST API Analysis ErrorError Output |
Contributor
|
🚀 Preview Environment Ready! Your preview environment is available at: http://bore.pub:7073 This environment will automatically shut down when the PR is closed or after 5 hours. |
FlatObjectMetadata custom fieldMetadataIds fk aggregator key[OBJECT_CACHE_FLUSH_REQUIRED_WHEN_RELEASED] Remove FlatObjectMetadata custom fieldMetadataIds fk aggregator key
prastoin
commented
Jan 26, 2026
| applicationId: string | null; | ||
| } & { | ||
| fieldMetadataIds: string[]; | ||
| fieldIds: string[]; |
Contributor
Greptile OverviewGreptile SummaryThis PR refactors the Key Changes:
Impact:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant Type as FlatObjectMetadata Type
participant FlatEntity as FlatEntityFrom Generic
participant ORM as ObjectMetadataEntity
participant Utils as Conversion Utils
participant Consumers as Code Consumers
Note over Dev,Consumers: Refactoring Process
Dev->>Type: Remove custom fieldMetadataIds override
Type->>FlatEntity: Rely on generic type transformation
Note over FlatEntity: ExtractEntityOneToManyEntityRelationProperties<br/>converts 'fields' → 'fieldIds'
FlatEntity-->>Type: Auto-generate fieldIds property
Dev->>ORM: ObjectMetadataEntity has fields: FieldMetadataEntity[]
ORM->>Utils: Pass entity to conversion utility
Utils->>Utils: Map fields.map(f => f.id) to fieldIds
Utils-->>Consumers: Return FlatObjectMetadata with fieldIds
Dev->>Consumers: Update all 69 files
Note over Consumers: Replace .fieldMetadataIds → .fieldIds<br/>across codebase (tests, mocks, services)
Consumers-->>Dev: All references updated consistently
Note over Dev,Consumers: Result: Generic pattern applied,<br/>no custom FK aggregator override needed
|
[OBJECT_CACHE_FLUSH_REQUIRED_WHEN_RELEASED] Remove FlatObjectMetadata custom fieldMetadataIds fk aggregator key[OBJECT_CACHE_FLUSH_REQUIRED_WHEN_RELEASED] Remove FlatObjectMetadata custom fieldMetadataIds fk aggregator property
1 similar comment
camilo-agudelo-uma
pushed a commit
to innovation-grupo-uma/twenty-uma
that referenced
this pull request
Feb 2, 2026
…ata` custom `fieldMetadataIds` fk aggregator property (twentyhq#17438) # Introduction Currently refactoring `flatEntity` typing, encountering some tsc errors due to this fk aggregator custom override It shall now follow generic pattern leading to be named `fieldIds` Needs to flush object cache when released
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduction
Currently refactoring
flatEntitytyping, encountering some tsc errors due to this fk aggregator custom overrideIt shall now follow generic pattern leading to be named
fieldIdsNeeds to flush object cache when released