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

Using throttler while fetching hubspot contact associations #1529

Merged

Conversation

epipav
Copy link
Collaborator

@epipav epipav commented Sep 21, 2023

Changes proposed ✍️

What

🤖 Generated by Copilot at 2bba9a7

Added request throttling to the Hubspot integration to avoid hitting the API rate limit. Used the RequestThrottler class from the @crowd/common package to coordinate and limit the requests to the Hubspot API for contacts and contact associations.

🤖 Generated by Copilot at 2bba9a7

Sing, O Muse, of the skillful coder who devised
A clever way to throttle requests to Hubspot's API
And passed the throttler parameter to the function
That fetched the contact associations with swift execution

Why

How

🤖 Generated by Copilot at 2bba9a7

  • Import and use RequestThrottler class to limit requests to Hubspot API (link, link, link, link)

Checklist ✅

  • Label appropriately with Feature, Improvement, or Bug.
  • Add screehshots to the PR description for relevant FE changes
  • New backend functionality has been unit-tested.
  • API documentation has been updated (if necessary) (see docs on API documentation).
  • Quality standards are met.

@epipav epipav self-assigned this Sep 21, 2023
@epipav epipav added the Bug Created by Linear-GitHub Sync label Sep 21, 2023
@epipav epipav marked this pull request as ready for review September 21, 2023 11:36
@epipav epipav merged commit d1ac2df into main Sep 21, 2023
9 checks passed
@epipav epipav deleted the bugfix/hubspot-integration-using-throttler-with-associations branch September 21, 2023 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants