refs #7584 workerTimeControl #6
|
@ -4,6 +4,7 @@ logMainShowField: false
|
||||||
upperCaseTable: true
|
upperCaseTable: true
|
||||||
userField: editorFk
|
userField: editorFk
|
||||||
rowExcludeField: logExclude
|
rowExcludeField: logExclude
|
||||||
|
ignoreSystem: false
|
||||||
excludeRegex: '__$'
|
excludeRegex: '__$'
|
||||||
showFields:
|
showFields:
|
||||||
- name
|
- name
|
||||||
|
|
|
@ -94,7 +94,8 @@ module.exports = class ModelLoader {
|
||||||
];
|
];
|
||||||
const globalProps = [
|
const globalProps = [
|
||||||
'userField',
|
'userField',
|
||||||
'rowExcludeField'
|
'rowExcludeField',
|
||||||
|
'ignoreSystem'
|
||||||
];
|
];
|
||||||
|
|
||||||
for (const [schema, table, tableInfo] of schemaMap) {
|
for (const [schema, table, tableInfo] of schemaMap) {
|
||||||
|
|
|
@ -305,14 +305,16 @@ module.exports = class MyLogger {
|
||||||
const table = evt.tableMap[evt.tableId];
|
const table = evt.tableMap[evt.tableId];
|
||||||
const tableName = table.tableName;
|
const tableName = table.tableName;
|
||||||
const tableInfo = this.schemaMap.get(table.parentSchema, tableName);
|
const tableInfo = this.schemaMap.get(table.parentSchema, tableName);
|
||||||
|
|
||||||
if (!tableInfo) return;
|
if (!tableInfo) return;
|
||||||
|
|
||||||
const action = actions[eventName];
|
const action = actions[eventName];
|
||||||
const {rowExcludeField} = tableInfo;
|
const {rowExcludeField, ignoreSystem} = tableInfo;
|
||||||
const changes = [];
|
const changes = [];
|
||||||
|
|
||||||
function isExcluded(row) {
|
function isExcluded(row) {
|
||||||
return rowExcludeField && row[rowExcludeField];
|
return (rowExcludeField && row[rowExcludeField])
|
||||||
|
|| (ignoreSystem && row.editorFk == null);
|
||||||
}
|
}
|
||||||
|
|
||||||
function cast(value, type) {
|
function cast(value, type) {
|
||||||
|
|
Loading…
Reference in New Issue