-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(source-hubspot): Migrate deals_archived, forms, form_submissions, owners, owners_archived to low-code #58105
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
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
/format-fix
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good overall and the various custom transformers seem reasonable. Have you had a moment to run regression tests. Can give the final approval once we have a confirmed/analyzed run
@@ -1,654 +0,0 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we also be removing all the other .json
stream schemas that we are deleting?
9b02942
to
4e9234c
Compare
/format-fix
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good for most streams, I did have one question about the query parameters for the forms
stream and if we can potentially simplify the request since we now use the v3
endpoint, once we wrap up that discussion. then happy to give final approval
path: /marketing/v3/forms | ||
request_parameters: | ||
formTypes: | ||
"['hubspot', 'captured', 'flow']" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing in Postman, does this result in an error when formatted as a string list? I had to format each formType=hubspot
as a separate parameter. For example:
https://api.hubapi.com/marketing/v3/forms?limit=100&formTypes=captured&formTypes=hubspot&formTypes=flow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be formatted as separate parameters: https://api.hubapi.com/marketing/v3/forms?formTypes=hubspot&formTypes=captured&formTypes=flow&
# TODO: consider migrating FormSubmissions stream to use `/v3` api version | ||
# then uncomment the last 2 form types. | ||
# "blog_comment", | ||
# "all", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see this was a comment from the python code, I wonder if we can add these params back. I can't tell if this comment is still relevant because it does look like we're now already using the /marketing/v3/forms
endpoint now and this stream does not appear to interact w/ the FormSubmissions
stream or v1 API in any way.
I did some experimentation and it seems like at the very least we can uncomment and include both blog_comment
and all
in query parameters. And I also tested on our own dataset and we may be able to simply specify formTypes=all
to retrieve all forms. When I counted records I got the same amount for formTypes=all
vs &formTypes=captured&formTypes=blog_comment&formTypes=hubspot&formTypes=flow
what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's safer to stick with a 1:1 migration for now to avoid any unexpected issues. I'll create an issue to further investigate this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay yes and thank you for creating the issue. you are right just for simplicity we can retain the same behavior
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pending
- validation that query params work in that format mentioned here: feat(source-hubspot): Migrate deals_archived, forms, form_submissions, owners, owners_archived to low-codeΒ #58105 (comment)
- updating to rebase w/ the latest hubspot changes
but approving to not block releasing once the above are complete
/format-fix
|
/format-fix
|
Regression tests: |
paginator: | ||
$ref: "#/definitions/cursor_paginator" | ||
record_selector: | ||
type: RecordSelector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wanted to note that when @darynaishchenko was implementing goals
, she noticed that we aren't properly normalizing the properties values back to their expected types. She added a custom normalization strategy for this that I think we'll need to incorporate into some of these streams with dynamic properties. See here:
What
Migrate
deals_acrhived
,forms
,form_submissions
,owners
,owners_archived
streams to low-code.How
Review guide
User Impact
Can this PR be safely reverted and rolled back?