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

Amazon Seller Partner: Validate connections without orders data #20896

Merged
merged 5 commits into from
Jan 9, 2023
Merged

Amazon Seller Partner: Validate connections without orders data #20896

merged 5 commits into from
Jan 9, 2023

Conversation

animer3009
Copy link
Contributor

@animer3009 animer3009 commented Dec 28, 2022

What

Not all accounts have orders and not all reports are orders based.
So checking connections by checking existing orders is not a good idea.

Described issue: #20669

How

Instead of raising error we are validating connections where checking Orders stream ended with StopIteration error.

@animer3009
Copy link
Contributor Author

@bazarnov @monai Can you guys review and approve current changes?

Copy link
Collaborator

@bazarnov bazarnov left a comment

Choose a reason for hiding this comment

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

Lgtm, but integration tests should be passed as well as acceptance tests.

@marcosmarxm tagging you here to follow up, after the code freeze ends.

@animer3009 animer3009 requested a review from bazarnov December 29, 2022 23:16
@marcosmarxm
Copy link
Member

/test connector=connectors/source-amazon-seller-partner

@sajarin sajarin added internal and removed bounty labels Jan 2, 2023
@animer3009
Copy link
Contributor Author

animer3009 commented Jan 3, 2023

@marcosmarxm @bazarnov
Guys, I need to do something or it will auto merged?

@animer3009
Copy link
Contributor Author

/test connector=connectors/source-amazon-seller-partner

@animer3009
Copy link
Contributor Author

@marcosmarxm @bazarnov Why is this merge is stack so long?

@sajarin
Copy link
Contributor

sajarin commented Jan 9, 2023

/test connector=connectors/source-amazon-seller-partner

🕑 connectors/source-amazon-seller-partner https://github.com/airbytehq/airbyte/actions/runs/3875200190
✅ connectors/source-amazon-seller-partner https://github.com/airbytehq/airbyte/actions/runs/3875200190
Python tests coverage:

Name                                        Stmts   Miss  Cover
---------------------------------------------------------------
source_amazon_seller_partner/spec.py           23      0   100%
source_amazon_seller_partner/__init__.py        2      0   100%
source_amazon_seller_partner/constants.py      37      1    97%
source_amazon_seller_partner/source.py         52     13    75%
source_amazon_seller_partner/streams.py       610    273    55%
source_amazon_seller_partner/auth.py           61     36    41%
---------------------------------------------------------------
TOTAL                                         785    323    59%
	 Name                                                 Stmts   Miss  Cover   Missing
	 ----------------------------------------------------------------------------------
	 source_acceptance_test/base.py                          12      4    67%   16-19
	 source_acceptance_test/config.py                       141      5    96%   87, 93, 239, 243-244
	 source_acceptance_test/conftest.py                     211     95    55%   36, 42-44, 49, 54, 77, 83, 89-91, 110, 115-117, 123-125, 131-132, 137-138, 143, 149, 158-167, 173-178, 193, 217, 248, 254, 262-267, 275-285, 293-306, 311-317, 324-335, 342-358
	 source_acceptance_test/plugin.py                        69     25    64%   22-23, 31, 36, 120-140, 144-148
	 source_acceptance_test/tests/test_core.py              402    115    71%   53, 58, 93-104, 109-116, 120-121, 125-126, 308, 346-363, 376-387, 391-396, 402, 435-440, 478-485, 528-530, 533, 598-606, 618-621, 626, 682-683, 689, 692, 728-738, 751-776
	 source_acceptance_test/tests/test_incremental.py       160     14    91%   56-63, 68-81, 244
	 source_acceptance_test/utils/asserts.py                 39      2    95%   62-63
	 source_acceptance_test/utils/common.py                  94     10    89%   16-17, 32-38, 72, 75
	 source_acceptance_test/utils/compare.py                 62     23    63%   21-51, 68, 97-99
	 source_acceptance_test/utils/connector_runner.py       133     33    75%   24-27, 46-47, 50-54, 57-58, 73-75, 78-80, 83-85, 88-90, 93-95, 124-125, 159-161, 208
	 source_acceptance_test/utils/json_schema_helper.py     107     13    88%   30-31, 38, 41, 65-68, 96, 120, 192-194
	 ----------------------------------------------------------------------------------
	 TOTAL                                                 1609    339    79%

Build Passed

Test summary info:

=========================== short test summary info ============================
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/plugin.py:63: Skipping TestBasicRead.test_read: not found in the config.
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/plugin.py:63: Skipping TestFullRefresh.test_sequential_reads: not found in the config.
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/plugin.py:63: Skipping TestIncremental.test_two_sequential_reads: not found in the config.
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/tests/test_core.py:94: The previous and actual specifications are identical.
SKIPPED [1] ../usr/local/lib/python3.9/site-packages/source_acceptance_test/tests/test_core.py:377: The previous and actual discovered catalogs are identical.
================= 22 passed, 5 skipped, 28 warnings in 16.40s ==================

@animer3009 animer3009 requested review from sajarin and removed request for bazarnov January 9, 2023 18:04
@sajarin
Copy link
Contributor

sajarin commented Jan 9, 2023

/publish connector=connectors/source-amazon-seller-partner

🕑 Publishing the following connectors:
connectors/source-amazon-seller-partner
https://github.com/airbytehq/airbyte/actions/runs/3876837036


Connector Did it publish? Were definitions generated?
connectors/source-amazon-seller-partner

if you have connectors that successfully published but failed definition generation, follow step 4 here ▶️

@sajarin sajarin merged commit bbf1a5c into airbytehq:master Jan 9, 2023
@animer3009 animer3009 deleted the amazon_seller_partner_validate_connection branch January 9, 2023 22:43
jbfbell pushed a commit that referenced this pull request Jan 13, 2023
* amazon seller partner validate connection without orders data

* amazon seller partner bump version in docs

* amazon seller partner fix redundant if statement

* auto-bump connector version

Co-authored-by: Sajarin <sajarindider@gmail.com>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants