ChengLei Shao
4557f99949
chore(database): skip update association if through model is a view ( #2173 )
...
* chore(database): skip update association if through model is a view
* chore: test
2023-07-04 12:59:23 +08:00
YANG QIA
3aa65cb30c
feat: data visualization ( #2160 )
...
* feat(charts-v2): init
* chore(charts-v2): init chart renderer
* feat(chart-v2): add chart grid and initializer
* feat(chart-v2): improve ui
* feat(chart-v2): ui
* feat(charts-v2): query sort ui
* feat(charts-v2): field select component
* feat(charts-v2): improve ui && add query action
* feat(charts-v2): imporve ui, work in progress
* fix(charts-v2): chart renderer request api twice
* feat(charts-v2): add dimension formatter
* feat(charts-v2): filter, sort, limit
* feat(charts-v2): sql mode ui
* feat(charts-v2): support duplicate & sql mode
* fix(charts-v2): wrong defaultValue of json config
* feat(charts-v2): transformer ui
* feat(charts-v2): transformer
* chore(charts-v2): rename transfromer to transform
* feat(charts-v2): support cache
* feat(charts-v2): add acl provider
* chore(charts-v2): hide sql mode
* refactor(charts-v2): add renderer provider
* feat: collection permission check
* feat(charts-v2): add antd statistic
* test(charts-v2): backend
* chore: improve code
* test(charts-v2): add test
* chore: add Chinese translation
* fix(charts-v2): locale switch bug
* chore: add dependency
* feat(charts-v2): init chart config from query
* feat: change layout
* test: fix frontend test
* feat: improve auto infer
* fix: ui issues
* chore: translation
* fix: sql error
* fix: some issues
* feat: support table
* fix: bug
* chore: improve code and fix query
* feat: add config reference
* chore: add translation
* fix: process data due to pg issue
* test: fix parseBuilder
* chore: upgrade formily to 2.2.25
* fix: some issues and import style
* fix: bug when query with sort
* feat: parse enum data
* fix: yarn.lock
* fix: type error
* fix: infer bug and frontend test
* test: fix frontend
* fix: test
* feat: improve preview
* chore: downgrade formily
* feat: support associations, draft, in testing
* fix: typo
* test: frontend & backend
* fix: infer bug
* feat: measure selection of statistics
* fix: bug of group by alias
* fix: some issues
* fix: order issues
* fix: yarn.lock
* chore: fix filter include & 'data-visualization'
* style: improve style
* docs: add readme
* chore: add translation
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-06-30 20:49:44 +08:00
chenos
560c00cc3e
chore(versions): 😊 publish v0.10.0-alpha.5
2023-06-29 15:34:40 +08:00
chenos
f3f91bd649
chore(versions): 😊 publish v0.10.0-alpha.4
2023-06-27 13:50:59 +08:00
chenos
83bf8ea3bb
chore(versions): 😊 publish v0.10.0-alpha.3
2023-06-25 14:04:19 +08:00
Junyi
6a589543f9
refactor(db): add batch logic to update for better performance ( #2070 )
...
* refactor(db): add batch logic to update for better performance
* test(plugin-workflow): fix test cases
* fix(db): treat belongsTo field in update values as foreignKey
* fix(db): also handle object with id for belongsTo field
* fix(db): avoid 0 as falsy
* fix(db): fix test case
2023-06-21 16:37:06 +08:00
chenos
0b06e2cd69
chore(versions): 😊 publish v0.10.0-alpha.2
2023-06-20 11:51:16 +08:00
jack zhang
d76e8fb87f
refactor: upgrade umi
, react
and react-router-dom
( #1921 )
...
* refactor: update umi version 3.x to version 4.x
* refactor: update react-router-dom version to 6.x
* refactor(react-router-dom): change Layout Component `props.children` to `<Outlet />`
* refactor(react-router-dom): change <Route /> props and <RouteSwitch /> correct
* refactor(react-router-dom): replace `<Redirect />` to `<Navigate replace />`
* refactor(react-router-dom): replace `useHistory` to `useNavigate`
* refactor(react-router-dom): replace `useRouteMatch` to `useParams`
* refactor(react-router-dom & dumi): fix <RouteSwitch /> & umi document bug
* refactor(react-router-dom): `useRoutes` Optimize `<RouteSwitch />` code
* refactor(react-router-dom): update `Route` types and docs
* refactor(react-router-dom): optimize RouteSwitch code
* refactor(react-router-dom): `useLocation` no generics type
* refactor(react-router-dom): add `less v3.9.0` to `resolutions` to solve the error of `gulp-less`
* refactor(react-router-dom): fix `<RouteSwitch />` `props.routes` as an array is not handled
* chore: upgrade `dumi` and refactor docs
* fix: completed code review, add `targets` to solve browser compatibility & removed `chainWebpack`
* refactor(dumi): upgraded dumi under `packages/core/client`
* refactor(dumi): delete `packages/core/dumi-theme-nocobase`
* refactor(dumi): degrade `react` & replace `dumi-theme-antd` to `dumi-theme-nocobase`
* refactor(dumi): solve conflicts between multiple dumi applications
* fix: login page error in react 17
* refactor(dumi): remove less resolutions
* refactor(dumi): umi add `msfu: true` config
* fix: merge bug
* fix: self code review
* fix: code reivew and test bug
* refactor: upgrade react to 18
* refactor: degrade react types to 17
* chore: fix ci error
* fix: support routerBase & fix workflow page params
* fix(doc): menu externel link
* fix: build error
* fix: delete
* fix: vitest error
* fix: react-router new code replace
* fix: vitest markdown error
* fix: title is none when refresh
* fix: merge error
* fix: sidebar width is wrong
* fix: useProps error
* fix: side-menu-width
* fix: menu selectId is wrong & useProps is string
* fix: menu selected first default & side menu hide when change
* fix: test error & v0.10 change log
* fix: new compnent doc modify
* fix: set umi `fastRefresh=false`
* refactor: application v2
* fix: improve code
* fix: bug
* fix: page = 0 error
* fix: workflow navigate error
* feat: plugin manager
* fix: afterAdd
* feat: update docs
* feat: update docs
* fix: page tab change not work
* fix: login redirect query param doesn't work
* fix: bug and doc
* feat: update docs
* fix: ci error
* fix: merge main
* feat: update docs
* feat: update docs
* feat: update docs
* chore(versions): 😊 publish v0.10.0-alpha.1
* fix: translations
* chore: backend node test max old space size
* docs: add useSearchParams
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: ChengLei Shao <chareice@live.com>
2023-06-20 11:48:02 +08:00
ChengLei Shao
97106c28e8
chore(database): return emtpy fields when attributes not specified ( #2034 )
...
* test: append nested field
* chore: return emtpy fields when attributes not specified
* fix: test
* fix: data template error
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-06-12 18:44:43 +08:00
ChengLei Shao
b401c54442
chore(database): append inherit inspect attribute with eager load ( #2010 )
2023-06-08 17:58:39 +08:00
ChengLei Shao
e8e9c038e3
fix: eager load with nested association ( #2002 )
2023-06-07 15:31:29 +08:00
ChengLei Shao
d7e6b7b320
feat(database): add firstOrCreate and updateOrCreate in repository ( #1943 )
...
* chore: tmp commit
* feat: firstOrCreate
* chore: firstOrCreate
* feat: updateOrCreate
* chore: test
* feat: values to filter
* feat: firstOrCreate http api
* fix: build error
2023-06-06 11:36:18 +08:00
ChengLei Shao
57d47371da
feat(database): append child collection name after eager load ( #1978 )
...
* test: eager load with inherit collection name
* feat: append child collection name after eager load
* chore: call build eager loading tree
2023-06-06 11:30:35 +08:00
ChengLei Shao
ad726e6a94
chore(database): pg oid and name data type in view ( #1982 )
2023-06-05 10:56:34 +08:00
ChengLei Shao
c7b9e6ac51
feat: infer belongs to association field in view collection ( #1756 )
...
support belongs to field in view collection
2023-06-04 13:04:56 +08:00
ChengLei Shao
d86da18006
fix(database): missing reference when rewrite parent field ( #1977 )
2023-06-03 00:06:54 +08:00
ChengLei Shao
4b9150d448
fix(database): update association values with nested associations ( #1970 )
...
* fix: update association values with nested associations
* fix: isReverseAssociationPair
2023-06-01 23:27:57 +08:00
ChengLei Shao
82e6c7bb40
chore(database): sort many to many associations by primary key by … ( #1948 )
...
* chore(database): sort belongs to many associations by primary key by default
* chore: test
* chore: force sync in test
2023-05-28 22:05:25 +08:00
ChengLei Shao
29e66f675e
fix: eager load belongs to many with through table ( #1946 )
...
* fix: eager load belongs to many with through table
* fix: test
* fix: instance accessor
2023-05-27 23:23:09 +08:00
chareice
7d1a087b50
fix: eager load with long through table name
2023-05-27 17:35:30 +08:00
chenos
d7f21460c6
chore(versions): 😊 publish v0.9.4-alpha.2
2023-05-26 17:05:46 +08:00
ChengLei Shao
ea6f7accc3
fix: parse nested associations in filterParser ( #1941 )
2023-05-26 14:48:20 +08:00
chenos
9c94840c6b
chore(versions): 😊 publish v0.9.4-alpha.1
2023-05-25 22:48:39 +08:00
ChengLei Shao
27a74906ff
chore: load view collection when source not found ( #1930 )
2023-05-25 21:46:58 +08:00
ChengLei Shao
7080db72eb
chore: update guard with array contains null ( #1922 )
2023-05-24 11:24:15 +08:00
katherinehhh
e299f5452c
refactor: initialization when switching field components ( #1915 )
...
* fix: toManyNester only display one data
* fix: sub-nester
* fix: initialValue
* fix: [null]
* fix: record picker initValue
* fix: initValue filter
* fix: association select initialValue filter
* fix: association select initialValue filter
* fix: [null]
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-05-24 10:36:29 +08:00
ChengLei Shao
6fb569cf0d
fix: eager load with belongs to many with custom source key ( #1913 )
2023-05-23 15:03:32 +08:00
ChengLei Shao
5288cbb1cf
fix: eager load belongs to many association ( #1906 )
2023-05-22 16:09:37 +08:00
被雨水过滤的空气-Rairn
e27cff15c9
feat: support to-multi field variables ( #1680 )
...
* feat: support to parse association variable
* chore: change comment
* feat(operators): support array as value in string operator
* refactor: add a special marker
* feat: date support to-multi field variables
* feat: support for notIn
* refactor: rename
* test: fix test error
* Revert "test: fix test error"
This reverts commit 3d139698f6295678a39b77b08c88427f9fafe247.
* Revert "refactor: rename"
This reverts commit 2e16225c038e18ee25f1136d510cb4746bd9932f.
* Revert "feat: support for notIn"
This reverts commit 2087e5c4da1429b260890d5136c714ad541955a9.
* Revert "feat: date support to-multi field variables"
This reverts commit 0d7b2db0512ba7b632a2ab61f37cf83c0d06b9a1.
* Revert "refactor: add a special marker"
This reverts commit 7ba2e4bc00d79f60a2e90340df65b2938985750a.
* Revert "feat(operators): support array as value in string operator"
This reverts commit 0897cd19e9863248ef9e2af6c91ee14e805778a4.
* refactor: improve code
* test: fix can not import style file
* feat: only eq and ne oprators support mutil relation fields
* test: add example.test.ts
* refactor: remove jsonata
* Revert "test: add example.test.ts"
This reverts commit 0ad2ea458cd8a964891490d2021a5b000f391395.
* test: fix error
* fix: fix error
* refactor: remove async
* chore: rebase
* test: fix error
* test: fix errors
2023-05-21 17:18:35 +08:00
ChengLei Shao
aabc681245
fix: append belongs to association with fields ( #1894 )
2023-05-20 21:31:27 +08:00
ChengLei Shao
ccdc05b30b
fix: appends belongs to association ( #1893 )
...
* fix: merge stage in eager loading tree
* chore: test
2023-05-20 20:36:07 +08:00
ChengLei Shao
c0ef071baf
Refactor/append fields ( #1883 )
...
* chore: eager loading tree
* feat: load eager loading tree
* feat: merge stage of eager loading
* feat: merge stage of belongs to
* feat: merge stage of has one
* feat: merge stage of belongs to many
* chore: test
* chore: print tree
* chore: using eager loading tree in repository find
* fix: empty ids load
* fix: belongs to many query
* fix: load belongs to association
* fix: eager load data accessor
* fix: has many
* fix: test
* fix: filter with appends
* chore: remove handle appends query
* chore: console.log
* chore: console.log
* fix: test
2023-05-19 16:39:00 +08:00
ChengLei Shao
ac5f3fd67e
chore: pg sql parser ( #1890 )
2023-05-19 15:30:44 +08:00
chenos
e0646650f0
fix(database): migrations table name missing table prefix
2023-05-18 14:51:51 +08:00
ChengLei Shao
f8fa36d016
feat: repository aggregate method ( #1829 )
...
* feat: repository aggregate method
* chore: aggregate with distinct
* feat: has many repository aggregation
* feat: belongs to many repository aggregation
* chore: using model aggregate method
* chore: aggregate with association filter
* chore: aggregate type
* chore: type error
2023-05-11 15:16:33 +08:00
chenos
cf0a921f85
chore(versions): 😊 publish v0.9.3-alpha.1
2023-05-11 12:49:18 +08:00
katherinehhh
55efa40cdd
refactor: association field ( #1838 )
...
* feat: association field
* fix: bug
* refactor: association field
* style: style improve
* style: style improve
* refactor: support subtable
* refactor: support file collection
* refactor: locale improve
* refactor: subtable improve
* refactor: association select improve
* refactor: association select improve
* refactor: association select improve
* refactor: useAssociationNames
* refactor: enable link
* refactor: selector
* refactor: selector
* refactor: locale improve
* refactor: on demand loading of relational data
* refactor: locale improve
* refactor: select button
* refactor: association field
* refactor: formformBlock provider
* refactor: formformBlock provider
* refactor: internalSelect recordPicker
* refactor: formBlocklockProvider
* fix: addNewer schema
* fix: useServiceOptions
* fix: useCreateActionProps
* fix: useCreateActionProps
* refactor: nester delete
* refactor: nester delete in detail
* refactor: subTable suport select
* refactor: subTable suport select
* style: style improve
* style: style improve
* chore: fileManger
* fix: association readPrety
* fix: filemanger
* refactor: field mode
* refactor: enable link
* chore: error message
* refactor: association schemaInitialize
* refactor: association schemaInitialize
* refactor: currentMode
* refactor: field mode default value
* fix: file manage readPretty
* fix: appends
* chore: file manage readPretty
* fix: updateAssociationValues
* fix: updateAssociationValues
* fix: updateAssociationValues
* fix: nester appends
* fix: nester appends
* fix: tree collection association fields
* fix: tree collection association fields
* fix: nester appends
* fix: subtable to select field value missing
* fix: subtable to select field value missing
* fix: compatible with historical blocks
* fix: compatible with historical blocks
* fix: compatible with historical blocks
* feat: add migration
* fix: filter block allow add new
* fix: compatible with historical blocks
* fix: skip if not RecordPicker
* fix: compatible with historical blocks
* fix: detail block not support nester
* fix: association select support data scope and sort setting
* fix: appends on demand loading
* fix: asociationSelect support multiple
* fix: recordPicker -> AssociationField
* fix: add migration
* fix: audit logs not show assication data
* fix: flattenNestedList
* refactor: file manager field mode
* refactor: field mode refactor
* fix: subtable action
* fix: subtable appends
* refactor: code improve
* fix: nester add new
* feat: sub table
* fix: data scope not effect immediately
* fix: association add new
* fix: association field failed to add new and mutual influence
* style: style improve
* style: style improve
* refactor: updateAssociationValues
* refactor: form init values
* refactor: select options
* fix: form initialValues
* fix: record picker values
* fix: field value change when field mode change
* fix: select data scope
* feat: add migration
* fix: table column enable link
* fix: table column enable link
* refactor: locale improve
* fix: migration
* fix: mutiple config
* fix: readPretty enable link
* fix: appends on demand
* fix: enable link style
* refactor: locale improve
* refactor: locale improve
* feat: sub-form migration
* fix: skip migration
* fix: translation
* fix: skip migration
* fix: getLabelFormatValue
* fix: error TS2339: Property 'find' does not exist on type 'string | SchemaEnum<any>'
* refactor: remove the logic code for converting old record picker
* refactor: locale
* refactor: locale
* fix: sub-table should not support add new
* refactor: code improve
* refactor: locale
* fix: compatibility history Subtable
* fix: improve
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: Chareice <chareice@live.com>
2023-05-11 12:47:31 +08:00
ChengLei Shao
ecd7540f7a
fix: tree with fields option ( #1833 )
2023-05-10 16:32:36 +08:00
ChengLei Shao
8183ff5564
chore: should not return children property when child nodes are empty ( #1825 )
2023-05-09 16:48:40 +08:00
ChengLei Shao
088acd906d
fix: tree with sort field ( #1822 )
2023-05-09 12:10:53 +08:00
ChengLei Shao
2c29daedb5
fix: filter with appends ( #1819 )
2023-05-08 11:18:42 +08:00
ChengLei Shao
7b550ce5aa
Fix/filter by array field ( #1813 )
...
* test: filter by association array field
* fix: match operator in pg
* chore: cast
2023-05-07 23:08:41 +08:00
ChengLei Shao
b3d4e47ef3
Fix/empty tree query ( #1814 )
...
* fix: empty tree query
* fix: traverse get
2023-05-07 23:08:20 +08:00
ChengLei Shao
54432a4314
fix: update tree node ( #1812 )
...
* fix: update tree node
* chore: test
2023-05-06 15:14:05 +08:00
ChengLei Shao
258f4e980d
fix: list trees ( #1810 )
...
* fix: list trees
* fix: test
2023-05-06 14:28:13 +08:00
ChengLei Shao
b8c85c91b4
test: filter nested association ( #1802 )
...
* test: filter nested association
* chore: log
* fix: tree instance to json
* ci: test case
* chore: test
* chore: log
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-05-06 07:55:26 +08:00
ChengLei Shao
e5d286a131
fix: tree performance ( #1779 )
...
* chore: tree performance
* chore: build index value
* chore: get tree index
* fix: children key
* fix: test
* fix: tree child to json
* fix: tree with fields
2023-05-05 10:33:44 +08:00
ChengLei Shao
d4636311e8
Fix/recreate association field ( #1789 )
...
* chore: test
* fix: recreate association with same name as field
2023-05-03 08:05:55 +08:00
chenos
923f6e7884
chore(versions): 😊 publish v0.9.2-alpha.4
2023-04-26 22:33:55 +08:00
chenos
9756dd134b
chore(versions): 😊 publish v0.9.2-alpha.3
2023-04-25 13:15:40 +08:00