Hi Viet
This is excellent.
When we first started discussing using logging framework for audit you
pointed out that logging is most commonly used for system
info/diagnostics/debugging. Which is true. Of course logging works
pretty well for audit as well, but I was thinking (influenced by
http://www.mail-archive.com/general@logging.apache.org/msg00747.html\)
that it makes sense to use a distinct logger, rather than one based
after the class name, for this.
So for example instead of where you have:
private Logger logger = Logger.getLogger( getClass() );
I was thinking something more like
private Logger audit_logger = Logger.getLogger( AUDIT_LOG ); // where
AUDIT_LOG is a globally accessible string
Or considering that the audit_logger could be thought of as a
singleton throughout the system, just use a setter and configure by
spring. Or a static getLogger method on a simple AuditLogger class.
However, I see you have extended Level to produce a new AUDIT_LEVEL
and routed that to a distinct log appender which I can see also works
well to manage the output of logging in a discriminatory way. That's
pretty cool. I'm still in two minds whether the enabling of audit
should be related to the debug level you want to have on diagnostics
though. I might reasonably want to turn audit off and debug on for
example. For which I'd want a distinct audit logger. Maybe that's
not reasonable.
What do you think?
Cheers
Bob
···
On 19 April 2010 10:56, <noreply@launchpad.net> wrote:
------------------------------------------------------------
revno: 1785
committer: Viet <Viet@Viet-Laptop>
branch nick: trunk
timestamp: Mon 2010-04-19 16:54:45 +0700
message:
Audit trail logging functions for DataSet, OrganisationUnit, User modules.
added:
dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AuditLogLevel.java
dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AuditLogUtil.java
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataset/DefaultDataSetService.java
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/organisationunit/DefaultOrganisationUnitService.java
dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml
dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientService.java
dhis-2/dhis-services/dhis-service-patient/src/main/resources/META-INF/dhis/beans.xml
dhis-2/dhis-services/dhis-service-user-hibernate/src/main/java/org/hisp/dhis/user/hibernate/HibernateUserStore.java
dhis-2/dhis-services/dhis-service-user-hibernate/src/main/resources/META-INF/dhis/beans.xml
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/WEB-INF/classes/log4j.properties
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/additional-methods.js
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/jquery.validate.js
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/addSection.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/addOrganisationUnitGroupSetForm.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/updateOrganisationUnitGroupSetForm.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/AddPatientAction.java
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/ValidatePatientAction.java
The size of the diff (1144 lines) is larger than your specified limit of 1000 lines--
lp:dhis2
trunk : Code : DHISYour team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to OpenID transaction in progress_______________________________________________
Mailing list: DHIS 2 developers in Launchpad
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : DHIS 2 developers in Launchpad
More help : ListHelp - Launchpad Help
Hi Viet
This is excellent.
When we first started discussing using logging framework for audit you
pointed out that logging is most commonly used for system
info/diagnostics/debugging. Which is true. Of course logging works
pretty well for audit as well, but I was thinking (influenced by
http://www.mail-archive.com/general@logging.apache.org/msg00747.html)
that it makes sense to use a distinct logger, rather than one based
after the class name, for this.
So for example instead of where you have:
private Logger logger = Logger.getLogger( getClass() );
I was thinking something more like
private Logger audit_logger = Logger.getLogger( AUDIT_LOG ); // where
AUDIT_LOG is a globally accessible string
Or considering that the audit_logger could be thought of as a
singleton throughout the system, just use a setter and configure by
spring. Or a static getLogger method on a simple AuditLogger class.
However, I see you have extended Level to produce a new AUDIT_LEVEL
and routed that to a distinct log appender which I can see also works
well to manage the output of logging in a discriminatory way. That’s
pretty cool. I’m still in two minds whether the enabling of audit
should be related to the debug level you want to have on diagnostics
though. I might reasonably want to turn audit off and debug on for
example. For which I’d want a distinct audit logger. Maybe that’s
not reasonable.
What do you think?
Cheers
Bob
For your first concern, I think using AOP can solve it. Lars also told me about that.
I will try to apply AOP to this.
About distinct audit logger, I don’t know how to use two different loggers in one application… Unless I manually create a logger class ( create file, write logging message to that file…etc… ) which I did before in my old project…
Anyway…turning debug on and audit off…is not really a common use I think … I always want to see everything when I turn debug on …
And when you are debugging , means that you don’t work on production server, so it will not effect the production logging files…
However, I will google more about using two different loggers in one application, should be interesting.
Anyway …I have to back with STQC bugs now …so could we consider that committed code as a beta version of this audit trail logging …
···
On Mon, Apr 19, 2010 at 5:51 PM, Bob Jolliffe bobjolliffe@gmail.com wrote:
On 19 April 2010 10:56, noreply@launchpad.net wrote:
revno: 1785
committer: Viet Viet@Viet-Laptop
branch nick: trunk
timestamp: Mon 2010-04-19 16:54:45 +0700
message:
Audit trail logging functions for DataSet, OrganisationUnit, User modules.
added:
dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AuditLogLevel.java
dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AuditLogUtil.java
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataset/DefaultDataSetService.java
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/organisationunit/DefaultOrganisationUnitService.java
dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml
dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientService.java
dhis-2/dhis-services/dhis-service-patient/src/main/resources/META-INF/dhis/beans.xml
dhis-2/dhis-services/dhis-service-user-hibernate/src/main/java/org/hisp/dhis/user/hibernate/HibernateUserStore.java
dhis-2/dhis-services/dhis-service-user-hibernate/src/main/resources/META-INF/dhis/beans.xml
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/WEB-INF/classes/log4j.properties
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/additional-methods.js
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/jquery.validate.js
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/addSection.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/addOrganisationUnitGroupSetForm.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/updateOrganisationUnitGroupSetForm.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/AddPatientAction.java
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/ValidatePatientAction.java
The size of the diff (1144 lines) is larger than your specified limit of 1000 lines
–
lp:dhis2
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
–
Viet Nguyen
About distinct audit logger, I don't know how to use two different loggers in one application... Unless I manually create a logger class ( create file, write logging message to that file....etc.. ) which I did before in my old project...
Anyway...turning debug on and audit off....is not really a common use I think ... I always want to see everything when I turn debug on ...
And when you are debugging , means that you don't work on production server, so it will not effect the production logging files...
However, I will google more about using two different loggers in one application, should be interesting.
All it takes is just having a separate name for the audit log, as Bob says. If you want it to log to a separate file, you just configure a separate log4j log for that. But I agree with Bob, having an audit logger dependency injected, is better. After all, it is a business concern, and with an AuditLogger interface it will be trivial to change the implementation later, if that is required.
Anyway ...I have to back with STQC bugs now ...so could we consider that committed code as a beta version of this audit trail logging ...
That sounds about right Good to have audit logging, at least!
Jo
···
Den 19. apr. 2010 kl. 18.17 skrev Viet Nguyen:
Hi Viet
Hi Viet
This is excellent.
When we first started discussing using logging framework for audit you
pointed out that logging is most commonly used for system
info/diagnostics/debugging. Which is true. Of course logging works
pretty well for audit as well, but I was thinking (influenced by
http://www.mail-archive.com/general@logging.apache.org/msg00747.html\)
that it makes sense to use a distinct logger, rather than one based
after the class name, for this.So for example instead of where you have:
private Logger logger = Logger.getLogger( getClass() );I was thinking something more like
private Logger audit_logger = Logger.getLogger( AUDIT_LOG ); // where
AUDIT_LOG is a globally accessible stringOr considering that the audit_logger could be thought of as a
singleton throughout the system, just use a setter and configure by
spring. Or a static getLogger method on a simple AuditLogger class.However, I see you have extended Level to produce a new AUDIT_LEVEL
and routed that to a distinct log appender which I can see also works
well to manage the output of logging in a discriminatory way. That's
pretty cool. I'm still in two minds whether the enabling of audit
should be related to the debug level you want to have on diagnostics
though. I might reasonably want to turn audit off and debug on for
example. For which I'd want a distinct audit logger. Maybe that's
not reasonable.What do you think?
Cheers
BobFor your first concern, I think using AOP can solve it. Lars also told me
about that.
I will try to apply AOP to this.About distinct audit logger, I don't know how to use two different loggers
in one application... Unless I manually create a logger class ( create file,
write logging message to that file....etc.. ) which I did before in my old
project...
I am no expert on log4j but it seems that fortunately it's not as
complicated as you expect. And you are already using a great many
different loggers in one application!. Its just that each one is is
typically named after the class in which it is used. That is the
normal and natural way to configure logging for diagnostics. And all
these named loggers form themselves into a hierarchical tree on top of
the root logger. So typically we have many loggers with names like:
"org.hisp.dhis.dataset.DefaultDataSetService",
"org.hisp.dhis.importexport.DefaultDhis14XMLImportService" etc
The nice thing about this is that one can use the inheritance in the
tree to fine tune what goes on in branches of the tree. So for
example I should be able to set logging level to DEBUG for all loggers
below org.hisp.dhis.importexport.
So having loggers in a tree is cool, but what is also cool is that you
can structure that tree using whichever strings are appropriate. For
diagnostic purposes it is generally structured according to
class/package names. But you can equally have loggers called
"security.audit", "security.alarm" or "security.core.audit" and
"security.web.audit" etc, There is no difference in the code. And
the log4j properties will work as before except that you can
(optionally) override the root logger if you want to configure the
security logs separately from the diagnostic system logs.
Anyway I agree that its really not critical and the really good thing
is that you have implemented the audit logging. I guess I'm just
trying to set your mind at rest that you might not think you know how
to work with multiple loggers but in fact you do.
If at some stage in the future we want to separate the audit logger
from the rest it will be simple. If we do that I would be tempted to
bring the audit levels and audit utils stuff together into an AuditLog
class.
Cheers
Bob
BTW I am not meaning to be critical. At least it shows I looked at the code
···
On 19 April 2010 13:47, Viet Nguyen <phamquocviet@gmail.com> wrote:
On Mon, Apr 19, 2010 at 5:51 PM, Bob Jolliffe <bobjolliffe@gmail.com> wrote:
Anyway...turning debug on and audit off....is not really a common use I
think ... I always want to see everything when I turn debug on ...
And when you are debugging , means that you don't work on production server,
so it will not effect the production logging files...
However, I will google more about using two different loggers in one
application, should be interesting.Anyway ...I have to back with STQC bugs now ...so could we consider that
committed code as a beta version of this audit trail logging ...On 19 April 2010 10:56, <noreply@launchpad.net> wrote:
> ------------------------------------------------------------
> revno: 1785
> committer: Viet <Viet@Viet-Laptop>
> branch nick: trunk
> timestamp: Mon 2010-04-19 16:54:45 +0700
> message:
> Audit trail logging functions for DataSet, OrganisationUnit, User
> modules.
> added:
>
> dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AuditLogLevel.java
>
> dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AuditLogUtil.java
> modified:
>
> dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataset/DefaultDataSetService.java
>
> dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/organisationunit/DefaultOrganisationUnitService.java
>
> dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml
>
> dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientService.java
>
> dhis-2/dhis-services/dhis-service-patient/src/main/resources/META-INF/dhis/beans.xml
>
> dhis-2/dhis-services/dhis-service-user-hibernate/src/main/java/org/hisp/dhis/user/hibernate/HibernateUserStore.java
>
> dhis-2/dhis-services/dhis-service-user-hibernate/src/main/resources/META-INF/dhis/beans.xml
>
> dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/WEB-INF/classes/log4j.properties
>
> dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/additional-methods.js
>
> dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/jquery.validate.js
>
> dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/addSection.vm
>
> dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/addOrganisationUnitGroupSetForm.vm
>
> dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/updateOrganisationUnitGroupSetForm.vm
>
> dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/AddPatientAction.java
>
> dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/ValidatePatientAction.java
> The size of the diff (1144 lines) is larger than your specified limit of
> 1000 lines
>
> --
> lp:dhis2
> trunk : Code : DHIS
>
> Your team DHIS 2 developers is subscribed to branch lp:dhis2.
> To unsubscribe from this branch go to
> OpenID transaction in progress
>
> _______________________________________________
> Mailing list: DHIS 2 developers in Launchpad
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : DHIS 2 developers in Launchpad
> More help : ListHelp - Launchpad Help
>_______________________________________________
Mailing list: DHIS 2 developers in Launchpad
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : DHIS 2 developers in Launchpad
More help : ListHelp - Launchpad Help--
Viet Nguyen
------------------------------------------------------------
revno: 1785
committer: Viet <Viet@Viet-Laptop>
branch nick: trunk
timestamp: Mon 2010-04-19 16:54:45 +0700
message:
Audit trail logging functions for DataSet, OrganisationUnit, User modules.
Hi Viet,
Seems this commit broke all tests in dhis-service-core.
Enclosed is the surefine reports. Could you please have a look?
Cheers,
Quang
surefire-reports.rar (216 KB)
···
On Mon, Apr 19, 2010 at 4:56 PM, <noreply@launchpad.net> wrote:
added:
dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AuditLogLevel.java
dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AuditLogUtil.java
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataset/DefaultDataSetService.java
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/organisationunit/DefaultOrganisationUnitService.java
dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml
dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientService.java
dhis-2/dhis-services/dhis-service-patient/src/main/resources/META-INF/dhis/beans.xml
dhis-2/dhis-services/dhis-service-user-hibernate/src/main/java/org/hisp/dhis/user/hibernate/HibernateUserStore.java
dhis-2/dhis-services/dhis-service-user-hibernate/src/main/resources/META-INF/dhis/beans.xml
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/WEB-INF/classes/log4j.properties
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/additional-methods.js
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/jquery.validate.js
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/addSection.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/addOrganisationUnitGroupSetForm.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/updateOrganisationUnitGroupSetForm.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/AddPatientAction.java
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/ValidatePatientAction.java
The size of the diff (1144 lines) is larger than your specified limit of 1000 lines--
lp:dhis2
trunk : Code : DHISYour team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to OpenID transaction in progress_______________________________________________
Mailing list: DHIS 2 developers in Launchpad
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : DHIS 2 developers in Launchpad
More help : ListHelp - Launchpad Help
No bean named ‘org.hisp.dhis.user.CurrentUserService’ is defined
That bean is defined in dhis-service-user-hibernate module
This can be solved by add the dependency in the dhis-service-core pom file
<dependency>
<groupId>org.hisp.dhis</groupId>
<artifactId>dhis-service-user-hibernate</artifactId>
</dependency>
But as discussed , I will have to apply AOP for this audit trail logging, then I will remove the CurrentUserService from other service classes that use audit logging ( User, DataSet, Orgunit ) , then this error will be removed.
Lars, is it ok to change the pom file just for the time being… ?
···
On Wed, Apr 21, 2010 at 2:13 PM, Quang Nguyen quangnguyen111@gmail.com wrote:
On Mon, Apr 19, 2010 at 4:56 PM, noreply@launchpad.net wrote:
revno: 1785
committer: Viet Viet@Viet-Laptop
branch nick: trunk
timestamp: Mon 2010-04-19 16:54:45 +0700
message:
Audit trail logging functions for DataSet, OrganisationUnit, User modules.
Hi Viet,
Seems this commit broke all tests in dhis-service-core.
Enclosed is the surefine reports. Could you please have a look?
Cheers,
Quang
added:
dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AuditLogLevel.java
dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AuditLogUtil.java
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataset/DefaultDataSetService.java
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/organisationunit/DefaultOrganisationUnitService.java
dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml
dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientService.java
dhis-2/dhis-services/dhis-service-patient/src/main/resources/META-INF/dhis/beans.xml
dhis-2/dhis-services/dhis-service-user-hibernate/src/main/java/org/hisp/dhis/user/hibernate/HibernateUserStore.java
dhis-2/dhis-services/dhis-service-user-hibernate/src/main/resources/META-INF/dhis/beans.xml
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/WEB-INF/classes/log4j.properties
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/additional-methods.js
dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/jquery.validate.js
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/addSection.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/addOrganisationUnitGroupSetForm.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/updateOrganisationUnitGroupSetForm.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/AddPatientAction.java
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/ValidatePatientAction.java
The size of the diff (1144 lines) is larger than your specified limit of 1000 lines
–
lp:dhis2
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
–
Viet Nguyen
I'm not a maven wizard, but is it possible to give the dependency a
<scope>test</scope>?
···
On 21 April 2010 08:57, Viet Nguyen <phamquocviet@gmail.com> wrote:
No bean named 'org.hisp.dhis.user.CurrentUserService' is defined
That bean is defined in dhis-service-user-hibernate module
This can be solved by add the dependency in the dhis-service-core pom file<dependency> <groupId>org\.hisp\.dhis</groupId> <artifactId>dhis\-service\-user\-hibernate</artifactId> </dependency>
But as discussed , I will have to apply AOP for this audit trail logging,
then I will remove the CurrentUserService from other service classes that
use audit logging ( User, DataSet, Orgunit ) , then this error will be
removed.
Lars, is it ok to change the pom file just for the time being.... ?On Wed, Apr 21, 2010 at 2:13 PM, Quang Nguyen <quangnguyen111@gmail.com> > wrote:
On Mon, Apr 19, 2010 at 4:56 PM, <noreply@launchpad.net> wrote:
> ------------------------------------------------------------
> revno: 1785
> committer: Viet <Viet@Viet-Laptop>
> branch nick: trunk
> timestamp: Mon 2010-04-19 16:54:45 +0700
> message:
> Audit trail logging functions for DataSet, OrganisationUnit, User
> modules.Hi Viet,
Seems this commit broke all tests in dhis-service-core.
Enclosed is the surefine reports. Could you please have a look?Cheers,
Quang> added:
>
> dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AuditLogLevel.java
>
> dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/AuditLogUtil.java
> modified:
>
> dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataset/DefaultDataSetService.java
>
> dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/organisationunit/DefaultOrganisationUnitService.java
>
> dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml
>
> dhis-2/dhis-services/dhis-service-patient/src/main/java/org/hisp/dhis/patient/DefaultPatientService.java
>
> dhis-2/dhis-services/dhis-service-patient/src/main/resources/META-INF/dhis/beans.xml
>
> dhis-2/dhis-services/dhis-service-user-hibernate/src/main/java/org/hisp/dhis/user/hibernate/HibernateUserStore.java
>
> dhis-2/dhis-services/dhis-service-user-hibernate/src/main/resources/META-INF/dhis/beans.xml
>
> dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/WEB-INF/classes/log4j.properties
>
> dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/additional-methods.js
>
> dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/util/validate/jquery.validate.js
>
> dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataset/src/main/webapp/dhis-web-maintenance-dataset/addSection.vm
>
> dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/addOrganisationUnitGroupSetForm.vm
>
> dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-organisationunit/src/main/webapp/dhis-web-maintenance-organisationunit/updateOrganisationUnitGroupSetForm.vm
>
> dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/AddPatientAction.java
>
> dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/java/org/hisp/dhis/patient/action/patient/ValidatePatientAction.java
> The size of the diff (1144 lines) is larger than your specified limit of
> 1000 lines
>
> --
> lp:dhis2
> trunk : Code : DHIS
>
> Your team DHIS 2 developers is subscribed to branch lp:dhis2.
> To unsubscribe from this branch go to
> OpenID transaction in progress
>
> _______________________________________________
> Mailing list: DHIS 2 developers in Launchpad
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : DHIS 2 developers in Launchpad
> More help : ListHelp - Launchpad Help
>_______________________________________________
Mailing list: DHIS 2 developers in Launchpad
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : DHIS 2 developers in Launchpad
More help : ListHelp - Launchpad Help--
Viet Nguyen_______________________________________________
Mailing list: DHIS 2 developers in Launchpad
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : DHIS 2 developers in Launchpad
More help : ListHelp - Launchpad Help
I’ve been waiting for this moment to come… This reveals a weakness in the dependency structure in the system which I have been pondering on how to solve. The CurrentUserService resides in dhis-service-user, which has a dependency to dhis-service-core. This means that core cannot have a dependency to user. The reason for this is that User has an association to OrganisationUnit + UserRole has an association to DataSet, which requires the former dependency.
Not sure about a quick fix here. I guess this is pretty urgent, will work on it…
Lars
···
On Wed, Apr 21, 2010 at 9:57 AM, Viet Nguyen phamquocviet@gmail.com wrote:
No bean named ‘org.hisp.dhis.user.CurrentUserService’ is defined
That bean is defined in dhis-service-user-hibernate module
This can be solved by add the dependency in the dhis-service-core pom file<dependency> <groupId>org.hisp.dhis</groupId> <artifactId>dhis-service-user-hibernate</artifactId> </dependency>
But as discussed , I will have to apply AOP for this audit trail logging, then I will remove the CurrentUserService from other service classes that use audit logging ( User, DataSet, Orgunit ) , then this error will be removed.
Lars, is it ok to change the pom file just for the time being… ?