Commit Graph

239 Commits

Author SHA1 Message Date
Lucas Bordeau
f1670f0cf4
Feat/metadata datatable types (#2175)
* Handled new url v2 type

* Fixed refetch queries

* wip

* Ok delete but views bug

* Fix lint

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-21 14:07:18 +02:00
Weiko
cc9ffb16ad
Add standardObject seeds (#2140)
* Add standardObject seeds

* use for of
2023-10-20 14:35:25 +02:00
Charles Bochet
14a5a91499 Fix server typescript depth error 2023-10-20 00:20:47 +02:00
Abhishek Thory
08772b4456
1721/feature/drag and drop favorites (#2097)
* prisma schema updated: added index in favorite

* update abilitiy added for favorite

* update one favorite resolver added

* update on favorite mutation added

* updateFavoriteOrder added

* Draglist added in favorite

* nav item convert to div from button: because it was not working dragable with button

* changed index to position

* position added in getFavorites query

* added recoil state for favorites

* reordering updated according to new method

* Use accurate type

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-19 23:35:23 +02:00
martmull
e9092162e0
2049 timebox 1j zapier integration 4 define and implement a first trigger for zapier app (#2132)
* Add create company trigger

* Refactor

* Add operation in subscribe

* Add create hook api endpoint

* Add import of hook module

* Add a test for hook subscribe

* Add delete hook api endpoint

* Add delete hook test

* Add findMany hook route

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-19 22:48:34 +02:00
Charles Bochet
d0df7e4d3b
Update version to 0.1.5 (#2123)
* Update version to 0.1.5

* Temporariliy lower code coverage
2023-10-19 16:21:09 +02:00
Jérémy M
3e83cb6846
feat: conditional filtering & aggregation support & data ordering support (#2107)
* feat: wip

* feat: add filter on findOne

* fix: tests & small bug

* feat: add test and support aggregation

* feat: add order by support

* fix: fix comments

* fix: tests
2023-10-19 15:24:36 +02:00
bosiraphael
2b8a81a05c
Created two new env variables (#2120)
* created the two env variables

* modify according to comments
2023-10-19 14:57:16 +02:00
martmull
b904397599
Fix api keys (#2116)
* Distinguish local env variables

* Remove api token secret
2023-10-19 11:07:40 +02:00
Weiko
7fbef6d60d
Add Tenant initialisation service (#2100)
* Add Tenant initialisation service

* few fixes

* fix constraint

* fix tests

* update metadata json with employees and address

* add V2

* remove metadata.gql
2023-10-18 18:01:52 +02:00
Jérémy M
c4fa36402b
feat: add default filter types (#2087)
* feat: add default filter types

* fix: fields doesn't need to be a function
2023-10-17 17:57:02 +02:00
Aasim Attia
88438e8094
apply database:init (#2079) 2023-10-17 16:39:48 +02:00
Weiko
1344e78acb
Remove singular/plural from field-metadata (#2085)
* Remove singular/plural from field-metadata

* revert removing id from create input

* remove console log

* remove console log

* codegen

* missing files

* fix tests
2023-10-17 15:21:58 +02:00
Jérémy M
4a96ae225e
feat: easier makefile commands (#2077)
* feat: easier makefile commands

* fix: cleaner command
2023-10-17 10:38:10 +02:00
Lucas Bordeau
d64f167b3b
Feat/front temp seed custom objects (#2070)
* wip

* Fixed bugs

* Added flexible backend test
2023-10-16 22:04:41 +02:00
Weiko
c06a8a9213
Add soft delete to metadata (#2072) 2023-10-16 22:04:17 +02:00
Weiko
525603227a
Add default db schema for seeded workspace (#2061)
* Add default db schema for seeded workspace

* fix

* add if not exists

* add metadata seeds

* use setup-db for e2e

* fix tests
2023-10-16 16:59:46 +02:00
brendanlaschke
0cd644266b
Add S3 endpoint env variable (#2017)
* - add s3 endpoint

* fix .lock

* new line
2023-10-15 17:36:44 +02:00
Charles Bochet
986082d7a7 Complete win script setup 2023-10-14 22:41:18 +02:00
Charles Bochet
77729e4d4b
Update installation doc (#2019)
* Update installation doc

* Update install scripts

* Update install scripts
2023-10-14 13:43:45 +02:00
Ruslan
77c88bda6e
Fix bug where "metadata" scheme was not created automatically (#1971) and (#1831) (#2018)
* Fix bug where "metadata" scheme was not created automatically (#1971)

* logging on

* testing on render

* render upadte

* added setup-db.ts and updated package.json
2023-10-14 11:48:55 +02:00
Jérémy M
4e993316a6
feat: conditional schema based on column map instead of column field (#1978)
* feat: wip conditional schema based on column map instead of column field

* feat: conditionalSchema columnMap and singular plural

* fix: remove uuid fix

* feat: add name and label (singular/plural) drop old tableColumnName
2023-10-12 18:28:27 +02:00
martmull
8fbad7d3ba
1043 timebox prepare zapier integration (#1967)
* Add create api-key route

* Import module

* Remove required mutation parameter

* Fix Authentication

* Generate random key

* Update Read ApiKeyAbility handler

* Add findMany apiKey route

* Remove useless attribute

* Use signed token for apiKeys

* Authenticate with api keys

* Fix typo

* Add a test for apiKey module

* Revoke token when api key does not exist

* Handler expiresAt parameter

* Fix user passport

* Code review returns: Add API_TOKEN_SECRET

* Code review returns: Rename variable

* Code review returns: Update code style

* Update apiKey schema

* Update create token route

* Update delete token route

* Filter revoked api keys from listApiKeys

* Rename endpoint

* Set default expiry to 2 years

* Code review returns: Update comment

* Generate token after create apiKey

* Code review returns: Update env variable

* Code review returns: Move method to proper service

---------

Co-authored-by: martmull <martmull@hotmail.com>
2023-10-12 18:07:44 +02:00
Charles Bochet
3b9ceade76
Fix token not being refreshed (#1975)
* Fix token not being refreshed

* Fix token not being refreshed

* v2

* Fix
2023-10-11 17:12:39 +02:00
Weiko
f97228bfac
feat: add object/field create/update resolvers (#1963)
* feat: add object/field create/update resolvers

* fix tests
2023-10-11 12:03:13 +02:00
Jérémy M
017a0b1563
feat: refactor custom object (#1887)
* chore: drop old universal entity

* feat: wip refactor graphql generation custom object

* feat: refactor custom object resolvers

fix: tests

fix: import

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-10 10:50:54 +02:00
Weiko
ca492808cf
Add metadata query resolvers (#1929)
* Add metadata queries resolvers

* remove hello field

* fix linter
2023-10-09 22:54:14 +02:00
gitstart-twenty
2ff35083fb
chore: drop findMany and findUnique resolvers for custom objects (#1897)
Co-authored-by: v1b3m <vibenjamin6@gmail.com>
2023-10-06 10:49:54 +02:00
Jérémy M
047bb8014b
feat: add custom object create and update (#1869) 2023-10-05 14:33:13 +02:00
Tom Avalexing
27eab82f19
Workaround for bug on token conflict with front and storybook (#1843)
* workound to preview token

* remote token itself
2023-10-04 15:46:41 +02:00
Weiko
42e8869e0e
Add targetColumnMap to FieldMetadata (#1863)
* Add targetColumnMap to FieldMetadata

* fix

* remove console.log

* fix test
2023-10-04 15:17:53 +02:00
Aman
bc3fe59312
feat: added an enlint rule to enforce no-type-import (#1838)
* feat: added an enlint rule to enforce no-type-import

* Update style-guide.mdx

---------

Co-authored-by: aman1357 <101919821+aman1357@users.noreply.github.com>
2023-10-04 11:06:54 +02:00
Jérémy M
7e8e3ac1de
fix: typeorm migration datasource directory change (#1848) 2023-10-03 17:44:58 +02:00
Ayush Agrawal
77997674e5
Feat: Add "All assignees" in Task team member dropdown (#1763)
* implemented all select option FilterDropdownEntitySearchSelect and enabled it for tasks page filter

* created new filter operand IsNotNull for make a select all qraphql query, added internal state for tracking isAllEntitySelected

* used filterCurrentlyEdited to track if isAllEntitySelected is selected

* fixed filter button icon SelectAll Icon
2023-10-03 16:55:31 +02:00
Weiko
1e91c985df
Add a dedicated GQL server for metadata available on /meta (#1820) 2023-10-03 10:17:13 +02:00
Jérémy M
d3b39cad97
feat: add env security in dynamic resolvers (#1812)
* feat: add env security in dynamic resolvers

* fix: tests
2023-10-02 17:17:42 +02:00
Jérémy M
629bdbbf50
feat: dynamic graphQL schema generation based on user workspace (#1725)
* wip: refacto and start creating custom resolver

* feat: findMany & findUnique of a custom entity

* feat: wip pagination

* feat: initial metadata migration

* feat: universal findAll with pagination

* fix: clean small stuff in pagination

* fix: test

* fix: miss file

* feat: rename custom into universal

* feat: create metadata schema in default database

* Multi-tenant db schemas POC

fix tests and use query builders

remove synchronize

restore updatedAt

remove unnecessary import

use queryRunner

fix camelcase

add migrations for standard objects

Multi-tenant db schemas POC

fix tests and use query builders

remove synchronize

restore updatedAt

remove unnecessary import

use queryRunner

fix camelcase

add migrations for standard objects

poc: conditional schema at runtime

wip: try to create resolver in Nest.JS context

fix

* feat: wip add pg_graphql

* feat: setup pg_graphql during database init

* wip: dynamic resolver

* poc: dynamic resolver and query using pg_graphql

* feat: pg_graphql use ARG in Dockerfile

* feat: clean findMany & findOne dynamic resolver

* feat: get correct schema based on access token

* fix: remove old file

* fix: tests

* fix: better comment

* fix: e2e test not working, error format change due to yoga

* remove typeorm entity generation + fix jwt + fix search_path + remove anon

* fix conflict

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
Co-authored-by: corentin <corentin@twenty.com>
2023-09-28 16:27:34 +02:00
Jérémy M
a4cde44b13
feat: add cooldown to refresh token security (#1736) 2023-09-27 15:03:50 +02:00
Ronit Panda
8639cb921e
Chore: corrects syntax for type only imports (#1716)
* chore: removes replaces 'import type xxx from 'xxx'' with 'import { type xxx} from 'xxx'''

* chore: remove typed imports

* chore: remove typed imports

* chore: cleanup

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2023-09-26 11:47:35 +02:00
gitstart-twenty
26de4bab35
Chore(server): I should be able to define deal amount's currency (#1724)
I should be able to define deal amount's currency

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
2023-09-26 11:40:23 +02:00
gitstart-twenty
f60c209e39
Chore(backend): Enable attaching attachments to companies and people (backend) (#1726)
Enable attaching attachments to companies and people (backend)

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
2023-09-26 11:39:13 +02:00
Weiko
189bf4a627
Feature: add createCustomField resolver (#1698)
* Feature: add createCustomField resolver

* update mocks

* fix import

* invalidate workspace datasource cache after migration

* fix typo
2023-09-21 12:59:11 -07:00
Charles Bochet
2d758c990b
Fix merge issue flexible backend (#1685)
* Fix merge issue flexible backend

* Fix tests

* Try fix tests

* Try fix tests
2023-09-20 19:11:21 -07:00
Weiko
19365f6639
Add metadata migration setup (#1674)
* Add metadata migration setup

* add migration generator

* fix missing 'mocks'

---------

Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
2023-09-20 17:27:07 -07:00
Jérémy M
fc820f47b2
Feat/disable flexible backend (#1673)
* wip: refacto and start creating custom resolver

* feat: findMany & findUnique of a custom entity

* feat: wip pagination

* feat: initial metadata migration

* feat: universal findAll with pagination

* fix: clean small stuff in pagination

* fix: test

* fix: miss file

* feat: rename custom into universal

* feat: enable/disable flexible backend from env

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
2023-09-20 17:25:45 -07:00
Jérémy M
b1171e22a3
feat: add findAll and findUnique resolver for universal objects (#1576)
* wip: refacto and start creating custom resolver

* feat: findMany & findUnique of a custom entity

* feat: wip pagination

* feat: initial metadata migration

* feat: universal findAll with pagination

* fix: clean small stuff in pagination

* fix: test

* fix: miss file

* feat: rename custom into universal

* feat: create metadata schema in default database

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-09-20 17:24:13 -07:00
Charles Bochet
8c21dc8bba
Refactor fast follow on column move feature (#1665)
* Refactor fast follow on column move feature

* Fix lint
2023-09-19 16:42:11 -07:00
Aditya Pimpalkar
321488ad3c
feat: Column title menus (#1616)
* view field index to float

* gql codegen and package.json

* list implementation

* db call

* reposition logic

* lint fix

* edge case fix

* review changes

* handleColumnMove refactor

* dropdown recoil scope

* rename props

* Update server/src/database/migrations/20230727124244_add_view_fields_table/migration.sql

---------

Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
2023-09-19 15:27:02 -07:00
Weiko
ec90c77ec1
Refactor tenant ORM integration (#1650)
* Refactor tenant ORM integration

* fix tests
2023-09-19 17:58:28 +02:00
Charles Bochet
dba6f93826 Fix tests server 2023-09-17 08:41:46 -07:00