-
Notifications
You must be signed in to change notification settings - Fork 17
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
source-intercom-native: add tickets
stream and reduce logging
#2281
Conversation
The `tickets` stream is extremely similar to the `conversations` stream; their search endpoints are queried and behave in the same way, so most of this commit was copy + paste of `conversations`, then renaming & refactoring.
Only a single "scroll" can be ongoing at a given time, so it's possible (albeit unlikely) that the capture snapshot test could fail if two applications were running the capture snapshot test.
The connector was logging out `Processing page 1 of 1` frequently when streams were caught up to the present & capturing incrementally. This connector has had sufficient usage that I feel comfortable removing these logs when a stream is caught up, so I limited the page number logging to only happen when a stream is backfilling (i.e. has multiple pages to process or has more than an hour of results to page through).
373abc3
to
43a7e18
Compare
tickets
streamtickets
stream and reduce logging
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.
LGTM
4662836
to
09bf899
Compare
I'm holding off on merging until our production Intercom OAuth app has been updated to request the permissions needed for the |
The "Read and List Tickets" permission has been requested for our OAuth app, so I'm going to merge this PR now. If the permission isn't granted until after Intercom's review is complete, we can disable the |
Description:
This PR's scope includes:
tickets
stream.tickets
stream is extremely similar to theconversations
stream. Their/{resource}/search
endpoints are queried and behave in the same way, so a good chunk of this PR was copy + paste ofconversations
, then renaming & refactoring.config.yaml
to not use/companies/scroll
for snapshot testing to avoid possible intermittent failures when running tests.Snapshot changes are expected due to the addition of the
tickets
stream.Our production Intercom OAuth app will need updated to request the "Read and List tickets" permission since the connector needs it to successfully make calls to
/tickets/search
. After the OAuth app is updated, any existing tasks will need to be reauthenticated if they want to use thetickets
stream.Workflow steps:
(How does one use this feature, and how has it changed)
Documentation links affected:
Documentation should be updated to reflect the added stream.
We may also want to list what scopes are required if users authenticate with access tokens.Based on Intercom's docs, it sounds like scope/permissions are only applicable to OAuth apps, not access tokens.Notes for reviewers:
Tested on a local stack. Confirmed:
tickets
stream captures data & behaves like theconversations
stream.This change is