-
Notifications
You must be signed in to change notification settings - Fork 210
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
with_papertrail broken when using Papertrail 9x #216
Comments
Interesting. I don’t use this feature myself. It’s interesting though that the tests are green for this behavior in counter_culture as of now. How is that? Would you have a failing test to demonstrate the issue? Also sounds like it might be something that should be fixed in paper_trail rather than here? |
It definitely needs to be fixed in paper_trail. I'm just referencing it here to make people aware. I have a unit test in our application which is failing because of this. Can prob come up with a simplified test case here too. |
@key88sf so PaperTrail added If so, could you please help me find a spec to include here in counter_culture to verify this behavior going forward? I'm still confused as to which behavior has changed here: Our spec here seems to assert that a version does actually get created. A related question: This just creates a new version with no |
@magnusvk Yes this fixes it. The spec needs to look within the version created (not just if a version is created). Specifically, it needs to look at the |
@key88sf I added another spec in #218 — but found that I also had to make another change so that it would record the actual, updated count. Previously, it was saving the count as it was before it was incremented, rather than after the increment. Can you take another look? If #218 still looks good I can merge and release a new gem version. |
Commented -- I think there is 1 problem. Let me know. Thanks! |
@key88sf update released as 1.11.0. Thanks for your help figuring this out! |
The behavior of this option and its intent is now broken in Papertrail 9 due to this issue:
paper-trail-gem/paper_trail#1076
When using the
with_papertrail
option and a change is made which affects a counter_culture model, the model's counted row is not updated in the papertrail versions table.The text was updated successfully, but these errors were encountered: