-
Notifications
You must be signed in to change notification settings - Fork 901
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
Updates Readme sections for only
and ignore
#1247
Updates Readme sections for only
and ignore
#1247
Conversation
Hi @jaredbeck, hope you're well. It looks like |
I couldn't find documentation re: hashes in the Currently, we allow the I'm hesitant to increase the complexity of our public API in this way. |
Frankly, the current API, which allows the |
Thank you @jaredbeck! Can you please help me understand this part of the documentation? To me, it reads like
|
Ah, good find. But, looking at paper_trail/lib/paper_trail/events/base.rb Lines 221 to 235 in 21ead88
As with So, now I'm not sure whether the docs are wrong or the implementation is wrong 😅 but I think they're different. 😓 |
Ah, thank you! I see that now. Okay, would the simplest route be to update the documentation for |
Yeah, let's just update the docs for now.
Yes, but we should also give an example of an array of symbols that also contains a hash. See
I was thinking it'd be a single proc. WDYT? |
Ah, thank you, I was confused by what you meant by Okay, so the bug report is mentioning that a hash that's inside of an array isn't working as expected for |
Yes, I'd suggest that we focus, for now, on adding examples of current behavior to the docs (section 2.c.) and hold off on discussing any changes to the code until that's been done. |
624d029
to
dd30caa
Compare
README.md
Outdated
end | ||
``` | ||
|
||
If an attribute is ignored and only that attribute was updated, then a version won't be created for `updated_at`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see that we document this. Is it located somewhere else?
f18213b
to
8e74a18
Compare
Hi @jaredbeck, I hope you're well.
|
README.md
Outdated
end | ||
``` | ||
|
||
If an attribute is ignored and only that attribute was updated, then a version won't be created for timestamp attributes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I may be misunderstanding, but I think this one line has already been said, above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I missed that 👍
Sure, but can you make it a separate PR please?
I may be missing something, but I don't see the need to make any code changes. For now, I'm satisfied with correcting the documentation. |
- Updates ignore section to include an example with a Hash containing a proc. - Fixes only section example to use an array as the argument.
87f46d1
to
fe591c1
Compare
only
and ignore
Thank you @jaredbeck, this PR now just updates the Readme. I created a new PR with a failing test #1256 I also created a PR to fix CI and set the Rubocop gem to a fixed minor version so CI won't install a newer version that starts erroring in CI. It also updates the Rubocop gems. #1254 |
Thank you for your contribution!
Check the following boxes:
master
(if not - rebase it).code introduces user-observable changes.
and description in grammatically correct, complete sentences.