Commit Graph

26 Commits

Author SHA1 Message Date
ChengLei Shao
036baaa443
fix: toJSON with null association (#260) 2022-04-03 19:45:59 +08:00
ChengLei Shao
1db71b166d
feat: sortBy through table value (#209) 2022-02-27 23:02:26 +08:00
ChengLei Shao
3be12644ed
feat: sort in collection fields (#207)
* feat: sort in collection fields

* fix: sort should call before hidden

* mov: test file

* refactor: toJSON with traverseJSON

* fix: toJSON test

* fix: sortBy with hidden field
2022-02-26 15:12:18 +08:00
chenos
449c307eb9 fix(database): add test cases 2022-02-23 22:27:08 +08:00
chenos
872ee79146 refactor(database): model toJSON without the hidden fields 2022-02-23 18:18:38 +08:00
chenos
732d31009e v0.6 2021-12-06 21:23:34 +08:00
ChengLei Shao
05ecb25d1b
feat: create nocobase app with simple & quickstart option (#87)
* feat: create nocobase app with simple & quickstart option

* chore: delete template file

* create-nocobase-app: add env API_PORT fallback

* chore: log

* env default fallback

* move config dir

* change has yarn

* chore: prettier

* fix: npm running issue

* database testing support sqlite

* once...

* chore: typo

* fix: sqlite test

* update readme

* feat: copy .env.example to .env at create-nocobase-app

* create-nocobase-app: change sqlite3 to github master

* create-nocobase-app: .env template

* create-nocobase-app: update .env

* chore: typo

* update README

* chore: Application constructor

* feat: sqlite demo data support

* fix test

* fix: application error

* chore: plugin-client run sql

* fix: application createCli

* fix: can choose whether to register actions

* chore: model compile error

* fix: support sqlite

* fix: demo data set index sequence on postgresql

* chore: code reduce

* fix: operators are compatible with sqlite

* add impor demo option to init command

* update env

Co-authored-by: chenos <chenlinxh@gmail.com>
2021-10-18 12:49:37 +08:00
chenos
55f6564ea8 feat: improve code 2021-09-29 07:38:05 +08:00
chenos
336e0b17b8 feat: improve code 2021-09-09 23:57:01 +08:00
chenos
af02a895c3 lots of updates 2021-07-11 22:20:54 +08:00
chenos
ce4a22fbb9 style: code formatting 2021-03-28 13:34:51 +08:00
Junyi
9a27eac0e0
fix: ignore some typescript error (#59) 2021-01-23 17:12:09 +08:00
chenos
eafdddcd4d fix: allow set null with updateAssociations 2021-01-02 22:30:13 +08:00
Junyi
b2fe087fc2
Feature: custom operators for querying (#48)
* feat: add some custom operators for querying

* feat: add some custom operators for querying

* test: fix cases

* improve custom operator function

* improve filter field component

Co-authored-by: chenos <chenlinxh@gmail.com>
2020-12-28 21:08:13 +08:00
chenos
4d07ef5116 chore: allow specific build package 2020-12-24 07:35:53 +08:00
chenos
40bcfb7edc fix: remove through.updateAssociations 2020-12-22 17:28:30 +08:00
chenos
93d8426c84 feat(database): add afterUpdateAssociations hook 2020-12-21 14:15:08 +08:00
Junyi
5662509f4c
Feature/sort (#38)
* refactor: change sort strategy from offset to targetId

* fix: remove unnecessary query to optimize performance

* refactor: change sort api to allow object

* refactor: change function member positions

* fix: test case names

* fix: static to instance
2020-12-12 16:38:08 +08:00
Junyi
d1372e273a
refactor: change sort strategy from offset to targetId (#37)
* refactor: change sort strategy from offset to targetId

* fix: remove unnecessary query to optimize performance
2020-12-11 22:36:02 +08:00
Junyi
841249f58c
Feature/sort (#36)
* feat: add sort value initialization via beforeCreate hook

* fix: after reinitialization, hooks are lost

* test: temp test for hook

* fix: hooks defined in the table options does not work

* refactor: change sort config into sort type field and fix updateAssociations to create with foreignKey

* refactor: abstract utility functions

* fix: type definition

* fix: type and where value type

Co-authored-by: chenos <chenlinxh@gmail.com>
2020-12-11 15:41:03 +08:00
chenos
437c49d211 refactor: change the field type names to uppercase 2020-12-10 14:47:13 +08:00
Junyi
05f815655f
Fix: change strategy from add to set for updateAssociations (#33)
* test: add belongsTo case

* fix: change update strategy from add to set
2020-12-06 14:28:23 +08:00
Junyi
1980464f63
Fix/model update associations (#29)
* refactor: change updateAssociations from set null to small grouped handling

* feat: add transaction for updateAssociations

* test: add more basic cases

* fix: pick options for different model methods

* fix: adjust options picking strategy
2020-12-04 17:20:08 +08:00
Junyi
cd0b357887
Test/list (#19)
* test: add more case for list

* feat: allow order by associations in sorting

* fix: add more utils test in resourcer and fix except usage

* test: fix cases

* fix: page default value and max page size

* fix: page params and cases

* fix: list params

* fix: constants in list action

* fix: count when include, attributes when except and cases

* test: add case for hasMany.
2020-11-23 16:49:46 +08:00
Junyi
85e42f95a5
test: refactor test in database and add more (#17) 2020-11-19 23:30:30 +08:00
chen
e5d30b30ba first commit 2020-10-24 15:34:43 +08:00