-
Notifications
You must be signed in to change notification settings - Fork 34
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
use custom field name instead of key and evaluate enum field value #100
base: master
Are you sure you want to change the base?
Conversation
Hi @tarsisazevedo, thanks for your contribution! In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. |
You did it @tarsisazevedo! Thank you for signing the Singer Contribution License Agreement. |
Just find out a better way to identify a custom field, so I will adapt this PR to that. Also, find out the tap is not saving data from the custom field when I run a stream command, I imagine that it cannot find the proper field name. I am working in a fix for that. |
I just finished the code to handle custom fields properly. Working now to add tests. |
Just add support to enum evaluation |
Hey guys, this would really help us a lot, is there anyone able to review this code? Kind Regards |
Hi @tarsisazevedo, Can you please revert this branch (to remove code formatter's changes), so we can quickly review this PR. |
Description of change
Pipedrive allows users to add custom fields to some Types, like deals, products, and organizations. Those custom field keys appear as base64 string, which causes some trouble when we pipe it with big query target, for example.
To solve this, my approach is to check if the property key has some non-alphabet character, and if true, use name slugified and replacing
-
to_
, just to maintain the same pattern of other fields' key.If you agree with this approach I can add tests. Also, if you guys think it should not be the default behavior, I can add a config to allow this.
PS: My IDE has python black as code formatter, so some changes are because of that. I can revert it if you want to.
Manual QA steps
tap-pipedrive -c config.json --discover
and check if custom fields are loaded as their name.Risks
Rollback steps