-
Notifications
You must be signed in to change notification settings - Fork 35
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
Failure on post-7.1 rails edge #212
Comments
This commit looks relevant: |
This potentially could be a pretty major revision to Rails attributes API in ActiveRecord, not sure. We do lean on attributes API heavily, this could require some non-trivial work, not sure yet. |
There are other failures even once this one is worked around, specifically to dirty tracking working right. :( If anyone wants to help me figure them out, it would be much appreciated. |
…ibutes We were using a `attributes_to_define_after_schema_loads` method which was private API, and which breaks in current Rails main branch post 7.1 release. We switch to only using standard attribute API, and keeping track ourselves internally if this is the "first time" a container attrib is encountered, so if it needs an attribute registration. We don't want to multiply register the same attribute many times becaues although it would work, it's just messy and extra objects and calls for rails. This is working -- we had pretty good test coverage, which helped us realize we needed to track specific sub-class too, and tests now all pass. In the long-run, we might like a different public API that doesn't require us to implicitly know when first time container attrib is encountered. Like requires you to explicitly group things by container attribute. Or... this works and is fine? Could be! This is one part of #212 although other failures are revealed once we fix this one.
OK, all fixed up! No technical debt here! |
CI is getting an error "no method "attributes_to_define_after_schema_loads""
This is one of the few places that attr_json reaches into some kind of wonky/internal Rails API.
And this is some weird rails API.
Apparently post Rails 7.1, Rails changes this API? Figure out the right alternative, put in some conditional logic to do it.
We like keeping things running on Rails edge as a continuous integrationt ask, so we don't wait until the next Rails release actually happens and have a bunch of technical debt.
https://github.com/jrochkind/attr_json/actions/runs/6602862051/job/17935386108
The text was updated successfully, but these errors were encountered: