Jérémy M
d70f8deeec
Fix/enum validation ( #2863 )
...
* fix: SELECT enum can have a color key
* fix: "findOneOrFail" of undefined
* feat: alter column migration store previous metadata informations
* fix: enum validation extra keys
2023-12-07 17:04:49 +01:00
martmull
4fecf6d8b9
Fix api rest ( #2860 )
...
* Throw an error if workspace id has no object
* Request only plurial object names
* Fix tests
* Fix query
* Handle graphql errors
* Fix comment
2023-12-07 14:10:24 +01:00
bosiraphael
ef536ebb06
2809 create connected account data model ( #2856 )
...
* create connectedAccount model
* finished
* fix comma
2023-12-07 12:32:49 +01:00
martmull
3cd1ec21e6
Throw an error if workspace id has no object ( #2857 )
...
* Throw an error if workspace id has no object
* Request only plurial object names
* Fix tests
* Fix query
* Handle graphql errors
2023-12-07 12:32:29 +01:00
martmull
b72d6a9d9d
Rest api updates ( #2844 )
...
* Fix typo
* Fix ':' parsing
* Add '' for strings
* Add 'in', 'is', 'neq', 'like', 'ilike', 'startWith' comparators
* Fix test
* Move mapFieldMetadataToGraphqlQuery to util
* Move filter utils to utils
* Split code into factories
* Fix order by parser
* Reorganize files
* Add tests for limit parser
* Add tests for last_cursor parser
* Add tests for last_filter parser
* Move filter utils to factory
* Update filter parser tests
* Code review returns
* Fix tests
* Remove LOCAL_SERVER_URL
* Simplify and fix filter string parser
* Rename parser to input
* Add new lines for more readability
* Use unary plus
* Use nextjs errors
* Use destructuring
* Remove useless else
* Use FieldMetadata types
* Rename enums
* Move methods to utils
* Lint project
* Use singular name if id provided
* Handle typing
* Handle typing
* Minor update
* Simplify order by parser
* Lint
* handle missing conjunction
* filter parser update
2023-12-06 16:55:42 +01:00
Jérémy M
93decaceab
fix: FieldMetadata default value and options better validation ( #2785 )
...
* fix: wip better field metadata validation
* fix: remove files
* fix: default value and options validation
* fix: small fix
* fix: try to limit patch
* fix: tests
* Update server/src/metadata/field-metadata/validators/is-field-metadata-options.validator.ts
Co-authored-by: Weiko <corentin@twenty.com>
* fix: lint
* fix: standard fields update security
---------
Co-authored-by: Weiko <corentin@twenty.com>
2023-12-06 15:19:23 +01:00
Jérémy M
9df83c9a5a
feat: better server lint ( #2850 )
...
* feat: add stylistic eslint plugin
* feat: add missing line return
* feat: secure line-break style
* feat: disallow break before else
* feat: line between class members
* feat: better new line lint rule
2023-12-06 12:19:00 +01:00
Andrey Kud
976e058328
fix: avoid create custom entities with the same name ( #2791 )
...
* fix: avoid create custom entities with the same name
* fix: use exact spelling
* fix: validate input as is
2023-12-05 22:24:16 +01:00
Weiko
6d4ad6ec18
Sync standard object metadata ( #2807 )
...
* Sync standard object metadata
* remove debug logging
* remove unused func
* fix comments
* fix empty objectsToDelete list
2023-12-05 14:10:50 +01:00
bosiraphael
2dcce31ede
Create feature flag and use hook to display account tab conditionally ( #2843 )
...
create feature flag and use hook to display account tab conditionally
2023-12-05 12:23:18 +01:00
Ruslan
72d696ad1b
Fixing fields that got mixed up ( #2207 ) ( #2842 )
...
Fixing fields that got mixed up
2023-12-05 12:22:21 +01:00
Ruslan
fd9467c54d
feat: Add seed people and companies data for demo environment ( #2207 ) ( #2307 )
...
* feat: seed companies and people data
* init DataSeedDemoWorkspaceCommand to handle:
- seedCoreSchema()
- seedMetadataSchema()
* feature: Seed workspace with demo data
- delete workspace
- initDemo() with prefillWorkspaceWithDemoObjects()
* added companies-demo.ts with data
* added people-demo.ts with data
* added workspaceId to seedFeatureFlags()
* delete previous CoreSchema before seedCoreSchema
* added workspaceMemberPrefillData
* getDemoWorkspaces() to get DEMO_WORKSPACES from config
* defined DemoSeedUserIds
- created core/demo/ to keep modified seedCoreSchema() there
- DemoSeedUserIds with new set of users and Ids
* generateOpportunities() to seed demo opportunities (limit = 50)
* Code review and fixes
* Fix
---------
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-12-02 18:37:45 +01:00
martmull
97f154ef2c
Add rest api ( #2757 )
...
* Add a wildcard get route
* Call api from api
* Add a query formatter
* Use headers to authenticate
* Handle findMany query
* Add limit, orderBy and lastCursor parameters
* Add filter parameters
* Remove singular object name from valid requests
* Update order_by format
* Add depth parameter
* Make /api/objects/ID requests work
* Fix filter
* Add INTERNAL_SERVER_URL env variable
* Remove useless comment
* Change bath api url to 'rest'
* Fix limit parser
* Handle full filter version
* Improve handle full filter version
* Continue rest api
* Add and(...) default behaviour on filters
* Add tests
* Handle 'not' conjunction for filters
* Check filter query
* Format values with field metadata item type
* Handle nested filtering
* Update parsing method
* Check nested fields
* Add delete query
* Add create query
* Rename methods
* Add update query
* Update get one object request
* Fix error handling
* Code review returns
2023-12-01 16:26:39 +01:00
Mahendra Kumar
f405b77cea
add message queue integration ( #2491 )
2023-12-01 16:09:04 +01:00
Jérémy M
474db1e142
fix: nested relations not working and relations not prefixed ( #2782 )
...
* fix: nested relations n+n
* fix: prefix custom relations
* fix: only apply targetColumnMap when it's a custom object
* fix: force workspaceId to be provided
* fix: toIsCustom -> isToCustom
* fix: remove console.log
2023-12-01 15:26:48 +01:00
Jérémy M
6e6f0af26e
feat: Adding support for new FieldMetadataType with Postgres enums ( #2674 )
...
* feat: add enum type (RATING, SELECT, MULTI_SELECT)
feat: wip enum type
feat: try to alter enum
feat: wip enum
feat: wip enum
feat: schema-builder can handle enum
fix: return default value in field metadata response
* fix: create fieldMedata with options
* fix: lint issues
* fix: rename abstract factory
* feat: drop `PHONE` and `EMAIL` fieldMetadata types
* feat: drop `VARCHAR` fieldMetadata type and rely on `TEXT`
* Revert "feat: drop `PHONE` and `EMAIL` fieldMetadata types"
This reverts commit 3857539f7d
.
2023-11-30 15:24:26 +01:00
gitstart-twenty
1822370389
feat: add missing updateMany and deleteMany resolvers on flexible backend ( #2758 )
...
* feat: add missing updateMany and deleteMany resolvers on flexible backend
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
* Refactor according to review
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
* Update return types for `createMany`, `updateMany` and `deleteMany`
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com>
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
2023-11-30 13:13:08 +01:00
Charles Bochet
8548d11126
Release 0.2.0 ( #2777 )
2023-11-30 12:51:07 +01:00
brendanlaschke
7e454d2013
Attachments ( #2716 )
...
* create attachment site
* add deletion
* - fix person create attachment
* - add presentation type
- add some more file endings
- various fixes
2023-11-29 16:58:58 +01:00
bosiraphael
04c7c1a334
Feature flags seeds, queries and hooks ( #2769 )
...
* seed is working
* allow graphql to retrieve feature flag data
* create useIsFeatureEnabled hook
* hook is working
* Update icons.ts
2023-11-29 16:40:44 +01:00
bosiraphael
18d30c45c4
Create feature flag table ( #2752 )
...
* feature flag working
* wip
* wip
* Fix
---------
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-28 20:19:39 +01:00
Félix Malfait
aeccc87ac5
Yarn upgrade ( #2749 )
...
* yarn upgrade front and docs
* upgrade yarn server
* Revert change not needed
2023-11-28 16:48:02 +01:00
Mohit Singh
875ba31a0a
refactor:Style "loading more" rows on tables (Issue #2498 ) ( #2717 )
2023-11-27 11:12:59 +01:00
Weiko
65aa91c774
Allow field/object update if name/label are similar values ( #2709 )
2023-11-24 21:25:48 +01:00
martmull
cefac8435b
Fix limit pagination ( #2692 )
...
* Fix limit parameter
* Increaze max_row for each workspaces
2023-11-24 17:02:41 +01:00
Jérémy M
2b597d817c
fix: empty string as default value for string types ( #2691 )
...
* fix: empty string as default value for string types
* Fixes
---------
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-24 16:30:28 +01:00
Weiko
323c69948c
Fix check identical nameSingular/namePlural ( #2689 )
2023-11-24 11:30:22 +01:00
Weiko
cc526517b3
Add viewField creation to fieldMetadata creation service ( #2685 )
...
* Add viewField creation to fieldMetadata creation service
* fix reduce with no initial value
2023-11-24 10:02:37 +01:00
Weiko
c395955f12
Fix activity creation ( #2686 )
2023-11-24 10:01:29 +01:00
Weiko
851ce73609
Fix company update with accountOwner ( #2687 )
2023-11-24 10:00:45 +01:00
Charles Bochet
2d0f63219f
Fix workspace prefill and remove user allowImpersonation Boolean
2023-11-24 00:07:15 +01:00
Weiko
5038c36df4
Update seed default values ( #2681 )
...
* Update seed default values
* Update seed default values
* Update seed default values
* remove allowImpersonation in workspaceMembers
* remove USD from currencyCode defaultValue
* fix tests
2023-11-23 23:30:53 +01:00
Weiko
c795db33b2
Add activityTarget relation after custom object creation ( #2670 )
...
* Add activityTarget relation after custom object creation
* add isCustom check for relations
2023-11-23 16:26:33 +01:00
Charles Bochet
72421a39ea
Fix Activity Picker part 1 ( #2678 )
...
* Fix Activity Picker part 1
* Fix
2023-11-23 16:25:13 +01:00
Jérémy M
0da1a98021
fix: wrong file name ( #2676 )
2023-11-23 15:31:09 +01:00
martmull
59e53ba72d
Fix microAmount ( #2654 )
...
* Fix microAmount
* Code review returns
* Parse currency values as string
* Jeremy's returns
* fix: scalars not properly implemented
* fix: filters not working on big float scalar
---------
Co-authored-by: Jérémy Magrin <jeremy.magrin@gmail.com>
2023-11-23 15:26:59 +01:00
bosiraphael
8454dfc345
First generated viewField is now name ( #2671 )
...
fix-first-generated-viewField
2023-11-23 14:50:56 +01:00
Charles Bochet
9dabe44d0f
Fix KeyboardShortcut menu, person upload picture ( #2669 )
...
* Fix KeyboardShortcut menu, person upload picture
* Fixes
2023-11-23 13:44:54 +01:00
Charles Bochet
9c4f402102
Fix token cookie not being peristed on browser reboot ( #2667 )
2023-11-23 12:16:20 +01:00
Lucas Bordeau
01172d44dd
Fix/boolean field v2 ( #2664 )
...
* wip
* Revert "wip"
This reverts commit 517d460f6c
.
2023-11-23 11:35:32 +01:00
Charles Bochet
ec3cfe6fdb
Add back pickers on all pages, fix command menu ( #2662 )
...
* Add back pickers on all pages, fix command menu
* Fix lint
2023-11-22 22:32:25 +01:00
RobertoSimonini1
7eea150d16
remove unused packages:server ( #2650 )
2023-11-22 17:33:56 +01:00
Weiko
0fd823af21
Allow isActive to be updated for standard objects ( #2651 )
...
* Allow isActive to be updated for standard objects
* Allow isActive to be updated for standard objects/fields
2023-11-22 17:17:13 +01:00
Weiko
ccaa96bc58
Fix workspace/user deletion ( #2648 )
...
* Fix workspace/user deletion
* remove logs
* add defaultWorkspace check
2023-11-22 17:12:46 +01:00
Jérémy M
4c1c6a3407
fix: can't create fields of type UUID ( #2642 )
2023-11-22 14:58:13 +01:00
Jérémy M
5c8c141556
feat: workspace cache version instead of event emitter ( #2637 )
2023-11-22 14:51:26 +01:00
Weiko
a6abe09163
Move Impersonate from User to Workspace ( #2630 )
...
* Fix impersonate
* align core typeorm config with metadata config + add allowImpersonation to workspace
* move allowImpersonation to workspace
* remove allowImpersonation from workspaceMember workspace table
2023-11-22 14:12:39 +01:00
martmull
4a0e0ee386
Fix view seeds ( #2638 )
2023-11-22 12:29:44 +01:00
Charles Bochet
8f623ceb5c
Fix bug favorite optimistic rendering and opportunity prefill ( #2633 )
...
* Fix bug favorite optimistic rendering and opportunity prefill
* Fixes
2023-11-22 11:43:40 +01:00
Lucas Bordeau
a67199e0c3
Fix Tasks and Activities - Part 1 ( #2624 )
...
Fixed
2023-11-21 23:29:40 +01:00