ffb1733f39
Fix invalid token after credentials change ( #4717 )
...
- If sync fails we set authFailedAt
- This information is displayed in the frontend in accounts with a `Sync
Failed` pill
- The user can reconnect his account in the dropdown menu
- A new OAuth flow is triggered
- The account is synced
2024-04-02 11:32:27 +02:00
68977dc675
Calendar event fixes and improvements ( #4690 )
...
* fixes
* saving workspaceMemberId and personId when saving attendees
* add typing
* use Map
* improve saveMessageParticipants
* fix role type
* move logic in a service
* create new service
* use new service in calendar-event-attendee.service
* modify service to include more common logic
* add defaumt value to isOrganizer in calendar-event-attendee.object-metadata
* rename folder
* renaming
2024-03-29 10:03:00 +01:00
5c40e3608b
[messaing] improve messaging import ( #4650 )
...
* [messaging] improve full-sync fetching strategy
* fix
* rebase
* fix
* fix
* fix rebase
* fix
* fix
* fix
* fix
* fix
* remove deletion
* fix setPop with memory storage
* fix pgBoss and remove unnecessary job
* fix throw
* fix
* add timeout to ongoing sync
2024-03-27 12:44:03 +01:00
fefa37b300
4488 connect calendar tab to backend ( #4624 )
...
* create states and hooks
* implement fetch more records
* add empty state
* update types
* fix error
* add fetchmoreloader and add scroll to container
* fix visibility in calendarEventFragment
* fix fetchMoreRecords
* update TIMELINE_CALENDAR_EVENTS_DEFAULT_PAGE_SIZE
* add test
* modify empty state subtitle
* replace entity by activityTargetableObject
* create useCustomResolver hook
* refactor
* refactoring
* use generic component
* rename FetchMoreLoader
* remove deprecated states and hooks
* fix typing
* update typing
* update error message
* renaming
* improve typing
* fix bug on contact creation from same company
2024-03-26 14:50:32 +01:00
96cad2accd
4398 decouple contacts and companies creation from messages import ( #4590 )
...
* emit event
* create queue and listener
* filter participants with role 'from'
* create job
* Add job to job module
* Refactoring
* Refactor contact creation in CreateCompanyAndContactService
* update job
* wip
* add getByHandlesWithoutPersonIdAndWorkspaceMemberId to calendar event attendee repository
* refactoring
* refactoring
* Revert "refactoring"
This reverts commit e5434f0b871e45447227aa8d55ba5af381c3ff1c.
* fix nest imports
* add await
* fix contact creation condition
* emit contact creation event after calendar-full-sync
* add await
* add missing transactionManager
* calendar event attendees personId update is working
* messageParticipant and calendarEventAttendee update is working as intended
* rename module
* fix lodash import
* add test
* update package.json
2024-03-22 18:44:14 +01:00
e5c1309e8c
feat: wip server folder structure ( #4573 )
...
* feat: wip server folder structure
* fix: merge
* fix: wrong merge
* fix: remove unused file
* fix: comment
* fix: lint
* fix: merge
* fix: remove console.log
* fix: metadata graphql arguments broken
2024-03-20 16:23:46 +01:00
8fb1ab8933
[backend] rename repository services and replace repository modules by dynamicModule ( #4536 )
...
* rename database services to repository
* refactor more repositories
* more refactoring
* followup
* remove unused imports
* fix
* fix
* Fix calendar listener being called when flag is off
* remove folders
2024-03-18 16:26:23 +01:00
2c09096edd
Refactor backend folder structure ( #4505 )
...
* Refactor backend folder structure
Co-authored-by: Charles Bochet <charles@twenty.com >
* fix tests
* fix
* move yoga hooks
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-03-15 18:37:09 +01:00