Commit Graph

1411 Commits

Author SHA1 Message Date
ChengLei Shao
dbdd587b71
chore(database): clean invalid associations in collection model when set field failed (#2720)
* chore(database): clean invalid associations in collection model when set field failed

* fix: import

* chore: test
2023-09-27 22:03:04 +08:00
被雨水过滤的空气-Rain
a57c93d35b
feat: support e2e (#2624)
* chore: upgrade vitest to v0.34.3

* feat: setup NocoBase

* chore: preparing test env

* test: add a test of rigster

* refactor: rename test dir to testUtils

* chore: add tests

* chore: add ci for e2e

* chore: fix ci

* chore: avoid error in CI

* chore: add some utils for test

* chore: make more stable

* chore: should not close server in CI

* chore: add comments

* chore: change output dir

* fix: should use current branch to run tests

* chore: should request systemSettings by api in e2e

* chore: should build first in e2e CI

* chore: remove key

* chore: use execa to replace execSync

* refactor: extract test suite

* chore: add gotoPage

* chore: update uid of pageSchema

* chore: update collection name

* chore: use faker.js to generate data

* refactor: extract page config

* chore: ignore for association fields in faker

* chore: add testid

* chore: optimize action designer

* chore: associationFilter.Item designer

* chore: AssiciationFilter & BlockItem

* Revert "chore: AssiciationFilter & BlockItem"

This reverts commit b418df650e.

* Revert "chore: associationFilter.Item designer"

This reverts commit 7aa4d35c1a.

* Revert "chore: optimize action designer"

This reverts commit ff717b972f.

* chore: optimize Designer

* chore: compat with older browsers

* chore: use describe to avoid hooks is not run

* chore: add no-floating-promises to eslint rules

* chore: support argv

* chore: demo

* chore: better testId

* chore: change .e2e.ts to .test.ts

* fix(SchemaInitializer): avoid error

* refactor: move e2eUtils.ts to @nocobase/test

* fix: move e2eUtils to client

* chore: remove uselesscode

* refactor: add .env.e2e.example

* chore: optimize log

* refactor: use mockPage to replace gotoPage

* chore: update env.e2e

* chore: add APP_BASE_URL

* chore: gitigore

* test: add test related of menu

* chore: add SOCKET_PATH in env

* fix(vscode): load env when using vscode plugin
2023-09-27 20:00:17 +08:00
ChengLei Shao
ce879d2dda
feat(application): cron job in application (#2730) 2023-09-27 19:31:14 +08:00
chenos
729fdd04b7 feat: add SOCKET_PATH env 2023-09-27 15:30:25 +08:00
katherinehhh
4092451bc9
fix(association-field): sub-table cannot move (#2727) 2023-09-27 11:08:38 +08:00
katherinehhh
49c2fbf45d
refactor: file association field should default to using preview field as title field (#2718) 2023-09-26 21:25:40 +08:00
Rain
91721a4e8a fix(SchemaInitializer): avoid error 2023-09-26 16:39:33 +08:00
Rain
b6a6431c6f fix(SchemaInitializer): avoid crashing 2023-09-26 16:16:06 +08:00
katherinehhh
97f06d03d3
refactor: view collection support jsonb (#2719) 2023-09-26 16:09:14 +08:00
chareice
36f512f4b7 chore: jsonb field type map 2023-09-26 15:00:25 +08:00
被雨水过滤的空气-Rain
ff16f59908
perf: improve the UX of SchemaInitializer (#2666)
* perf: improve the UX of SchemaInitializer

* fix: fix error of Charts block

* fix: fix fields

* fix: fix search

* chore: avoid crash

* chore: fix build

* chore: avoid crash

* refactor: rename SelectCollection to SearchCollections

* refactor: increased code versatility for improved reusability

* fix: fix Add chart

* perf: workflow

* refactor: remove useless code

* fix: fix block template

* fix: should clean search value when creating a block
2023-09-26 13:47:20 +08:00
katherinehhh
8db9fda61b
fix: fileManager did not close drawer after selecting files (#2716) 2023-09-26 11:37:21 +08:00
katherinehhh
261678dc56
fix: association block should not close drawer after deleting data (#2717) 2023-09-26 11:36:45 +08:00
katherinehhh
d7a00d2581
fix: action linkage rule not effect in tree collection (#2713) 2023-09-26 09:43:09 +08:00
katherinehhh
e90eec7031
fix: useAssociationNames (#2714) 2023-09-25 22:04:20 +08:00
katherinehhh
291859d6b5
refactor: attachment field support size config (#2552)
* refactor: attachment field support size config

* style: style improve
2023-09-25 18:21:08 +08:00
katherinehhh
7dd7a65a38
feat: association support select cascade for tree collection field (#2514)
* feat: association field support cascade select

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: locale improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: cascadeSelect support m2m association field

* refactor: cascadeSelect support m2m association field

* refactor: code improve

* feat(database): append with options

* feat: recursively load parent instances

* chore: test

* refactor: code improve

* fix: load with appends

* refactor: code improve

* chore: test

* refactor: code improve

* refactor: code improve

* refactor: code improve

* chore: load with belongs to many

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

---------

Co-authored-by: ChengLei Shao <chareice@live.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-09-25 18:18:14 +08:00
ChengLei Shao
505c23b4e1
feat(database): append tree parent recursively (#2573)
* feat(database): append with options

* feat: recursively load parent instances

* chore: test

* fix: load with appends

* chore: test

* chore: load with belongs to many

* chore: test
2023-09-25 18:17:19 +08:00
ChengLei Shao
edbd15ab5b
feat: support load belongs to association with collection that without primary key (#2529)
* test: find without pk

* feat: load root models in eager loading tree
2023-09-25 15:34:36 +08:00
ChengLei Shao
376a91b8ec
fix(gateway): should not refresh when application start from error recover (#2711)
* fix(gateway): should not refresh when application start from error recover

* chore: recover option
2023-09-25 15:26:52 +08:00
YANG QIA
89635982b4
feat(db): add sql collection (#2419)
* feat(db): add sql collection

* feat: frontend

* perf: issue of select

* fix: sql model

* fix: sql collection schema

* fix: implement sql collection

* fix: dependency

* fix: remove type declaration in actions

* fix: backend test

* chore: remove some ops of block using sql collection

* chore: remove sql collections from Form and Kanban

* feat: add execute button to sql input

* feat(backend): support infer fields by parsing sql

* feat(frontend): support infer interface by parsing sql

* fix: fix update issues and improve

* fix: update issue

* chore: update yarn.lock

* fix: fix T-1548

* fix: fix T-1544

* fix: fix T-1545

* fix: fix T-1549

* fix: test

* fix: fix T-1556

* fix: remove map action diviver

* chore: debug

* chore: remove schema of sql collection

* fix: sql collection schema

* chore: remove debug log & fix T-1555

* fix: fix T-1679

* fix: sql update issue

* fix: sql attribute issue

* fix: bug of star attribute

* fix: test

* fix: test

* fix: reset fields when updating sql collection

* fix(collection-manager): redundant fields after set collection fields

* fix: test

* fix: destory with individuals hook

* chore: save

* chore: test

* fix: fields sync issue

* fix: remove underscored option of sql collection

* chore: mutex in fields.afterDestroy

* fix: test

* chore: yarn.lock

* chore: update collections.setFields

* feat: improve sql input

* fix: fix T-1742 & improve

* chore: fix conflicts

* fix: workspace

* fix: build

* fix: test

* chore: add translations

* fix: reviewed issues

* chore: update yarn.lock

---------

Co-authored-by: ChengLei Shao <chareice@live.com>
2023-09-25 15:03:23 +08:00
katherinehhh
52198e57f9
fix: inherited collection failed to select (#2710) 2023-09-25 10:21:12 +08:00
katherinehhh
6bc4434d63
fix: form-data-template failed to clear option (#2709) 2023-09-25 09:43:22 +08:00
katherinehhh
51edb770bb
fix: tableoid options value of association field in filter is incorrect (#2705)
* fix: tableoid option value of association field in filter is incorrect

* fix: the saving method of the association field creation button is not effective

* refactor: code improve

* refactor: code improve

* refactor: code improve
2023-09-24 20:02:34 +08:00
katherinehhh
d83afc52ec
fix: saving method of association field creation button is not effect (#2706)
* fix: the saving method of the association field creation button is not effective

* refactor: code improve
2023-09-24 19:17:55 +08:00
chenos
e522e1f742 fix: upgrade failed 2023-09-24 11:41:26 +08:00
jack zhang
836b34a6a4
fix: gen tsconfig.paths.json bug (#2708)
* fix: gen tsconfig.paths.json  bug

* fix: load remote plugin error

* fix: bug
2023-09-23 10:52:14 +08:00
mytharcher
8eb634459d chore(versions): 😊 publish v0.14.0-alpha.6 2023-09-22 15:49:50 +08:00
mytharcher
bffa53a04e chore(versions): 😊 publish v0.14.0-alpha.5 2023-09-22 15:47:28 +08:00
katherinehhh
49b75b6ab6
refactor: view collection support add m2o association field (#2422)
* refactor: view collection support add m2o association field

* refactor: code improve
2023-09-22 11:09:53 +08:00
被雨水过滤的空气-Rain
9f147085a5
fix: fix operator called of date field (#2701) 2023-09-22 10:51:17 +08:00
katherinehhh
b0069ca64a
fix: deep level association field adding error (#2700) 2023-09-22 10:34:35 +08:00
Junyi
60aeba4a12
fix(cli): fix template file mode (#2697) 2023-09-22 05:35:58 +08:00
mytharcher
d20398f73f chore(versions): 😊 publish v0.14.0-alpha.4 2023-09-21 23:25:31 +08:00
ChengLei Shao
c88c91e908
fix: collection schema not exists (#2669)
* fix: collection schema not exists

* chore: test
2023-09-21 17:19:13 +08:00
ChengLei Shao
5f34970cfb
fix: core doc filter params (#2695) 2023-09-21 16:00:33 +08:00
chenos
945bcb194e
feat: add testid (#2434)
Co-authored-by: Rain <958414905@qq.com>
2023-09-21 14:54:27 +08:00
ChengLei Shao
de849b267c
feat(database): support read ssl file in database config (#2689) 2023-09-21 11:55:18 +08:00
ChengLei Shao
10e46b21f0
test: should correctly parse the command options (#2688) 2023-09-21 10:03:39 +08:00
jack zhang
196bec0ede
fix: build bug (#2685) 2023-09-20 17:56:36 +08:00
ChengLei Shao
56d1d1b85f
feat(database): perform data validation before the update/create operation (#2681)
* chore: test

* chore: tmp commit

* feat: value guard check
2023-09-20 11:53:56 +08:00
jack zhang
dfe77ca2fb
fix: build bug (#2683) 2023-09-20 11:46:06 +08:00
katherinehhh
64b5471084
refactor: association block acl improve (#2682) 2023-09-20 11:42:28 +08:00
katherinehhh
ebc1d1afb4
refactor: acl collection field provider (#2679) 2023-09-19 20:51:43 +08:00
ChengLei Shao
91095d8fe0
chore: test (#2677) 2023-09-19 18:43:04 +08:00
katherinehhh
fc609bafb9
style:form-item style improve (#2678)
* style: setting page style improve

* style: setting page style improve
2023-09-19 17:50:25 +08:00
katherinehhh
bc5ecc9b5f
fix(acl): association field acl check error (#2675)
* fix: association field acl check

* fix: association field acl check

* fix: import action form field acl check error
2023-09-19 17:26:29 +08:00
ChengLei Shao
630c6f2d79
chore(command): set command handle by ipc server or not (#2660)
* chore: tmp commit

* feat: app command

* chore: return error when not handle by ipc server

* chore: command handle by ipc server

* chore: api name

* Update pm.ts

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-09-19 14:39:54 +08:00
YANG QIA
4fffa07998
fix(auth): user role not found (#2674) 2023-09-19 10:58:19 +08:00
katherinehhh
64dc385eb3
fix: file association field cannot set file manager as field component (#2672) 2023-09-18 21:10:35 +08:00