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

dev/rc#14 handle api calls post schema change #21189

Merged
merged 1 commit into from
Aug 20, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Aug 20, 2021

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.41

After

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

failing

Comments

@colemanw @KarinG

@civibot
Copy link

civibot bot commented Aug 20, 2021

(Standard links)

@civibot civibot bot added the 5.41 label Aug 20, 2021
@colemanw
Copy link
Member

I agree about leaving off a v4 fix.

@KarinG
Copy link
Contributor

KarinG commented Aug 20, 2021

Thank you @eileenmcnaughton - It's getting later here - I did want to comment that I agree MembershipType.create is rarely called outside of tests. It's just for the tests set up.

@eileenmcnaughton
Copy link
Contributor Author

Thank you @eileenmcnaughton - It's getting later here - I did want to comment that I agree MembershipType.create is rarely called outside of tests. It's just for the tests set up.

updated above ^^

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.

4 participants