Skip to content
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

Refactor AuditableInterceptor to improve readibility. #589

Merged
merged 1 commit into from Jan 29, 2014

Conversation

chelseakomlo
Copy link

Refactored changes that were merged in #587.

Refactored for readability and to remove duplication in the code.

Original ticket- https://tickets.openmrs.org/browse/TRUNK-3964

@wluyima
Copy link
Member

wluyima commented Jan 28, 2014

I think you still need to check that it is an OpenmrsObject or Person where necessary.

@wluyima
Copy link
Member

wluyima commented Jan 28, 2014

I have looked at the rest of the file and it looks fine, ignore my last comment above

@chelseakomlo
Copy link
Author

In changePropertyValue, it checks to see if the object has the property that is being set. If it is a Person, it will have that property, if it isn't, then it won't update that Object.

See line 165 in AuditableInterceptor, in the method changePropertyValue.

I can extract this line to make this more clear, into a small method called "hasProperty", if you think it will make this more clear to anyone reviewing this file.

dkayiwa added a commit that referenced this pull request Jan 29, 2014
Refactor AuditableInterceptor to improve readibility.
@dkayiwa dkayiwa merged commit 799b71a into openmrs:master Jan 29, 2014
@chelseakomlo chelseakomlo deleted the refactor_interceptor branch January 29, 2014 20:37
RandilaP pushed a commit to RandilaP/openmrs-core that referenced this pull request Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants