dev/rc#14 handle api calls post schema change #21189
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
dev/rc#14 handle api calls post schema change
Before
Calling v3 api MembershipType.create with
'auto_renew' => TRUE
works on 5.40 but fails on 5.41After
Also works on 5.41 - unsure about v4 api, I suspect it doesn't
Technical Details
The schema oddly had auto_renew as a boolean although as a TINYINT it could actually record all 3 valid values (0, 1 or 2). A fix to the schema in 5.41 caused this to start failing - at least in tests
This adds hack-handling for the v3 api but I'm undecided about v4 api. I haven't tested, suspect there would also be an issue. However the relative rarity of MembershipType.create being called outside of tests is mitigating
Comments
@colemanw @KarinG