-
Notifications
You must be signed in to change notification settings - Fork 7
LK R&D LKSM - Update default audit level #6945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3525b1e
c411e5a
d3e88e1
5af5af2
f30106b
6c5708d
9ba473b
1342be1
fe39216
f6079fb
0fe4bea
d32cb4c
c5c1723
f8fe2e0
d459f55
250798c
a0400ee
6c64e78
b4f1bf6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -280,6 +280,12 @@ public AbstractTableInfo(DbSchema schema, String name) | |
| MemTracker.getInstance().put(this); | ||
| } | ||
|
|
||
| @NotNull | ||
| @Override | ||
| public AuditBehaviorType getDefaultAuditBehavior() | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This override looks like it just repeats what
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch, it actually did mean to override. Fixed. |
||
| { | ||
| return _auditBehaviorType; | ||
| } | ||
|
|
||
| public void afterConstruct() | ||
| { | ||
|
|
@@ -1466,7 +1472,6 @@ else if (xmlColumn.isSetWrappedColumnName() && isNotBlank(xmlColumn.getWrappedCo | |
| catch (QueryParseException qpe) | ||
| { | ||
| warnings.add(qpe.setFieldName(xmlColumn.getColumnName())); | ||
| continue; | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -1487,7 +1492,16 @@ else if (!calculatedFieldKeys.isEmpty()) | |
| if (xmlTable.getAuditLogging() != null) | ||
| { | ||
| AuditType.Enum auditBehavior = xmlTable.getAuditLogging(); | ||
| setAuditBehavior(AuditBehaviorType.valueOf(auditBehavior.toString())); | ||
| try | ||
| { | ||
| AuditBehaviorType auditBehaviorType = AuditBehaviorType.valueOf(auditBehavior.toString()); | ||
| setAuditBehavior(auditBehaviorType); | ||
| } | ||
| catch (IllegalArgumentException ignore) | ||
| { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: Consider logging a warning about an invalid audit behavior argument here. Same for similar usage in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
| warnings.add(new QueryParseWarning("Invalid AuditLogging: " + auditBehavior,null,0,0)); | ||
| } | ||
|
|
||
| } | ||
|
|
||
| _warnings.addAll(warnings); | ||
|
|
@@ -2000,12 +2014,6 @@ public void setAuditBehavior(AuditBehaviorType type) | |
| _xmlAuditBehaviorType = type; | ||
| } | ||
|
|
||
| @Override | ||
| public AuditBehaviorType getAuditBehavior() | ||
| { | ||
| return _auditBehaviorType; | ||
| } | ||
|
|
||
| @Override | ||
| public AuditBehaviorType getXmlAuditBehaviorType() | ||
| { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There doesn't seem to be any actual usage of the
skipAuditLevelCheck. Is this something that can be removed?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is used to bypass check for ETL in bulkLoad mode and some other places, it's overriden in
AbstractAuditHandler.