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

Log relationship changes for entities #1695

Merged
merged 1 commit into from
Dec 9, 2016

Conversation

jrjohnson
Copy link
Member

We were not capturing what relationships changed for entities because
doctrine doesn't include this information. Instead we have to capture
what collections were updated and then connect that to a change. This
is not as specific as we would like to be, for example if a director is
added to a course the log will just say 'Ref:User' it will not indicate
if an administrator or director was added or deleted. However baring
changes to doctrine this is as good as we can ask for at this point.

I also refactored the logger flow a bit to need less code.

Fixes #1694

We were not capturing what relationships changed for entities because
doctrine doesn't include this information.  Instead we have to capture
what collections were updated and then connect that to a change.  This
is not as specific as we would like to be, for example if a director is
added to a course the log will just say 'Ref:User' it will not indicate
if an administrator or director was added or deleted.  However baring
changes to doctrine this is as good as we can ask for at this point.

I also refactored the logger flow a bit to need less code.
@stopfstedt stopfstedt merged commit 6252d9a into ilios:master Dec 9, 2016
@jrjohnson jrjohnson deleted the 1694-auditdata branch December 9, 2016 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants