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

Phantom changes of relationship fields in audit log #117

Open
krystofNovotny opened this issue Oct 13, 2021 · 0 comments
Open

Phantom changes of relationship fields in audit log #117

krystofNovotny opened this issue Oct 13, 2021 · 0 comments

Comments

@krystofNovotny
Copy link

ObjectBefore doesn't contain relationship fields, but ObjectAfter does.

When looking for changes between before and after, relationship fields always show up making it look like their values are being changed all the time.

Description by example:

Given:

Managed object, relationship field roles, property prop

{
   "prop": "foo",
   "roles":  "[list-of-actual-roles]"
}

When:

prop property value is changed

Then:

Audit log is created with the following values:
ObjectBefore:

{
   "prop": "foo"
}

ObjectAfter:

{
   "prop": "bar",
   "roles":  "[list-of-actual-roles]"
}

This looks as if roles were added.

Expected behavior:

Audit log is created with ObjectBefore looking like this:

{
   "prop": "foo",
   "roles":  "[list-of-actual-roles]"
}

ObjectAfter:

{
   "prop": "bar",
   "roles":  "[list-of-actual-roles]"
}
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

No branches or pull requests

1 participant