214807588a
[messaging] clean orphan threads and messages after connected account deletion ( #4195 )
...
* [messaging] add connected account associated data delete
* add threadCleanerService
* fix
* fix import
* add thread cleaner import
* remove log
2024-02-26 21:29:44 +01:00
6a1abba9ea
Ignore defaultValue update for select fields ( #4193 )
...
* Ignore defaultValue update for select fields
* Fix tests
2024-02-26 18:41:29 +01:00
70511dc860
Add writeLog for relation update sync metadata ( #4136 )
...
* Add writeLog for relation update sync metadata
* fix health check
2024-02-22 16:02:13 +01:00
fa02a478a5
Fix server import case
2024-02-22 11:51:18 +01:00
8425ce4987
Add onDeleteAction to RelationMetadata ( #4100 )
...
* Add onDeleteAction to relationMetadata
* rename to SET NULL
* fix migration
* fix migration
* fix after review
2024-02-22 10:27:15 +01:00
3914e8d77c
fix: sync and health ( #4095 )
...
* fix: throw error if we try to create a migration without columnName
* fix: typeorm save for update breaking everything
2024-02-20 17:55:23 +01:00
2f9e503a8b
fix: ignore enum options sync for now ( #4056 )
2024-02-19 17:29:30 +01:00
990cb107a1
feat: workspace health target column map fix ( #3932 )
...
* feat: workspace health fix target column map
* fix: remove log
* feat: refactor health fixer
* fix: default-value issue and health check not working with composite
* fix: enhance target column map fix
* feat: create workspace migrations for target-column-map issues
* feat: enhance workspace-health issue detection
2024-02-15 18:04:12 +01:00
0b93a6785b
3815 blocklist connect frontend ( #3930 )
...
* wip
* wip
* move blocklist to connectedAccount
* wip
* format date
* fix styling
* renaming
* fix imports
* fix imports
* Rename BlockListItem.ts to BlocklistItem.ts
* Add IS_BLOCKLIST_ENABLED feature flag and remove IS_MESSAGING_ENABLED gate at model creation
* hide blocklist if feature flag is disabled
2024-02-15 17:18:04 +01:00
4b3eeac333
[messaging] add defaultValue to isContactAutoCreationEnabled ( #3992 )
2024-02-15 16:42:03 +01:00
94ad0e33ec
3889 activate settingsaccountsemailsinboxsettings ( #3962 )
...
* update email visibility in settings
* improve styling
* Add contact auto creation toggle to inbox settings
* re
move soonpill
* update Icon
* create job
* Add logic to create contacts and companies for message participants without personId and workspaceMemberId
* add listener
* wip
* wip
* refactoring
* improve structure
* Add isContactAutoCreationEnabled method to MessageChannelService
* wip
* wip
* clean
* add job
* fix bug
* contact creation is working
* wip
* working
* improve code
* improve typing
* resolve conflicts
* fix
* create company repository
* move util
* wip
* fix
2024-02-14 17:30:17 +01:00
7d80610428
3814 create blocklist data model ( #3927 )
...
* wip
* wip
* wip
* working
2024-02-14 16:38:16 +01:00
8ce7020b12
feat: sync metadata can alter and update a field ( #3944 )
2024-02-13 19:36:58 +01:00
9ceff84bbf
Set opportunity stage as editable ( #3838 )
...
* Set opportunity stage as editable
* Fix comments
* Add command for migration
* Fixes
---------
Co-authored-by: Thomas Trompette <thomast@twenty.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-02-09 14:44:11 +01:00
d3fe1b9e31
feat: workspace:health nullable fix ( #3882 )
2024-02-08 18:22:29 +01:00
719da29795
Store compact view status ( #3850 )
...
* Store compact view status
* Rename to isCompact
* Fixes
---------
Co-authored-by: Thomas Trompette <thomast@twenty.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-02-08 16:33:52 +01:00
6ee179442a
Add one to many relation between opportunity and attachment ( #3866 )
...
* Add one to many relation between opportunity and attachment
* Fix opportunity type
---------
Co-authored-by: Thomas Trompette <thomast@twenty.com >
2024-02-08 15:22:52 +01:00
6e3a8e3461
Feat/workspace health core fix ( #3863 )
...
* feat: add deletion support on sync metadata command
* fix: remove debug
* feat: wip workspace health command add --fix option
fix: remove test
* feat: core of --fix option for workspace-health
2024-02-07 18:27:35 +01:00
a908353955
feat: add deletion support on sync metadata command ( #3826 )
...
* feat: add deletion support on sync metadata command
* fix: remove debug
2024-02-07 15:38:23 +01:00
9f59ddc059
Rename recordPosition into position ( #3864 )
...
* Rename recordPosition into position
* Fix according to review
---------
Co-authored-by: Thomas Trompette <thomast@twenty.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-02-07 09:40:35 +01:00
7b2b70e479
Create record position field ( #3739 )
...
* Create record field on non syst standard objects + on custom objects
* Create workspace migration
* Fix naming and add seed
---------
Co-authored-by: Thomas Trompette <thomast@twenty.com >
2024-02-01 16:56:38 +01:00
9799326533
fix: logs folder doesn't exist ( #3759 )
2024-02-01 16:47:36 +01:00
3c89a97a9f
feat: add dry-run option to sync-metadata command ( #3758 )
...
* feat: add dry-run option to sync-metadata command
* feat: save metadata logs in dry-run mode
2024-02-01 16:35:32 +01:00
8abd5be4b5
fix: sync metadata shouldn't remove non custom fields ( #3750 )
...
* fix: sync metadata shouldn't remove non custom fields
* fix: filter out custom relations
2024-02-01 14:25:50 +01:00
82d99afe2f
Fix workspace-sync when alter with relation ( #3721 )
2024-01-31 15:50:54 +01:00
03e5c792f0
[messaging] fix message-channel-message-association field name as dependencies ( #3712 )
2024-01-30 19:35:41 +01:00
64b2ef3dc2
Delete message when no more association ( #3701 )
...
* Delete message when no more association
* remove unused injections
* rename methods
* fix after review
2024-01-30 17:58:36 +01:00
73f6876641
feat: workspace sync ( #3505 )
...
* feat: wip workspace sync
* feat: wip lot of debugging
* feat: refactor and fix sync
* fix: clean
fix: clean
* feat: add simple comparator tests
* fix: remove debug
* feat: wip drop table
* fix: main merge
* fix: some issues, and prepare storage system to handle complex deletion
* feat: wip clean and fix
* fix: reflect issue when using array instead of map and clean
* fix: test & sync
* fix: yarn files
* fix: unecesary if-else
* fix: if condition not needed
* fix: remove debug
* fix: replace EQUAL by SKIP
* fix: sync metadata relation not applied properly
* fix: lint issues
* fix: merge issue
2024-01-30 14:40:55 +01:00
da8dd671d1
fix: rating type issues ( #3638 )
...
* fix: rating type issues
* fix: rebase
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-01-30 09:57:30 +01:00
377fd23c90
Display columns on Record Board ( #3626 )
...
* Display columns on Record board
* Fix
* Fix according to review
* Fix
2024-01-25 18:21:15 +01:00
6d997edabb
[Messaging] Fix duplicate messageChannelMessage ( #3616 )
...
* [Messaging] Fix duplicate channelMessageChannel
* add messageChannelMessage check before querying gmail
* rename messageChannelMessage to messageChannelMessageAssociation
2024-01-25 14:15:57 +01:00
c811206c47
Fix message table plural name ( #3604 )
2024-01-24 14:33:08 +01:00
c7ad6a0de7
[messaging] Rename body to text ( #3595 )
...
* Store HTML message
* remove console log
* [messaging] rename body to text
* use CoreObjectNameSingular
2024-01-23 19:56:42 +01:00
d176ba95d3
Store HTML message ( #3594 )
...
* Store HTML message
* remove console log
* fix html label/description
2024-01-23 19:40:05 +01:00
dc7fccb0a8
Merge messages and threads #1 ( #3583 )
...
* Merge messages and threads
* rename messageChannelSync to messageChannelMessage
* add merge logic
* remove deprecated methods
* restore enqueue GmailFullSyncJob after connectedAccount creation
2024-01-23 17:28:14 +01:00
894f63a16f
Standard Object prefill updates ( #3570 )
2024-01-22 11:13:43 +01:00
f3c9854be3
Add select type to field metadata decorator ( #3471 )
...
* Add select type to field metadata decorator
* add option id generation for new field
2024-01-17 15:03:11 +01:00
f3f20ad974
Improve opportunity behavior ( #3487 )
...
* Fix opportunity relation
* Fix
* Fix
* Fix tests
* Fix
* Fix
* Fix opportunities
* Fix Opportunity standard object and apply maxWidth to text ellipsis
* Update packages/twenty-front/src/modules/ui/field/display/components/EllipsisDisplay.tsx
Co-authored-by: Thaïs <guigon.thais@gmail.com >
* Fix
---------
Co-authored-by: Thaïs <guigon.thais@gmail.com >
2024-01-16 15:43:19 +01:00
fb93bb69fb
Fix opportunity relation ( #3478 )
...
* Fix opportunity relation
* Fix
* Fix
* Fix tests
* Fix
* Fix
2024-01-16 14:39:48 +01:00
4695e99458
3369 rename messagerecipients table into messageparticipants ( #3457 )
...
* renaming
* renaming
2024-01-15 16:55:19 +01:00
8682f3c0c0
3441 modify message table change date to receivedat ( #3452 )
...
* changed date to receivedAt
* update saving messages
* update custom resolver
2024-01-15 14:48:25 +01:00
16a24c5f0c
Rework relations ( #3431 )
...
* Rework relations
* Fix tests
2024-01-15 12:07:23 +01:00
4ebb487fa1
3236 add syncproviderconfig to connectedaccount model ( #3328 )
...
* add Last sync history ID
* add is nullable
* fix errors
* modification
2024-01-09 14:48:10 +01:00
8483cf0b4b
POC: chore: use Nx workspace lint rules ( #3163 )
...
* chore: use Nx workspace lint rules
Closes #3162
* Fix lint
* Fix lint on BE
* Fix tests
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-01-03 23:07:25 +01:00
756b30815e
Fix various bugs before 0.2.2 ( #3118 )
...
* Fix various bugs before 0.2.2 release
* Additional fixes
* More fixes
* Fixes
2023-12-21 23:48:52 +01:00
d532f22fbb
feat: migration can be applied on a specific schema & some enhancements ( #2998 )
...
* fix: remove old metadata seed files
* feat: wip standard to core relation
* fix: lint
* fix: merge
* fix: remove debug files
* feat: add feature flag for core object metadata
* fix: remove debug
* feat: always disable the standard core relation
* fix: missing feature flag
* fix: remove debug
* fix: feature flag doesn't seems to disable relation
* fix: delete .vscode folder, change this in another PR
* Update packages/twenty-server/src/workspace/workspace-sync-metadata/reflective-metadata.factory.ts
Co-authored-by: Weiko <corentin@twenty.com >
* Update packages/twenty-server/src/workspace/workspace-sync-metadata/reflective-metadata.factory.ts
Co-authored-by: Weiko <corentin@twenty.com >
* Update packages/twenty-server/src/workspace/workspace-sync-metadata/workspace-sync.metadata.service.ts
Co-authored-by: Weiko <corentin@twenty.com >
* fix: remove optional fields from metadata entities
* fix: renamed variable
* fix: put back CursorScalarType
* fix: delete test command
* fix: remove unused workspace standard migration command
* fix: drop core object metadata declaration
* fix: rename variable
* fix: drop creation of core datasource
* fix: remove feature flag
* fix: drop support of standard to core relations
* feat: add user email field on workspace-member standard object
* fix: update seed accordingly
* fix: missing remove command file
* fix: datasource label should remain nullable
* fix: better asserts
* Remove unused code
* Remove unused code
---------
Co-authored-by: Weiko <corentin@twenty.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2023-12-21 19:15:05 +01:00
5afcab4e78
3011 fill the messagerecipient table when fetching messages ( #3073 )
...
* wip
* trying to parse display names and emails
* add nodemailer mailparser
* mail parsing is working
* add personId and workspaceMemberId
* add date to messages
* Fix PR
* Run tsc on bigger machine
* Fix lint
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2023-12-19 17:08:54 +01:00
f95c56b1cb
2880 timebox create a poc to fetch emails from the gmail api ( #2993 )
...
* create empty service
* getting threads is working
* insert message channel
* save threads in the db
* clean
* fetch messages
* create a service to fetch a batch of messages
* batch messages
* use httpService instead
* parse batch
* base 64 decoding working
* solve parsing bug
* saving messages is working
* bug to fix in fetchAllByBatches
* fetching all messages is working but not saving yet
* fecth 500 messages and threads is working
* remove unused package and console log
* set direction to incoming
* fix bug after merging main
2023-12-15 16:35:56 +01:00
064e47b59a
Fix CIs ( #3004 )
...
* Fix CIs
* Fix docs
* Fix eslint-build
* Move file
* Move back
* Fix server ci
* Fix server ci
* Fix server ci
* Fix server ci
* Deactivate e2e tests
* Fix front
* Fix front
* Fix front
* Add twenty-zapier and twenty-utils to the yarn project
* fix
* fix
* Remove pull_request trigger
2023-12-15 15:40:04 +01:00
f126bd95d6
Add featureFlag gateDecorator for sync-metadata ( #2956 )
...
* Add featureFlag gateDecorator for sync-metadata
* remove gate exampels
* gate messaging objects
* gate messaging recipient object
* add missing gate
2023-12-12 17:34:59 +01:00