-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Fix pagination in Aircall connector #44437
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Approving caveated that CI should be happy — this will need a version bump
@@ -2,7 +2,7 @@ data: | |||
connectorSubtype: api | |||
connectorType: source | |||
definitionId: 912eb6b7-a893-4a5b-b1c0-36ebbe2de8cd | |||
dockerImageTag: 0.2.12 | |||
dockerImageTag: 0.3.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.
It would demand that you also add a change entry to docs/integrations/aircall.md
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.
Updated!
page_size_option: | ||
type: "RequestOption" | ||
inject_into: "request_parameter" | ||
field_name: "{{ response['meta']['per_page'] }}" |
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 still looks sus — shouldn't field_name be just per_page
or something?
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.
Oh shoot, this is the same thing I fixed for page_token_option
haha. Yeah that's right, I'll 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.
fixed! ty
thanks for the fast review, @natikgadzhi! seems like some of the checks need some kind of additional approval? not familiar with the process. lmk if i'm missing anything. |
It wants this:
Sorry, things are verbose ;( |
Updated! |
What
The Aircall connector defined
paginator
underrecord_selector
, which wasn't getting picked up. This corrects the indentation. Think this probably explains #42092.Based on the documentation, I think the pagination logic was also slightly off -- went ahead and fixed that as well.
How
Sets indent to correct level.
Use
"page"
for parameter instead of a jinja template.Review guide
User Impact
Shouldn't be anything negative. Expect this connector wasn't working for any streams that needed pagination.
Can this PR be safely reverted and rolled back?