-
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
Changelog: Enum-related breaking change in v4.1.0 #926
Conversation
Also related #857. I understand the issue, would be nice to understand what triggered the change between the two versions, but this seems like a reasonable warning for now since we we're now aware it's broken. |
Hi Ollie. I'm fine with having this information in the changelog. Listing "known issues" in the changelog is quite uncommon in the ruby community, but common in other communities. I'd prefer the heading "Known Issues" to "Breaking Changes", to separate the unintentional from the intentional, respectively. If that's acceptable to you, please make that change. There have been many issues with enums over the past few versions (some due to changes in activerecord, some just bugs in PT) and I need to review the issues to confirm that this happened in v4.1.0. |
Thanks; I have moved it to a "Known Issues" section - good idea. Let me know if I can give better reproduction steps for confirming this bug arrived in |
Ollie, I've tested PT 4.0.2 and 4.1.0 with your example. (https://gist.github.com/jaredbeck/e8a2b572c806bfff782ed6df12f48715) With rails 4, the output differs as you describe. However, with rails 5, they produce the same output. So, this is only an issue for rails 4. Please update your patch to reflect this. |
Good observation; I should have mentioned I am using Rails 4. I've modified the commit. Thanks for the help. |
Merged. Thanks, Ollie! |
A breaking change from
v4.0.2
tov4.1.0
is not documented in the changelog.Arguably this is the introduction of a bug, rather than a deliberate change, so perhaps it is not worth adding to the changelog.
The behaviour change is around retrieval of
enum
values from a version's changeset. After the update, the display behaviour seems to have changed from string-based to integer-based.To reproduce this, I used the following code:
Output under
paper_trail
from4.0.2
:Output under
paper_trail
from4.1.0
.I've not checked the behaviour of the latest
paper_trail
version; this proposal is simply to fix the changelog (even though it is for quite an outdated version).