-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Improve seeds 3 #12740
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
Improve seeds 3 #12740
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9933b4b
Improve seeds
FelixMalfait aba8979
Calendar event seeding
FelixMalfait d9b5e25
Message seeds
FelixMalfait 3fb0a52
WIP
FelixMalfait d994e42
Tests?
FelixMalfait 05b760d
Randomize source
FelixMalfait 7781a0d
Tests
FelixMalfait 5064839
Update packages/twenty-server/src/engine/workspace-manager/dev-seeder…
FelixMalfait e08020b
Update packages/twenty-server/src/engine/workspace-manager/dev-seeder…
FelixMalfait 697734b
Fix greptile commits
FelixMalfait 540a2b0
Remove comments
FelixMalfait f96a609
Refacto
FelixMalfait 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,15 +20,57 @@ export const CALENDAR_CHANNEL_DATA_SEED_COLUMNS: (keyof CalendarChannelDataSeed) | |
'isSyncEnabled', | ||
]; | ||
|
||
export const CALENDAR_CHANNEL_DATA_SEED_IDS = { | ||
TIM: '20202020-a40f-4faf-bb9f-c6f9945b8203', | ||
const GENERATE_CALENDAR_CHANNEL_IDS = (): Record<string, string> => { | ||
const CHANNEL_IDS: Record<string, string> = {}; | ||
|
||
CHANNEL_IDS['TIM'] = '20202020-a40f-4faf-bb9f-c6f9945b8203'; | ||
CHANNEL_IDS['JONY'] = '20202020-a40f-4faf-bb9f-c6f9945b8204'; | ||
CHANNEL_IDS['PHIL'] = '20202020-a40f-4faf-bb9f-c6f9945b8205'; | ||
CHANNEL_IDS['COMPANY_MAIN'] = '20202020-a40f-4faf-bb9f-c6f9945b8206'; | ||
CHANNEL_IDS['TEAM_CALENDAR'] = '20202020-a40f-4faf-bb9f-c6f9945b8207'; | ||
|
||
return CHANNEL_IDS; | ||
}; | ||
|
||
export const CALENDAR_CHANNEL_DATA_SEED_IDS = GENERATE_CALENDAR_CHANNEL_IDS(); | ||
|
||
export const CALENDAR_CHANNEL_DATA_SEEDS: CalendarChannelDataSeed[] = [ | ||
{ | ||
id: CALENDAR_CHANNEL_DATA_SEED_IDS.TIM, | ||
connectedAccountId: CONNECTED_ACCOUNT_DATA_SEED_IDS.TIM, | ||
handle: '[email protected]', | ||
visibility: CalendarChannelVisibility.METADATA, | ||
isContactAutoCreationEnabled: true, | ||
isSyncEnabled: true, | ||
}, | ||
{ | ||
id: CALENDAR_CHANNEL_DATA_SEED_IDS.JONY, | ||
connectedAccountId: CONNECTED_ACCOUNT_DATA_SEED_IDS.JONY, | ||
handle: '[email protected]', | ||
visibility: CalendarChannelVisibility.SHARE_EVERYTHING, | ||
isContactAutoCreationEnabled: true, | ||
isSyncEnabled: true, | ||
}, | ||
{ | ||
id: CALENDAR_CHANNEL_DATA_SEED_IDS.PHIL, | ||
connectedAccountId: CONNECTED_ACCOUNT_DATA_SEED_IDS.PHIL, | ||
handle: '[email protected]', | ||
visibility: CalendarChannelVisibility.METADATA, | ||
isContactAutoCreationEnabled: true, | ||
isSyncEnabled: true, | ||
}, | ||
{ | ||
id: CALENDAR_CHANNEL_DATA_SEED_IDS.COMPANY_MAIN, | ||
connectedAccountId: CONNECTED_ACCOUNT_DATA_SEED_IDS.TIM, | ||
handle: '[email protected]', | ||
FelixMalfait marked this conversation as resolved.
Show resolved
Hide resolved
|
||
visibility: CalendarChannelVisibility.SHARE_EVERYTHING, | ||
isContactAutoCreationEnabled: true, | ||
isSyncEnabled: true, | ||
}, | ||
{ | ||
id: CALENDAR_CHANNEL_DATA_SEED_IDS.TEAM_CALENDAR, | ||
connectedAccountId: CONNECTED_ACCOUNT_DATA_SEED_IDS.TIM, | ||
handle: '[email protected]', | ||
visibility: CalendarChannelVisibility.SHARE_EVERYTHING, | ||
isContactAutoCreationEnabled: true, | ||
isSyncEnabled: 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
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.