Commit Graph

173 Commits

Author SHA1 Message Date
Junyi
944f327212
fix(plugin-workflow): fix migration on table prefix (#1478)
* fix(plugin-workflow): fix migration on table prefix

* fix(plugin-workflow): fix migration version check

* fix: ci

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-02-22 12:05:59 +08:00
Junyi
68062b969b
fix(plugin-workflow): fix migration for calculation (#1476) 2023-02-20 23:40:15 +08:00
Junyi
1705b10b98
fix(plugin-workflow): fix schedule trigger number type repeat (#1475) 2023-02-20 21:48:15 +08:00
Junyi
4fbad75ea9
Feat(plugin-workflow) manual instruction (#1339)
* feat(plugin-workflow): add prompt node

* feat(plugin-workflow): useValueGetter for all instructions and triggers

* feat(plugin-workflow): add workflow block initializer

* refactor(plugin-workflow): change prompt node type to manual

* feat(plugin-workflow): add ModeConfig component for mode

* feat(plugin-workflow): add todo drawer

* feat(plugin-workflow): add block value provider

* feat(plugin-workflow): improve todo block and drawer

* fix(plugin-workflow): fix instruction name in test cases

* fix(plugin-workflow): fix test cases

* refactor(plugin-workflow): change param type of collection field initializer

* feat(plugin-workflow): add filter types for getters

* fix(plugin-workflow): fix assignees variable

* fix(plugin-workflow): filter todo by exist workflow

* fix(plugin-workflow): fix duplicated save action in manual config

* fix(plugin-workflow): fix transaction

* feat(plugin-workflow): destroy workflow will be cascaded

* fix(plugin-workflow): fix merge

* fix(plugin-workflow): fix locale

* fix(plugin-workflow): allow open ui view when executed

* fix(plugin-workflow): change todo table filter

* feat(plugin-workflow): use formula for calculation

* fix(plugin-workflow): fix variable template regexp

* fix(plugin-workflow): fix sub-options logic with types

* refactor(plugin-workflow): drop useless component

* fix(plugin-workflow): fix manual node action button

* feat(plugin-workflow): add new variable input component

* refactor(plugin-workflow): change all variable to new component

* fix(plugin-workflow): fix type

* fix(plugin-workflow): fix functions init

* fix(plugin-workflow): change jsonb to json for stable order

* fix(plugin-workflow): fix duplicated field name when initialize

* fix(plugin-workflow): fix manual result in manual block

* test(plugin-workflow): log field initializer props

* fix(plugin-workflow): fix nullable arguments

* test(plugin-workflow): test initializer fields schema

* fix: observer

* fix(plugin-workflow): adjust hints

* fix(plugin-workflow): fix locale and cursor in variable input

* refactor(plugin-workflow): change status keys

* fix(plugin-workflow): fix parallel instruction

* fix(plugin-workflow): fix calculation migration

* fix(plugin-workflow): move tasks native filter to server

* fix(plugin-workflow): fix manual options for variable

* fix(plugin-workflow): fix conflict

* fix(plugin-workflow): fix some bugs

* fix(plugin-workflow): fix todo list filter and locale

* fix(plugin-workflow): fix update action of workflow

* refactor(plugin-workflow): add legacy condition calculation as basic engine

* fix(plugin-workflow): fix type

* fix(plugin-workflow): fix condition basic calculation

* fix(plugin-workflow): fix type

* fix(plugin-workflow): fix migration

* fix(plugin-workflow): fix evaluators and scope

* fix(plugin-workflow): remove disabled type select in schema config

* fix(plugin-workflow): fix manual form schema designer

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-02-20 11:52:06 +08:00
ChengLei Shao
0e0eb6432e
feat: provide the underscored option for the database (#1366)
* feat: underscored options

* feat: underscored using hook

* feat: database underscored options

* feat: underscored env

* fix: collectionExistsInDb

* fix: test

* fix: nocobase install

* fix: test

* fix: belongsTo association

* fix: test of underscored

* chore: console.log

* fix: list action test

* fix: dump test

* chore: snakeCase algo

* fix: underscored field create

* fix: underscored env

* fix(acl): custom appends merge strategy (#1416)

* Update index.md

* fix(plugin-workflow): use promise to request (#1426)

* Update index.md

* Update collection.md

* Update index.md

* Update index.md

* Update collection.md

* Update field.md

* Update repository.md

* Update has-one-repository.md

* Update has-many-repository.md

* Update belongs-to-many-repository.md

* Update index.md

* chore: translate 'Add tab' in page header (#1424)

* fix: test

* fix: workflow test

* fix: underscored with inherits

* fix: underscored test

* fix:  process.env.DB_UNDERSCORED

* fix: process.env.DB_UNDERSCORED === 'true'

* fix: test

* fix: pg test

* fix: underscored table name

* feat: tableName & fieldName conflict check

* fix: test

* fix: underscored index

* fix: update field unique index

* fix: sync default value

* fix: collection manager create field

* chore: field sync

* fix: pg test

* chore: test

* fix: test

* chore: default constraint name

* chore: syncUniqueIndex

* feat: field destory before check

* feat: field type check

* fix: test

* fix: test

* fix: improve

* fix: should destroy when fields refer to the same field

* fix: acl meta with underscored

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-02-13 21:38:47 +08:00
chenos
e5e503fe87
feat: add namespace and duplicator parameters for collection options (#1449)
* feat: add namespace and duplicator parameters for collection options

* fix: duplicator:getDict
2023-02-13 09:57:03 +08:00
chenos
68511f05bc docs: add plug-in documentation 2023-02-11 00:09:39 +08:00
Junyi
71dcabec25
fix(plugin-workflow): fix schedule on field null value (#1442) 2023-02-09 16:24:51 +08:00
Junyi
3115134f3a
fix(plugin-workflow): use promise to request (#1426) 2023-02-04 16:03:25 +08:00
Junyi
91413196ea
fix(plugin-workflow): fix url input width for request config (#1401) 2023-01-28 22:36:58 -08:00
Junyi
aaf6718755
fix(plugin-workflow): adjust executed alert position (#1381) 2023-01-17 08:32:24 -08:00
Junyi
00efb38438
feat(client): add form disabled context (#1374)
* feat(client): add form disabled context

* fix: improve code

* fix: improve code

* fix: form-v2 disabled

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-01-16 23:01:28 +08:00
Junyi
51ce0afc06
Fix(plugin-workflow): request node (#1367)
* fix(plugin-workflow): fix json data

* refactor(plugin-workflow): change ejs to json-templates in request

* feat(plugin-workflow): add variable insert button to json input

* fix(plugin-workflow): fix main locales

* fix(plugin-workflow): fix params in request

* fix(plugin-workflow): fix types

* feat(plugin-workflow): add ejs migration
2023-01-15 12:56:04 +08:00
chenos
daa91e95a6 chore(versions): 😊 publish v0.9.0-alpha.2 2023-01-14 12:07:20 +08:00
chenos
cc47041519
feat: load multiple languages dynamically (#1355)
* feat: load multiple languages dynamically

* fix: map locale

* fix: antd

* fix: locale

* fix: th

* fix: cronstrue locales

* fix: improve code

* fix: defaults
2023-01-13 10:55:04 +08:00
Junyi
a1127300ae
refactor(plugin-workflow): refactor request instruction (#1356) 2023-01-12 02:22:06 -08:00
chenos
013f0916a5 chore(versions): 😊 publish v0.9.0-alpha.1 2023-01-11 12:08:24 +08:00
chenos
8d30bee757
feat: change license (#1350) 2023-01-11 11:58:47 +08:00
ChengLei Shao
a614bc7de8
feat: acl optimization (#1136)
* fix: sort field with table dose not have primary key

* feat: fixed params merger

* chore(plugins/acl): fixed params

* chore(plugins/acl): allowConfigure of collections

* chore(plugins/china-region): disable actions other than list

* chore(plugins/collection-manager): allowConfigure permission

* chore(plugins/file-manager): acl fixed params

* chore: acl fixed params

* chore: rolesResourcesScopes onDelete cascade

* fix: install error

* chore: test

* fix: root user fixed params

* fix: role resource scope onDelete

* chore: test

* chore: test

* fix: acl

* chore: disable index.html cache

* chore: disable index.html cache

* test: destory user role

* test: destory throught table

* fix: test

* fix: test

* chore: add rolesUsers to fixed params

* feat: permission logging

* feat: permission logging

* fix: test

* fix: test

* chore: disable grant target action

* fix: appends with fields

* fix: get action params

* fix: associationActions

* chore: change AssociationField using relation type

* chore: typo

* refactor: allow to skip

* fix: prettier

* chore: attachments association action

* fix: allowConfigure condition

* fix: deprecated allow

* fix: please use skip instead

* feat: table column aclcheck

* chore: test

* feat: throw error when detory no permission record

* chore: test

* chore: acl test

* feat: field acl

* chore: after action middleware

* fix: destory permission check

* chore: middleware use

* fix: test

* feat: filter match

* feat: subform/subtable field acl check

* feat: action permision by scope

* feat: action permision by scope

* feat: list action with allowedActions

* chore: all allowed action

* fix: pk error

* fix: merge error

* fix: create query sql

* fix: skip permission

* fix: scope with association field

* feat: action acl fix

* feat: action acl fix

* fix: update submodule

* Feat: setting center permission (#1214)

* feat: add setting center permissions

* feat: setting center permissions backlist

* feat: setting center permissions BLACKLIST

* feat: setting center permissions blacklist

* feat: setting center permissions blacklist

* feat: setting center permission

* feat: configure plugin tab expand

Co-authored-by: chenos <chenlinxh@gmail.com>

* Feat :field acl (#1211)

Co-authored-by: chenos <chenlinxh@gmail.com>

* fix: build error

* test: acl snippet

* feat: set field

* fix: test

* fix: build error

* fix: utils Dependency cycles

* feat: general permissions

* feat: delete pluginTabBlacklist

* fix: test

* feat: snippetManager allow method

* feat: acl role snippetAllowed method

* feat: array field repository

* feat:  ArrayFieldRepository

* fix: test

* fix: ci

* fix: ci error

* fix: add set parse

* test: array field repository

* chore: addSnippetPatten

* fix: start

* feat: sync role snippets

* feat: snippets check

* feat: snippets check

* chore: acl role snippet api

* fix: test

* fix: test

* refactor: acl role snippets

* chore: registerACLSettingSnippet

* chore: default snippets

* feat: snippets match

* feat: snippets check

* feat: snippets check

* feat: pm permision check

* feat: pm permision check

* feat: snippet pattern match

* feat: pluginManagerToolbar check

* feat: pluginManagerToolbar check

* chore: snippets default value

* feat: set role snippets migration

* chore: snippets

* feat: acl local

* feat: acl local

* feat: bookmask fix

* feat: plugin-manger & ui-editor snippet

* feat: set allowConfigure to false when upgrade to snippets

* feat: destory action acl fix

* feat: destory action acl fix

* fix: association resource params merge

* fix: ui editor snippet

* feat:  action acl fix

* chore: move list meta middleware into plugins/acl

* fix: test

* feat:  action acl fix

* feat: action acl check fix

* feat: plugins toolbar fix

* feat: gitmodules

* fix: subproject

* chore: add avaiableActions to snippet

* chore: change plugin-manager snippet

* feat: configure action acl fix

* feat: plugin tab acl check fix

* chore: roles snippets

* fix: add actions to snippet

* feat: allowconfigure fix

* fix: count with filterBy

* fix: build error

* feat: get action with allowedActions

* feat: acl route check fix

* feat:  aclActionProvider fix

* feat: actionscpe fix

* feat: actionname alias

* feat: setting center fix

* feat: acl provider fix

* fix: role collection

* feat: associate resource  acl

* feat: associate resource  acl

* feat: redirect to 403

* feat: route redirct

* feat:  acl scope check by record

* fix: fields  appends fix

* fix: fields  appends fix

* fix: fields  appends fix

* fix: allowedActions  fix

* fix:  menu items

* fix: rename

* fix: improve code

* fix: improve code

* fix: improve code

* fix: ctx?.data?.data

* fix: styling

* fix: allowAll after ignore scope

* chore: allowConfigure condition

* fix: collections.fields:*

* fix: acl test

* fix: update submodule

* fix: acl test

* fix: acl snippet

* fix: updates

* fix: only load history for logged-in users

* fix: this.app.acl.registerSnippet

* fix: downloadXlsxTemplate

* fix: 404

* feat: allowedAction in association list response

* fix: listData get

* fix: test

* fix: x-collection-field

* fix: update record error

* fix: calendar template

* test: allow manager

* fix: fetch action step

* fix: update submodule

* fix: refresh

* fix: refresh

* fix: rolesResourcesScopes

* test: snippets

* fix: snippets

* fix: test

* fix: omit filter.createdById

* fix: improve code

* fix: collections path

* fix: test error

* fix: upgrade error

* fix: errors

* fix: read allowed actions error

* fix: kanban error

* fix: error

Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: katherinehhh <katherine_15995@163.com>
2023-01-09 07:35:48 +08:00
Junyi
322194f24a
fix(plugin-workflow): fix missed preparing (#1337) 2023-01-08 00:56:43 +08:00
chenos
d062c8fd99
chore(versions): 😊 publish v0.8.1-alpha.4 (#1331) 2023-01-05 23:22:18 +08:00
chenos
4ecd2ee40d chore(versions): 😊 publish v0.8.1-alpha.2 2023-01-05 18:29:47 +08:00
Junyi
c851e65459
fix(plugin-workflow): fix history drawer in workflow canvas (#1326) 2023-01-04 06:24:41 -08:00
Junyi
8943dabc4d
fix(plugin-workflow): fix events in prepare (#1325) 2023-01-04 02:26:44 -08:00
katherinehhh
a299849613
feat: antd->4.2.8 (#1231)
* feat: antd->4.2.8

* fix(plugin-workflow): dependencies

* feat: menu item key fix

* feat: dorpdown menu visible fix

* fix: update yarn.lock

* fix: only hide the first level

* fix: onVisibleChange

* fix: eventKey

* fix: setVisible(false)

Co-authored-by: mytharcher <mytharcher@gmail.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
2022-12-26 11:52:59 +08:00
Junyi
e3e352ffeb
refactor(sequence-field): move to plugin and use table to record (#1209)
* refactor(sequence-field): move to plugin and use table to record

* fix(database): skip test case which not in core

* fix(plugin-sequence): add migration

* fix(plugin-sequence): fix types

* test(plugin-sequence): fix test cases

* fix(plugin-sequence): fix configuration ui

* fix(plugin-sequence): fix merge

* fix(plugin-sequence): fix schema and error message
2022-12-16 01:04:22 -08:00
Junyi
db346688f5
fix(plugin-workflow): fix job result in history (#1242) 2022-12-13 21:36:26 -08:00
lyf-coder
f4ee872a16
fix(workflow/request-var): fix request node var editor (#1223) 2022-12-09 06:01:19 -08:00
Junyi
a951d49f55
Fix(plugin-workflow): client refactor (#1163)
* fix(plugin-workflow): avoid to delete using node

* fix(plugin-workflow): refactor operand

* fix(plugin-workflow): simplify code

* fix(plugin-workflow): fix condition calculator
2022-12-06 02:18:40 -08:00
Junyi
d1a6aeec76
fix(i18n): move back key to global (#1195) 2022-12-04 18:58:16 -08:00
Junyi
6fb58d01a3
test(plugin-workflow): add cache and test for sqlite (#1194) 2022-12-04 17:38:37 -08:00
Junyi
c19ca1f30b
fix(plugin-workflow): use dual pipes to process triggers (#1187)
* fix(plugin-workflow): use dual pipes to process triggers

* refactor(plugin-workflow): refactor dual pipe structure
2022-12-02 22:34:47 -08:00
Junyi
f0dcf32c56
fix(plugin-workflow): temp skip case (#1188) 2022-12-02 07:08:29 -08:00
Junyi
eb4fb29e3b
fix(plugin-workflow): fix transaction in trigger (#1186) 2022-12-02 18:15:53 +08:00
Junyi
eee4cabd64
fix(plugin-workflow): dispatch when server start (#1183) 2022-12-01 23:58:13 -08:00
Junyi
271573c52a
fix(plugin-workflow): fix test case (#1172) 2022-12-01 07:40:36 -08:00
Junyi
400320d175
feat(plugin-workflow): add duplicate action (#1171)
* feat(plugin-workflow): add duplicate action

* fix(plugin-workflow): fix test case

* feat(plugin-workflow): move execution link to column
2022-12-01 06:52:46 -08:00
Junyi
86a23c0d9f
fix(plugin-workflow): fix context operand (#1169) 2022-11-30 22:48:29 -08:00
Junyi
7b5277fb2a
Feat: plugin verification config (#1129)
* feat(plugin-verification): add client config

* feat(plugin-verification): add config ui

* fix(plugin-verification): fix schema

* refactor(plugin-verification): add default for verification providers

* fix(plugin-users): fix initVerification in lifecycle

* fix(plugin-users): fix initVerification in lifecycle

* fix(plugin-verification): fix locale and default provider

* fix(plugin-verification): fix test case

* fix(plugin-verification): fix locale
2022-11-28 00:41:58 -08:00
Junyi
4a113774bd
fix(plugin-workflow): fix trigger context getters (#1149) 2022-11-27 06:54:47 -08:00
Junyi
f4c195e576
fix(plugin-workflow): fix locale (#1145) 2022-11-24 19:01:00 -08:00
Junyi
2c6b9babff
fix(plugin-workflow): fix endsOn field (#1144) 2022-11-24 08:06:48 -08:00
Junyi
62652145c9
Fix(plugin workflow) interval (#1139)
* fix(plugin-workflow): use setTimeout with offset for more accuracy

* fix(plugin-workflow): locale
2022-11-24 00:13:47 -08:00
lyf-coder
9b4139e28a
feat(workflow): support Http Request Node (#1102)
* feat(workflow): support Http Request Node

* style(workflow): hTTP Request ui title

* style(workflow): request node ui title fix

* feat(workflow): support timeout config,ignoreFail etc

* refactor(workflow): request node Instruction remove unused input.result from templateVars

* fix(workflow): fix locale

* fix(workflow): perfect request implementation
2022-11-23 02:29:18 -08:00
Junyi
fc7da4a04c
fix(plugin-workflow): fix workflow schema (#1115) 2022-11-21 00:48:28 -08:00
Junyi
c8225e352b
fix(locale): move description to global (#1108)
* fix(locale): move description to global

* fix(locale): move description in other languages
2022-11-20 00:17:52 -08:00
ChengLei Shao
73e2d27e29
feat: using bigint for id field (#1100)
* feat: using bigint for id field

* fix: postgres bigint parse

* fix: sequelize test

* test: update to bigint migrator

* chore: updateToBigInt method

* fix: mysql update bigint

* fix: update to bigint with inherits table

* feat: update fields type in fields table

* fix: import

* fix: bigInt

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-11-20 14:40:41 +08:00
chenos
2ea185a412 fix: error: SQLITE_ERROR: near "AUTOINCREMENT": syntax error 2022-11-15 16:14:47 +08:00
Junyi
0288243a33
fix(plugin-workflow): fix transaction chain in trigger (#1089) 2022-11-15 13:35:10 +08:00
Junyi
46161e8fd9
fix(plugin-workflow): fix schema name conflict (#1087) 2022-11-14 23:26:44 +08:00