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

Traverse audits backwards instead of forwards in time #395

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

RavenXce
Copy link

Fixes #394

@RavenXce
Copy link
Author

This breaks backwards compatibility with #revision_at for one test case - we give the best-effort version of the model (as explained in the issue) instead of nil.

The first create action sometimes come with an identical
update audit but with no old_attributes. This ignores that
redudant update audit.
@lostapathy
Copy link
Contributor

I'm running into an issue that would be resolved by this change of approach. If this is updated to resolve the merge conflicts and travis issues, is there interest in merging it?

If we don't like this approach, I think we should explore a method of creating a "create audit" when auditing is added to existing models so that revision_at is usable.

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