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

Tdl 21819 tickets stream dev changes #218

Merged
merged 19 commits into from Feb 16, 2023

Conversation

rdeshmukh15
Copy link
Contributor

@rdeshmukh15 rdeshmukh15 commented Feb 3, 2023

Description of change

  • Implementation of the new stream called tickets to list all associations of a ticket by object type. (API doc link)
  • Added schema file for the stream tickets
  • Unit test case scenarios to test the dev changes done

Manual QA steps

Risks

Rollback steps

  • revert this branch

@rdeshmukh15 rdeshmukh15 force-pushed the TDL-21819-tickets-stream-dev-changes branch from fadb7e7 to 9dfc7d9 Compare February 6, 2023 16:36
@rdeshmukh15 rdeshmukh15 force-pushed the TDL-21819-tickets-stream-dev-changes branch from 7ed033b to 06b1b94 Compare February 7, 2023 14:14
@rdeshmukh15 rdeshmukh15 marked this pull request as ready for review February 7, 2023 14:28
tap_hubspot/tests/unittests/test_tickets.py Outdated Show resolved Hide resolved
tap_hubspot/schemas/tickets.json Outdated Show resolved Hide resolved
tap_hubspot/__init__.py Outdated Show resolved Hide resolved
tap_hubspot/__init__.py Show resolved Hide resolved
tap_hubspot/schemas/tickets.json Outdated Show resolved Hide resolved
tap_hubspot/__init__.py Show resolved Hide resolved
@kethan1122
Copy link
Contributor

Don't forget to update README

mocked_gen_request.assert_called_once_with(ANY, ANY, ANY, expected_param, ANY, ANY)


output_results = {'results': [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting of this should be cleaned up.

modified_time = utils.strptime_with_tz(datetime.datetime.strptime(
modified_time_org, "%Y-%m-%dT%H:%M:%S.%fZ").strftime("%Y-%m-%dT%H:%M:%SZ"))

# Checking the bookmark value is present and the record is having

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we reword this to make it a little more clear?

Maybe something like:

Checking the bookmark value is present on the record and it
is greater than or equal to defined previous bookmark value

@singer-io singer-io deleted a comment from kethan1122 Feb 7, 2023
@sgandhi1311 sgandhi1311 force-pushed the TDL-21819-tickets-stream-dev-changes branch from 05760b7 to 265b06e Compare February 10, 2023 19:54
* add tickets stream in base.py file

* get ticket records

* add create ticket function for integration test case

* test tickets stream in interrupt sync mode

* Changes:
- add page limit
- add functions to get, create, and update the tickets stream

* modify get logic for tickets in client.py and update sync offset test

* address review comments and reformat the client.py as per the standards

* Formatting changes in client.py and bookmark key change in interrupt sync test
@sgandhi1311 sgandhi1311 merged commit 47372f2 into master Feb 16, 2023
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.

None yet

5 participants