Compare commits

..

4 Commits

Author SHA1 Message Date
Robert Ferrús f75df4e19f feat: refs #7584 ignoreSystem
gitea/mylogger/pipeline/pr-master This commit looks good Details
2024-10-18 12:55:17 +02:00
Robert Ferrús 80ac579a47 feat: refs #7584 modificaciones vistas con juan
gitea/mylogger/pipeline/pr-master This commit looks good Details
2024-10-16 08:50:29 +02:00
Robert Ferrús 6b53029c06 feat: refs #7584 tabulaciones y saltos de linea
gitea/mylogger/pipeline/pr-master This commit looks good Details
2024-09-09 11:49:21 +02:00
Robert Ferrús c501b254d5 feat: refs #7584 restriction noInclude 2024-09-09 11:43:15 +02:00
3 changed files with 8 additions and 4 deletions

View File

@ -4,6 +4,7 @@ logMainShowField: false
upperCaseTable: true
userField: editorFk
rowExcludeField: logExclude
ignoreSystem: false
excludeRegex: '__$'
showFields:
- name

View File

@ -94,7 +94,8 @@ module.exports = class ModelLoader {
];
const globalProps = [
'userField',
'rowExcludeField'
'rowExcludeField',
'ignoreSystem'
];
for (const [schema, table, tableInfo] of schemaMap) {

View File

@ -305,14 +305,16 @@ module.exports = class MyLogger {
const table = evt.tableMap[evt.tableId];
const tableName = table.tableName;
const tableInfo = this.schemaMap.get(table.parentSchema, tableName);
if (!tableInfo) return;
const action = actions[eventName];
const {rowExcludeField} = tableInfo;
const {rowExcludeField, ignoreSystem} = tableInfo;
const changes = [];
function isExcluded(row) {
return rowExcludeField && row[rowExcludeField];
return (rowExcludeField && row[rowExcludeField])
|| (ignoreSystem && row.editorFk == null);
}
function cast(value, type) {