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

Several improvements #28

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

ghost
Copy link

@ghost ghost commented Apr 13, 2021

Description of change

I found it difficult to work with this tap since it is based on an older version of singer, so I did several improvements to it:

  • update to singer 5.9.1, pylint improvements, replace/remove unnecessary requirements
  • fix incremental time-based sync
    Stream Chats returns the last chat from the previous sync. With this change only new chats will be returned by adding 1 millisecond to the bookmark value
  • add sample config
  • add replication method to metadata
    For the stream agents the replication mode was not set because it is either a full-table sync (always returning the whole table) nor a incremental sync (always returning incremental data).
  • fix chats stream (property 'unread') and add description
    Descriptions are taken from the API doc. page

Feel free to cherry-pick when you guys don't want to use all of my changes.

Manual QA steps

  • I have this tap now running over several month in production without any issue.

Risks

  • Refactoring is always a bit dangerous. I tried to limit breaking changes in the code. Please consider testing before you upgrade.

Rollback steps

  • revert this branch

Stream Chats returns the last chat from the previous sync. With this change only new chats will be returned by adding 1 millisecond to the bookmark value
For the stream agents the replication mode was not set because it is either a full-table sync (always returning the whole table) nor a incremental sync (always returning incremental data).
@ghost ghost mentioned this pull request Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant