-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[REQUIRES_FULL_CACHE_FLUSH_WHEN_RELEASED] Refactor FlatEntity to be UniversalFlatEntity superset
#17452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[REQUIRES_FULL_CACHE_FLUSH_WHEN_RELEASED] Refactor FlatEntity to be UniversalFlatEntity superset
#17452
Changes from 24 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
bd39067
feat(server): introducing flat entity superset
prastoin 0c60a54
fixup
prastoin e028f60
wip
prastoin 04cc808
refacotr(server): field
prastoin fe4d3a9
chore(server): remove expand
prastoin a6ed777
clean
prastoin 34a7e07
fix
prastoin a386595
finally
prastoin 920f234
refactor(server): flat object
prastoin 7325eb6
lint
prastoin 4530bc8
feat(server): role target
prastoin 17f78b4
wip
prastoin 33a2d45
fix
prastoin cf351b4
feat(server): views
prastoin b40d1da
fix
prastoin c63e91e
lint
prastoin 5c59ead
feat(server): more entities
prastoin 5f31a81
feat(server): more enttiies
prastoin 5faf9fb
chore
prastoin dd524a2
more entities
prastoin da6fb16
lint
prastoin 0079a1b
feat(server): page layout widget dynamic settings WIP need nested sup…
prastoin bac1d9d
feat(server): rebase and fix string indexed record type issue
prastoin 0852807
fix(server): navigation menu
prastoin 7457cf1
tsc
prastoin 6c1c95c
feat(server): page layout and page layout tab
prastoin a2690fd
refactor(server): from entity to flat entity arg type
prastoin 2f932c8
refactor(server): from to type args
prastoin cb710f9
lint
prastoin ae96a02
feat(server): webhook and logic-function
prastoin faa5569
chore
prastoin 2c43489
lint
prastoin 1e126ec
fix
prastoin 250666c
fix module injection
prastoin 2a6ef2d
unit
prastoin 898831a
fix(server): role
prastoin 8a718a5
lint
prastoin 52e31da
fix(server): by definition serialized relation are nullable
prastoin d06a137
lint
prastoin 9d9cda3
comment
prastoin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
25 changes: 25 additions & 0 deletions
25
...c/engine/metadata-modules/field-metadata/utils/is-field-metadata-settings-of-type.util.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| import { | ||
| type AllFieldMetadataSettings, | ||
| type FieldMetadataSettingsMapping, | ||
| FieldMetadataType, | ||
| } from 'twenty-shared/types'; | ||
| import { isDefined } from 'twenty-shared/utils'; | ||
|
|
||
| export const isFieldMetadataSettingsOfType = < | ||
| T extends keyof FieldMetadataSettingsMapping, | ||
| >( | ||
| settings: AllFieldMetadataSettings | null, | ||
| fieldMetadataType: T, | ||
| ): settings is FieldMetadataSettingsMapping[T] => { | ||
| // Settings don't have a discriminator - the type is determined by fieldMetadataType | ||
| // For required settings types (RELATION, MORPH_RELATION, FILES), ensure settings is defined | ||
| if ( | ||
| fieldMetadataType === FieldMetadataType.RELATION || | ||
| fieldMetadataType === FieldMetadataType.MORPH_RELATION || | ||
| fieldMetadataType === FieldMetadataType.FILES | ||
| ) { | ||
| return isDefined(settings); | ||
| } | ||
|
|
||
| return true; | ||
| }; |
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
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
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
8 changes: 7 additions & 1 deletion
8
...erver/src/engine/metadata-modules/flat-command-menu-item/flat-command-menu-item.module.ts
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.