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

[WIP] Use the rails 7.1+ serialize interface #23253

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jrafanie
Copy link
Member

@jrafanie jrafanie commented Nov 1, 2024

Type was changed from positional to a keyword argument 'type' in 7.1. The positional argument is removed in rails 7.2.

We have a helper bridge module prepending support for either kwargs or positional arguments passed to serialize which converts to positional for rails 7.0 and kwargs for 7.1+. This was added and automatically loaded in the rails app via the engine in schema:
ManageIQ/manageiq-schema#756

Extracted from #23225

Type was changed from positional to a keyword argument 'type' in 7.1.
The positional argument is removed in rails 7.2.

We have a helper bridge module prepending support for either kwargs
or positional arguments passed to serialize which converts to positional
for rails 7.0 and kwargs for 7.1+.  This was added and automatically
loaded in the rails app via the engine in schema:
ManageIQ/manageiq-schema#756
jrafanie added a commit to jrafanie/manageiq-consumption that referenced this pull request Nov 1, 2024
Type was changed from positional to a keyword argument 'type' in 7.1.
The positional argument is removed in rails 7.2.

We have a helper bridge module prepending support for either kwargs
or positional arguments passed to serialize which converts to positional
for rails 7.0 and kwargs for 7.1+.  This was added and automatically
loaded in the rails app via the engine in schema:
ManageIQ/manageiq-schema#756

Similar change as core: ManageIQ/manageiq#23253
@jrafanie
Copy link
Member Author

jrafanie commented Nov 1, 2024

Ok, it's failing on a real issue...will mark as wip... interestingly service_mixin referencing service to ensure an object can't be associated with more than one service... note, service is an alias_attribute of parent... this is one of the "problems" in rails 7.1 as alias_attribute doesn't support non-attributes such as parent (an association).

@jrafanie jrafanie changed the title Use the rails 7.1+ serialize interface [WIP] Use the rails 7.1+ serialize interface Nov 1, 2024
@jrafanie jrafanie added the wip label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants