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

set nullify to empty array to address protobuf 4 deprecation warning #51

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

Conversation

mogman1
Copy link

@mogman1 mogman1 commented Aug 11, 2022

Protobuf issues a deprecation warning about setting the nullify field to nil and instead suggests using an empty array:

DEPRECATION WARNING: ['nullify']=nil is deprecated and will be removed from Protobuf 4.0 (use an empty array instead of nil) (called from block in your_class at /Users/shaun.carlson/code/mail/spec/views/your_class_spec.rb:9)

So...I did that. I also tried to handle for the case when it just so happens that an activerecord object defines a nullify attribute that this value still comes through.

@mogman1
Copy link
Author

mogman1 commented Aug 11, 2022

Assuming this is reasonable, any chance this could be back-ported to at least v6.0?

@mogman1 mogman1 force-pushed the sc/support_protobuf4_nullify branch from f1794d7 to 86bbea3 Compare August 11, 2022 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant