Commit Graph

38 Commits

Author SHA1 Message Date
72d696ad1b Fixing fields that got mixed up (#2207) (#2842)
Fixing fields that got mixed up
2023-12-05 12:22:21 +01:00
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
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
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 3857539f7d42f17c81f6ab92a6db950140b3c8e5.
2023-11-30 15:24:26 +01:00
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
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
cefac8435b Fix limit pagination (#2692)
* Fix limit parameter

* Increaze max_row for each workspaces
2023-11-24 17:02:41 +01:00
c395955f12 Fix activity creation (#2686) 2023-11-24 10:01:29 +01:00
851ce73609 Fix company update with accountOwner (#2687) 2023-11-24 10:00:45 +01:00
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
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
72421a39ea Fix Activity Picker part 1 (#2678)
* Fix Activity Picker part 1

* Fix
2023-11-23 16:25:13 +01:00
0da1a98021 fix: wrong file name (#2676) 2023-11-23 15:31:09 +01:00
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
9dabe44d0f Fix KeyboardShortcut menu, person upload picture (#2669)
* Fix KeyboardShortcut menu, person upload picture

* Fixes
2023-11-23 13:44:54 +01:00
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
ccaa96bc58 Fix workspace/user deletion (#2648)
* Fix workspace/user deletion

* remove logs

* add defaultWorkspace check
2023-11-22 17:12:46 +01:00
5c8c141556 feat: workspace cache version instead of event emitter (#2637) 2023-11-22 14:51:26 +01:00
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
4a0e0ee386 Fix view seeds (#2638) 2023-11-22 12:29:44 +01:00
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
a67199e0c3 Fix Tasks and Activities - Part 1 (#2624)
Fixed
2023-11-21 23:29:40 +01:00
dd125ddfcc feat: add memory cache to boost performance (#2620)
* feat: add memory cache to boost performance

* fix: tests

* fix: logging

* fix: missing commented stuff
2023-11-21 18:29:31 +01:00
a33d4c8b8d Rename DATE to DATETIME (#2576)
* Rename DATE to DATETIME

* rename DATE to DATE_TIME

* fix server tests

* rename date to datetime

* rename date to datetime
2023-11-21 00:16:42 +01:00
0ace17df82 Fix linter and remove console logs 2023-11-20 16:54:51 +01:00
189586830e Refactored useFindOneObjectMetadataItem and useFindManyObjectMetadataItems (#2600)
* Refactored useFindOneObjectMetadataItem and useFindManyObjectMetadataItems to rely on a recoil family selector

* Removed console.log

* Cleaned

* Removed unused hook

* Fixed seeds
2023-11-20 16:34:06 +01:00
3ad30a0498 fix: not able to filter by nullable values (#2580)
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-20 15:46:20 +01:00
f5e1d7825a Removing Prisma and Grapql-nestjs-prisma resolvers (#2574)
* Some cleaning

* Fix seeds

* Fix all sign in, sign up flow and apiKey optimistic rendering

* Fix
2023-11-19 18:25:47 +01:00
e72917c69c Fix issues post merge 2023-11-17 22:59:10 +01:00
aa2596c572 Update Seeds while pre-fi
lling a new workspace
2023-11-17 21:54:32 +01:00
d481da183f V2 opportunities (#2565)
* changed isSystem to false

* wip

* wip

* wip

* add amount viewfield seed

* seed other viewFields

* upate tenant seeds

* Remove calls to old pipelines

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
2023-11-17 19:12:22 +01:00
f62108d539 Add missing default values (#2567)
* add missing default values

* add missing default values
2023-11-17 19:11:25 +01:00
4870b0ac30 Add fullName field metadata type (#2563)
* Add fullName field metadata type

* update seeds
2023-11-17 16:52:51 +01:00
f58e4263bc Fix favorite seeds and prefill 2023-11-17 16:44:26 +01:00
baf1260443 Fix Activities and Tasks modules (#2561)
* Fix activities

* Fix Timeline

* Refactor useCreateOne and useUpdateOne records

* Fix seeds
2023-11-17 16:24:58 +01:00
dea1555031 Improvements for migrations (#2556)
* Fix wrong var name

* Add is null is not null filtering on dates

* Simplify
2023-11-17 14:20:33 +01:00
e19e7a816f Update seeds to take currency and link type into account 2023-11-17 12:01:56 +01:00
b86ada6d2b feat: rename tenant into workspace (#2553)
* feat: rename tenant into workspace

* fix: missing some files and reset not working

* fix: wrong import

* Use link in company seeds

* Use link in company seeds

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-17 11:26:33 +01:00