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

Source Smartsheets: incremental read and tests #12077

Merged

Conversation

davydov-d
Copy link
Collaborator

What

  • Implement incremental read
  • Improve test coverage

How

Using Smartsheets SDK (as it used to be), but now Source inherits AbstractSource, not Source from airbyte_cdk. This led to a major refactoring

@github-actions github-actions bot added area/connectors Connector related issues area/documentation Improvements or additions to documentation labels Apr 15, 2022
@davydov-d
Copy link
Collaborator Author

davydov-d commented Apr 15, 2022

/test connector=connectors/source-smartsheets

🕑 connectors/source-smartsheets https://github.com/airbytehq/airbyte/actions/runs/2173733630
✅ connectors/source-smartsheets https://github.com/airbytehq/airbyte/actions/runs/2173733630
Python tests coverage:

Name                                                 Stmts   Miss  Cover
------------------------------------------------------------------------
source_acceptance_test/utils/__init__.py                 6      0   100%
source_acceptance_test/tests/__init__.py                 4      0   100%
source_acceptance_test/__init__.py                       2      0   100%
source_acceptance_test/tests/test_full_refresh.py       52      2    96%
source_acceptance_test/utils/asserts.py                 37      2    95%
source_acceptance_test/config.py                        74      6    92%
source_acceptance_test/utils/json_schema_helper.py     105     13    88%
source_acceptance_test/utils/common.py                  70     17    76%
source_acceptance_test/utils/compare.py                 62     23    63%
source_acceptance_test/tests/test_core.py              285    106    63%
source_acceptance_test/base.py                          10      4    60%
source_acceptance_test/utils/connector_runner.py       110     48    56%
source_acceptance_test/tests/test_incremental.py        69     38    45%
------------------------------------------------------------------------
TOTAL                                                  886    259    71%
Name                             Stmts   Miss  Cover
----------------------------------------------------
source_smartsheets/source.py        13      0   100%
source_smartsheets/sheet.py         66      0   100%
source_smartsheets/__init__.py       2      0   100%
source_smartsheets/streams.py       37      4    89%
----------------------------------------------------
TOTAL                              118      4    97%

@codecov
Copy link

codecov bot commented Apr 15, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@8cf4569). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master   #12077   +/-   ##
=========================================
  Coverage          ?   96.61%           
=========================================
  Files             ?        4           
  Lines             ?      118           
  Branches          ?        0           
=========================================
  Hits              ?      114           
  Misses            ?        4           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8cf4569...074a1ad. Read the comment docs.

@davydov-d
Copy link
Collaborator Author

davydov-d commented Apr 18, 2022

/test connector=connectors/source-smartsheets

🕑 connectors/source-smartsheets https://github.com/airbytehq/airbyte/actions/runs/2185198148
✅ connectors/source-smartsheets https://github.com/airbytehq/airbyte/actions/runs/2185198148
Python tests coverage:

Name                                                 Stmts   Miss  Cover
------------------------------------------------------------------------
source_acceptance_test/utils/__init__.py                 6      0   100%
source_acceptance_test/tests/__init__.py                 4      0   100%
source_acceptance_test/__init__.py                       2      0   100%
source_acceptance_test/tests/test_full_refresh.py       52      2    96%
source_acceptance_test/utils/asserts.py                 37      2    95%
source_acceptance_test/config.py                        74      6    92%
source_acceptance_test/utils/json_schema_helper.py     105     13    88%
source_acceptance_test/utils/common.py                  70     17    76%
source_acceptance_test/utils/compare.py                 62     23    63%
source_acceptance_test/tests/test_core.py              285    106    63%
source_acceptance_test/base.py                          10      4    60%
source_acceptance_test/utils/connector_runner.py       110     48    56%
source_acceptance_test/tests/test_incremental.py        69     38    45%
------------------------------------------------------------------------
TOTAL                                                  886    259    71%
Name                             Stmts   Miss  Cover
----------------------------------------------------
source_smartsheets/source.py        13      0   100%
source_smartsheets/sheet.py         66      0   100%
source_smartsheets/__init__.py       2      0   100%
source_smartsheets/streams.py       37      4    89%
----------------------------------------------------
TOTAL                              118      4    97%

Copy link
Collaborator

@lazebnyi lazebnyi left a comment

Choose a reason for hiding this comment

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

LGTM

@davydov-d
Copy link
Collaborator Author

davydov-d commented Apr 27, 2022

/publish connector=connectors/source-smartsheets

🕑 connectors/source-smartsheets https://github.com/airbytehq/airbyte/actions/runs/2234531668
🚀 Successfully published connectors/source-smartsheets
🚀 Auto-bumped version for connectors/source-smartsheets
✅ connectors/source-smartsheets https://github.com/airbytehq/airbyte/actions/runs/2234531668

@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets April 27, 2022 17:09 Inactive
@octavia-squidington-iii octavia-squidington-iii temporarily deployed to more-secrets April 27, 2022 17:09 Inactive
@davydov-d davydov-d merged commit 2eb9356 into master Apr 27, 2022
@davydov-d davydov-d deleted the ddavydov/12003-source-smartsheets-incremental-read-and-tests branch April 27, 2022 17:41
@davydov-d davydov-d mentioned this pull request Apr 29, 2022
16 tasks
suhomud pushed a commit that referenced this pull request May 23, 2022
* #5520 fix scrambled columns bug

* #5520 source smartsheets: add changelog item

* #5520 move pytest to optional setup requirements

* #12003 source smartsheets: implement incremental read + tests

* #12003 source smartsheet: add changelog

* #12003 source smartsheets: fix merge conflict on unit tests

* #12003 source smartsheets: fix startdate in spec

* #12003 source smartsheets: add default start dt to spec

* #12003 source smartsheets: add default start dt to spec

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Source Smartsheets: implement incremental read + increase tests coverage
8 participants