-
Notifications
You must be signed in to change notification settings - Fork 5
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
Set audit sql #249
Set audit sql #249
Conversation
Set audit sql for history viewer
for more information, see https://pre-commit.ci
The example with tww_app poses a problem for CI |
My main concern is : Is this to be included in the changelog or in the application ? Especially because we will drop the audit triggers before any application update and recreate these afterwards. I should maybe separate the logging table creation (which has to be persistent) with the audit trigger functions (which could evolve with time but sometimes without having a base datamodel change). |
Move functions to app
Remove conflicting brackets
Fix begin and commit instructions
for more information, see https://pre-commit.ci
Remove begin/commit for functions
…nto poa_add_audit
What if we add a metadata table somewhere that we can use to re-create the triggers on the app schema? |
@cymed @3nids I suggest we continue discussion here :
As documented in https://teksi.github.io/wastewater/fr/user-guide/history/history.html#database-configuration. |
I'm -1 on integrating such an old piece of code in a brand new solution as is. I think it would deserve first a point of situation on other solutions to avoid going with custom code here. If you still want to move forward with, I think the trigger should lie in app at least. |
----------------------------------------------- | ||
----------------------------------------------- | ||
|
||
CREATE OR REPLACE FUNCTION tww_sys.if_modified_func() RETURNS TRIGGER AS $body$ |
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.
you should not create stuff in tww_sys from app!
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.
Better move audit function into changelogs
For many end users, the functionality is necessary in production and we can't simply drop functionalities without notice. It is up to the technical group to decide if the functionality needs an overhaul or not. I suggest migrating it as it was and if needed overhaul it in a second step. |
I agree with both of you :
@3nids I check with you how and what we could support in this new module architecture. |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@sjib requesting your review as I altered components |
merge #381 before this one |
I altered components of the pr, so i cant review |
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.
Looks good to me. If someone can really test if it works would be great.
Evolution of this is now stated in teksi/TMMT#12 |
Set audit sql for history viewer
Fix #246