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-17520: Primary Key is not unique for the purchase_log stream #10

Merged
merged 8 commits into from
Feb 24, 2022

Conversation

hpatel41
Copy link
Contributor

@hpatel41 hpatel41 commented Feb 16, 2022

Description of change

TDL-17520: Primary Key is not unique for the purchase_log stream

  • Used ['date', 'email_hash', 'extid', 'message_id', 'price', 'channel'] as the Primary Key
  • Updated the Primary Key in the integration test

NOTE: the build is failing due to integration tests failure but that is fixed and all tests are written as part of #5

Manual QA steps

Risks

Rollback steps

  • revert this branch

@hpatel41 hpatel41 marked this pull request as ready for review February 21, 2022 13:28
tests/base.py Outdated Show resolved Hide resolved
tests/base.py Outdated Show resolved Hide resolved
@hpatel41 hpatel41 requested a review from RushiT0122 February 23, 2022 12:03
@hpatel41 hpatel41 merged commit 71214f0 into crest-work Feb 24, 2022
@hpatel41 hpatel41 mentioned this pull request Feb 24, 2022
KrisPersonal pushed a commit that referenced this pull request Mar 2, 2022
* TDL-17511-Add missing test case, TDL-17522-Fix typos in the fields (#5)

* Added all the integration test cases

* Added one assertion in discovery test

* used pytest with coverage

* removed un-used line from config.yml file

* reverted the change

* updated config.yml file for unittest coverage

* removed user_agent from base test file

* skip blast_query from start date and bookmark tests

* removed unsed imports and updated state bookmark in bookmark test

* removed setuptools

* resolved bookmark test failure

* resolved bookmark test failure

* include blast_query stream in test cases

Co-authored-by: harshpatel4_crest <[email protected]>

* TDL-17521: Fix date_windowing for the purchase_log stream (#9)

* Added all the integration test cases

* updated date window for purchase log stream

* run purchase log stream in start date test

* Added one assertion in discovery test

* used pytest with coverage

* removed un-used line from config.yml file

* reverted the change

* updated config.yml file for unittest coverage

* removed user_agent from base test file

* skip blast_query from start date and bookmark tests

Co-authored-by: Umang Agrawal <[email protected]>

* TDL-17514: Implement request timeout (#6)

* Added request timeout

* Resolved review comments

* run CCi build

* updated config,yml file for unittest reports

* removed user_agent and imported tap tester libs in base test file

Co-authored-by: harshpatel4_crest <[email protected]>

* TDL-17515: Verify credentials in discover mode (#7)

* Added credentials check in discover mode

* updated unittest and run CCi

* removed user_agent from base file test

* imported runner in base test file

* imported menagerie in base test file

Co-authored-by: harshpatel4_crest <[email protected]>

* TDL-17516: Add custom exception handling (#8)

* added exception handling

* updated 404 error message

* added 500 error class and comments

* run CCi build and updated unittest assertion

* updated config.yml file

* updated config.yml file

* removed user_agent from base test file

* imported tap tester libs in base

* TDL-17520: Primary Key is not unique for the purchase_log stream (#10)

* updated primary key for purchase_log stream

* removed user_agent from base test file

* imported tap_tester in base test file

* added channel in the primary key for purchase log

* resolve pylint error

* resolve unittest failure

* skip 403 and 99 error, updated automatic test case for purchase_log stream

Co-authored-by: Umang Agrawal <[email protected]>
Co-authored-by: Umang Agrawal <[email protected]>
Co-authored-by: savan-chovatiya <[email protected]>
@KrisPersonal KrisPersonal mentioned this pull request Mar 2, 2022
@somethingmorerelevant somethingmorerelevant deleted the TDL-17520-purchase-logs-primary-key branch February 15, 2023 14:57
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.

5 participants