80c0fc7ff1
Activity as standard object ( #6219 )
...
In this PR I layout the first steps to migrate Activity to a traditional
Standard objects
Since this is a big transition, I'd rather split it into several
deployments / PRs
<img width="1512" alt="image"
src="https://github.com/user-attachments/assets/012e2bbf-9d1b-4723-aaf6-269ef588b050 ">
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
Co-authored-by: bosiraphael <71827178+bosiraphael@users.noreply.github.com >
Co-authored-by: Weiko <corentin@twenty.com >
Co-authored-by: Faisal-imtiyaz123 <142205282+Faisal-imtiyaz123@users.noreply.github.com >
Co-authored-by: Prateek Jain <prateekj1171998@gmail.com >
2024-07-31 15:36:11 +02:00
64763fb70c
Revert update of workspaceMember standard id ( #6475 )
2024-07-31 15:04:26 +02:00
424225943c
Add missing break ( #6474 )
2024-07-31 14:01:18 +02:00
6b4c79ff0d
Add workflow runner ( #6458 )
...
- add workflow runner module
- add an endpoint to trigger a workflow via api
- improve error handling for serverless functions
## Testing
- create 2 serverless functions
- create a workflow
- create this workflow Version
```
{
"type": "MANUAL",
"input": {"b": "bb"},
"nextAction": {
"name": "step_1",
"displayName": "Code",
"type": "CODE",
"valid": true,
"settings": {
"serverlessFunctionId": "Serverless function 1 Id",
"errorHandlingOptions": {
"retryOnFailure": {
"value": false
},
"continueOnFailure": {
"value": false
}
}
},
"nextAction": {
"name": "step_1",
"displayName": "Code",
"type": "CODE",
"valid": true,
"settings": {
"serverlessFunctionId": "Serverless function 1 Id",
"errorHandlingOptions": {
"retryOnFailure": {
"value": false
},
"continueOnFailure": {
"value": false
}
}
},
"nextAction": {
"name": "step_1",
"displayName": "Code",
"type": "CODE",
"valid": true,
"settings": {
"serverlessFunctionId": "Serverless function 2 Id",
"errorHandlingOptions": {
"retryOnFailure": {
"value": false
},
"continueOnFailure": {
"value": false
}
}
}
}
}
}
}
`
``
- call
```
mutation Trigger {
triggerWorkflow(workflowVersionId: "WORKFLOW_VERSION_ID") {
result
}
}
```
- try when errors are injected in serverless function
2024-07-31 12:48:33 +02:00
b8496d22b6
Do not add 'https' prefix while migrating domainName if source url is empty ( #6471 )
2024-07-31 12:03:49 +02:00
7fe00b163e
Add logs and fix timestamps in migrate domain command ( #6468 )
2024-07-31 11:23:19 +02:00
50f1cd352d
Add description for Developers/webhook page ( #6327 )
...
- Add optional description field to webhook page in developer settings.
Fix https://github.com/twentyhq/twenty/issues/6236
---------
Co-authored-by: Thomas Trompette <thomas.trompette@sfr.fr >
2024-07-31 10:59:30 +02:00
77152a10b1
Fix company creation duplicate on email sync after introducing links type ( #6460 )
...
- Introduce `extractDomainFromLink`
- Use is inside `create-company.service`
2024-07-30 18:10:36 +02:00
b85ae7e1ac
Fix googleApisSetRequestExtraParams ( #6455 )
2024-07-30 16:08:59 +02:00
68e3730be1
Fix base graphql error message ( #6457 )
...
Display error message instead of name
<img width="762" alt="Capture d’écran 2024-07-30 à 15 51 07"
src="https://github.com/user-attachments/assets/a6b49254-a99e-42fc-8704-089f38bf8e7b ">
2024-07-30 15:55:57 +02:00
3a37dfc7d5
Fix domainName seeds ( #6454 )
2024-07-30 15:14:36 +02:00
ccf4d1eeec
Date formatting per workspace member settings ( #6408 )
...
Implement date formatting per workspace member settings
We'll need another round to maybe initialize all workspaces on the
default settings.
For now the default behavior is to take system settings if nothing is
found in DB.
---------
Co-authored-by: Weiko <corentin@twenty.com >
2024-07-30 14:52:10 +02:00
45ebb0b824
Seed workspaces as active
2024-07-30 14:49:14 +02:00
e3496a19b5
Move folder ( #6451 )
...
Fix folder mistake
2024-07-30 14:16:23 +02:00
ee14f25996
Add enable workflow trigger endpoint ( #6443 )
...
Basic endpoint that only returns a boolean currently and overrides the
previous listener.
2024-07-30 14:00:37 +02:00
cd4263f7fd
6431 create new field activationStatus inside workspace table ( #6439 )
...
Closes #6431
- create new field `activationStatus`
- create migration commands
- add logic to update `activationStatus` on workspace activation and on
stripe subscriptionStatus change
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-07-30 12:36:39 +02:00
8e35edad30
Migrate domainName field from text type to links type ( #6410 )
...
Closes #5759 .
2024-07-30 11:47:37 +02:00
fb0fd99a38
Fix error handling in serverless service ( #6442 )
...
- narrowing error handling in aws sdk usage
- updating dto to authorize null descriptions
2024-07-29 18:51:57 +02:00
515d6fb1c5
Filter out by error code + invert filtering ( #6432 )
...
As title
Instance of not working well.
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-07-29 16:18:23 +02:00
fed12ddfcd
Improve performance of demo workspace - Rename getImageAbsoluteURIOrBase64 function ( #6282 )
...
### Description
1. This PR is a continuation of a previous PR:
https://github.com/twentyhq/twenty/pull/6201#pullrequestreview-2175601222
2. One test case was removed here:
`packages/twenty-front/src/utils/image/__tests__/getImageAbsoluteURI.test.ts`
because since we are not handling base64 images anymore, the result is
the same of the last test case. Would you rather we update the test
instead?
### Refs
- #3514
- https://github.com/twentyhq/twenty/pull/6201
### Demo
https://www.loom.com/share/4f32b535c77a4d418e319b095d09452c?sid=df34adf8-b013-44ef-b794-d54846f52d2d
Fixes #3514
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
2024-07-29 14:07:21 +02:00
00fea17920
Serverless function UI ( #6388 )
...
https://www.figma.com/design/xt8O9mFeLl46C5InWwoMrN/Twenty?node-id=36235-120877
Did not do the file manager part. A Function is defined using one unique
file at the moment
Feature protected by featureFlag `IS_FUNCTION_SETTINGS_ENABLED`
## Demo
https://github.com/user-attachments/assets/0acb8291-47b4-4521-a6fa-a88b9198609b
2024-07-29 13:03:09 +02:00
936279f895
Fix incorrect fetch of userVars when users are part of multi-workspaces
2024-07-28 11:58:10 +02:00
dcb8c7c03a
Fix incorrect fetch of userVars when userId is not specified
2024-07-28 11:30:14 +02:00
6728e40256
5899 display a banner to alert users which need to reconnect their account ( #6301 )
...
Closes #5899
<img width="1280" alt="Index - banner"
src="https://github.com/twentyhq/twenty/assets/71827178/313cf20d-eb34-496a-8c7c-7589fbd55954 ">
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-07-27 18:34:52 +02:00
d0db3b765f
6255 move services from messaging common module into the correct module and refactor them ( #6409 )
...
Closes #6255
- Move files from `messaging/common` into the correct module
- Remove common module between calendar and messaging
`calendar-messaging-participant-manager`
- Update and fix massaging and calendar participant matching
- Create `MatchParticipantModule`
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-07-27 12:29:02 +02:00
3060eb4e1e
Handle query runner errors ( #6424 )
...
- Throw service error from query runner
- Catch in resolver factories
- Map to graphql errors
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-07-27 12:27:04 +02:00
368f142f3a
Delete cache version on reset db ( #6426 )
...
As title
2024-07-27 11:54:03 +02:00
5a1835e9e0
Improve datasource creation resilience to missing cache
2024-07-27 11:35:47 +02:00
1529148c04
Updated MessageChannelSyncStatus enum: changed COMPLETED to ACTIVE ( #5965 )
...
Fixes #5961
---------
Co-authored-by: bosiraphael <raphael.bosi@gmail.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-07-25 21:17:55 +02:00
7b943457c8
Update sync-metadata to use feature-flag core module
2024-07-25 20:47:38 +02:00
8083175432
Fix object metadata not found ( #6416 )
2024-07-25 20:34:50 +02:00
4cb83e050f
Put workfows behind a feature flag ( #6417 )
...
We have recently merged
[#workflow](https://github.com/twentyhq/twenty/pull/6412 ) but we should
put the workflow standard object behind a feature flag for now
---------
Co-authored-by: bosiraphael <raphael.bosi@gmail.com >
2024-07-25 20:33:31 +02:00
515bf666cf
Do not create identifier for remote object
2024-07-25 18:39:08 +02:00
ce68f8ac79
Add workflow and version as standard object ( #6412 )
...
As title
Hidden behind a feature flag.
2024-07-25 18:33:11 +02:00
d022837b5b
Display command logs on boot error ( #6414 )
...
As per title
2024-07-25 17:53:57 +02:00
d073ebff43
Prevent field with null standardId to be considered as field identifier ( #6407 )
...
Otherwise, any custom field will be considered as image/label identifier
by the sync-metadata scripts
2024-07-25 13:28:10 +02:00
d0201e17ac
Fix: query runner orm ( #6397 )
...
Fix WorkspaceQueryRunner events using TwentyORM
Fix #6057
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-07-25 13:21:57 +02:00
b9c8d607aa
Test revert crm integration ( #6321 )
...
PR to test revert integration in production
2024-07-25 09:38:55 +02:00
7c6ca0e841
Fix api timeout ( #6401 )
2024-07-25 08:38:05 +02:00
082d55beac
[fix] Migrated links field should be standard ( #6387 )
...
Fixing script + ading logs to sync-metadata
2024-07-24 12:16:14 +02:00
001e698bbe
Use LinksMetadata right type for Links fields ( #6380 )
2024-07-24 10:48:15 +02:00
6785a2b92c
chore: remove the passwordResetToken field from the database ( #6377 )
...
# This PR
- Fix #6305
2024-07-24 10:44:11 +02:00
2cc0597ee4
Update seed links format
2024-07-23 14:48:26 +02:00
6c34ef9a14
Simplify ORM ( #6373 )
...
This PR refactors the ORM-Manager to simplify and unify the datasource
creation. I'm deprecating all usages if InjectWorkspaceDatasource and
InjectWorkspaceRepository as we can't be sure they are up-to-date
2024-07-23 14:13:16 +02:00
794e73eeb6
Migrate conferenceLink to type Links ( #6372 )
2024-07-23 14:09:52 +02:00
8d33264a7d
Migrate fields of deprecated type LINK to type LINKS ( #6332 )
...
Closes #5909 .
Adding a command to migrate fields of type Link to fields of type Links,
including their data.
2024-07-23 09:57:30 +02:00
c69d665114
Fix reset PasswordToken ( #6366 )
...
## Bug Description
We are facing a bug in case recaptcha is enabled.
To reproduce:
- Create your recaptcha: https://www.google.com/recaptcha/about/
- update your server .env with the following variables:
```
CAPTCHA_SECRET_KEY=REPLACE_ME
CAPTCHA_SITE_KEY=REPLACE_ME
CAPTCHA_DRIVER=google-recaptcha
```
- Go to the login page, enter an existing user email and hit 'Reset your
password'.
- Add a console.log in emailPasswordResetLink in auth.resolver.ts to get
the token that would be sent by email if you don't have the mailer setup
- Browse: /reset-password/{passwordToken}
- Update the password:
<img width="1446" alt="image"
src="https://github.com/user-attachments/assets/dd5b077f-293e-451a-8630-22d24ac66c42 ">
- See that the token is invalid
You should see two calls in your developer network tab. A successful one
to update the password and another to log you in. This 2nd call
(Challenge) does not have the captcha token provided. It should be
## Fix
- Refreshing the token on page load
- providing it to the Challenge graphql call
2024-07-22 17:36:31 +02:00
d212aedf81
Fix ORM ( #6363 )
...
This PR fixes a few bugs on TwentyORM:
- fix many to one relations that were not properly queries
- fix many to one relations that were not properly parsed
- compute datasource (or use from cache) at run-time and do not use
injected one that could be outdated
We still need to refactor it to simplify, I feel the API are too complex
and we have too many cache layers. Also the relation computation part is
very complex and bug prone
2024-07-22 15:07:35 +02:00
936994ff44
Fix demo opportunities name ( #6347 )
...
closes #5129
2024-07-22 12:22:32 +02:00
d8cadad0fa
Deprecate inject workspace repo ( #6353 )
2024-07-20 00:43:29 +02:00