Paul Rastoin
442f8dbe3c
[QRQC_2] No implicitAny in twenty-server ( #12075 )
...
# Introduction
Following https://github.com/twentyhq/twenty/pull/12068
Related with https://github.com/twentyhq/core-team-issues/issues/975
We're enabling `noImplicitAny` handled few use case manually, added a
`ts-expect-error` to the others, we should plan to handle them in the
future
2025-05-15 18:23:22 +02:00
Paul Rastoin and etiennejouan
a8423e8503
[QRQC_2] No explicit any in twenty-server ( #12068 )
...
# Introduction
Added a no-explicit-any rule to the twenty-server, not applicable to
tests and integration tests folder
Related to https://github.com/twentyhq/core-team-issues/issues/975
Discussed with Charles
## In case of conflicts
Until this is approved I won't rebased and handle conflict, just need to
drop two latest commits and re run the scripts etc
## Legacy
We decided not to handle the existing lint error occurrences and
programmatically ignored them through a disable next line rule comment
## Open question
We might wanna activate the
[no-explicit-any](https://typescript-eslint.io/rules/no-explicit-any/ )
`ignoreRestArgs` for our use case ?
```
ignoreRestArgs?: boolean;
```
---------
Co-authored-by: etiennejouan <jouan.etienne@gmail.com >
2025-05-15 16:26:38 +02:00
d9dcd63a1c
Expose duplicate check on REST API and enable batch duplicate checks ( #6328 )
...
This PR was created by [GitStart](https://gitstart.com/ ) to address the
requirements from this ticket:
[TWNTY-5472](https://clients.gitstart.com/twenty/5449/tickets/TWNTY-5472 ).
This ticket was imported from:
[TWNTY-5472](https://github.com/twentyhq/twenty/issues/5472 )
---
### Description:
- Following what is already done in the code, we create a REST endpoint
that generates the Graphql query and returns its result.
### Refs: #5472
### Demo:
<https://www.loom.com/share/e0b1030f056945a0bf93bdd88ea01d8f?sid=6f128e8c-370b-4079-958e-0ea2d073a241 >
FIxes #5472
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: gitstart-twenty <140154534+gitstart-twenty@users.noreply.github.com >
Co-authored-by: martmull <martmull@hotmail.fr >
2024-08-01 10:08:22 +02:00
Félix Malfait
374237a988
Refacto rest api, fix graphl playground, improve analytics ( #5844 )
...
- Improve the rest api by introducing startingAfter/endingBefore (we
previously had lastCursor), and moving pageInfo/totalCount outside of
the data object.
- Fix broken GraphQL playground on website
- Improve analytics by sending server url
2024-06-12 21:54:33 +02:00
martmull
30d3ebc68a
Fix missing cursor on rest api ( #5841 )
...
## Before

## After



2024-06-12 16:25:04 +02:00
martmull
fdf10f17e2
4655 batch endpoints on the rest api ( #5411 )
...
- add POST rest/batch/<OBJECT> endpoint
- rearrange rest api code with Twenty quality standard
- unify REST API error format
- Added PATCH verb to update objects
- In openapi schema, we replaced PUT with PATCH verb to comply with REST
standard
- fix openApi schema to match the REST api
### Batch Create

### Replace PUT by PATCH in open Api

### Error format unification



2024-05-16 14:15:49 +02:00