TDL-14798: Add a proper error message for timezone issue - #35
Closed
savan-chovatiya wants to merge 22 commits into
Closed
TDL-14798: Add a proper error message for timezone issue#35savan-chovatiya wants to merge 22 commits into
savan-chovatiya wants to merge 22 commits into
Conversation
* TDL-14794: Added new tep-tester test cases * TDL-14794: Updated CCI * TDL-14794: Fixed pagination bug * TDL-14794: Updated test path * TDL-14794: Removed unused imports * TDL-14794: Removed unused import * TDL-14794: Formated the code * TDL-14794: Removed page size * TDL-14794: Added backoff for 429 * Test: Put loggers * TDL-14794: Updated the error handling of tap * TDL-14794: Put latest start date * TDL-14794: Updated test cases with end_date * TDL-14794: Made replication_keys automatic * TDL-14794: Resolved review comments * TDL-14794: Updated start date * TDL-14794: Updated test cases to test more scenarios * TDL-14794: Added Unit tests and all_filed tests cases in pagination test * TDL-14794: Updated pytest to nose * TDL-14794: Updated parent class of 500 error Co-authored-by: dbshah1212 <root@ubuntu16.cdsys.local>
* TDL-14795: Changed stream and sync file structure from dict base to class base * TDL-14795: Removed unused imports * TDL-14795: Updated replication key logic * TDL-14795: Converted code from CLRF to LF * TDL-14795: Optimized the code Co-authored-by: dbshah1212 <root@ubuntu16.cdsys.local>
* TDL-14795: Changed stream and sync file structure from dict base to class base * TDL-14795: Removed unused imports * TDL-14795: Updated replication key logic * TDL-14795: Converted code from CLRF to LF * TDL-14795: Optimized the code * TDL-14795: Updated code to make compaitable with new tap code structure * TDL-14795: Removed res files Co-authored-by: dbshah1212 <root@ubuntu16.cdsys.local>
* TDL-14794: Added new tep-tester test cases * TDL-14794: Updated CCI * TDL-14794: Fixed pagination bug * TDL-14794: Updated test path * TDL-14794: Removed unused imports * TDL-14794: Removed unused import * TDL-14794: Formated the code * TDL-14794: Removed page size * TDL-14794: Added backoff for 429 * Test: Put loggers * TDL-14794: Updated the error handling of tap * TDL-14794: Put latest start date * TDL-14794: Updated test cases with end_date * TDL-14794: Made replication_keys automatic * TDL-14794: Resolved review comments * TDL-14794: Updated start date * TDL-14794: Updated test cases to test more scenarios * TDL-14794: Added Unit tests and all_filed tests cases in pagination test * TDL-14794: Updated pytest to nose * TDL-14794: Updated parent class of 500 error * TDL-14794: Removed content length as Andy suggested in github Co-authored-by: dbshah1212 <root@ubuntu16.cdsys.local>
| error_code, {})).get( | ||
| "message", "Unknown Error")) | ||
|
|
||
| # if response text contains something unusual errpr of to_date then provide helper message of timezone mismatch |
There was a problem hiding this comment.
@savan-chovatiya Resolve the spelling mistake in the comment for word 'error'
Contributor
Author
There was a problem hiding this comment.
Resolved spell mistake.
| if error_code == 400 and "to_date" in response.text: | ||
| error_message += " Please validate the timezone with the MixPanel UI under project settings." | ||
|
|
||
| message = "HTTP-error-code: {}, Error: {}".format( |
There was a problem hiding this comment.
@savan-chovatiya As per the latest best practices, please use f-strings instead of format
Contributor
Author
There was a problem hiding this comment.
Updated formatted message with f-strings.
|
|
||
| # Mock response | ||
| def get_mock_http_response(content, status_code): | ||
| contents = content |
There was a problem hiding this comment.
@savan-chovatiya No need of this variable. You can directly use 'content' variable at line 13
Contributor
Author
There was a problem hiding this comment.
Removed contents variable and directly used content.
karanpanchal-crest
approved these changes
Sep 29, 2021
KrisPersonal
approved these changes
Oct 21, 2021
KrisPersonal
approved these changes
Oct 26, 2021
* TDL-14840: Updated transform to fix conversion * Tdl 14794 implement tap tester tests (#30) * TDL-14794: Added new tep-tester test cases * TDL-14794: Updated CCI * TDL-14794: Fixed pagination bug * TDL-14794: Updated test path * TDL-14794: Removed unused imports * TDL-14794: Removed unused import * TDL-14794: Formated the code * TDL-14794: Removed page size * TDL-14794: Added backoff for 429 * Test: Put loggers * TDL-14794: Updated the error handling of tap * TDL-14794: Put latest start date * TDL-14794: Updated test cases with end_date * TDL-14794: Made replication_keys automatic * TDL-14794: Resolved review comments * TDL-14794: Updated start date * TDL-14794: Updated test cases to test more scenarios * TDL-14794: Added Unit tests and all_filed tests cases in pagination test * TDL-14794: Updated pytest to nose * TDL-14794: Updated parent class of 500 error Co-authored-by: dbshah1212 <root@ubuntu16.cdsys.local> * Tdl 14795 streams and sync should not be dict based (#32) * TDL-14795: Changed stream and sync file structure from dict base to class base * TDL-14795: Removed unused imports * TDL-14795: Updated replication key logic * TDL-14795: Converted code from CLRF to LF * TDL-14795: Optimized the code Co-authored-by: dbshah1212 <root@ubuntu16.cdsys.local> * Tdl 14795 streams and sync should not be dict based (#33) * TDL-14795: Changed stream and sync file structure from dict base to class base * TDL-14795: Removed unused imports * TDL-14795: Updated replication key logic * TDL-14795: Converted code from CLRF to LF * TDL-14795: Optimized the code * TDL-14795: Updated code to make compaitable with new tap code structure * TDL-14795: Removed res files Co-authored-by: dbshah1212 <root@ubuntu16.cdsys.local> * Tdl 14794 implement tap tester tests (#34) * TDL-14794: Added new tep-tester test cases * TDL-14794: Updated CCI * TDL-14794: Fixed pagination bug * TDL-14794: Updated test path * TDL-14794: Removed unused imports * TDL-14794: Removed unused import * TDL-14794: Formated the code * TDL-14794: Removed page size * TDL-14794: Added backoff for 429 * Test: Put loggers * TDL-14794: Updated the error handling of tap * TDL-14794: Put latest start date * TDL-14794: Updated test cases with end_date * TDL-14794: Made replication_keys automatic * TDL-14794: Resolved review comments * TDL-14794: Updated start date * TDL-14794: Updated test cases to test more scenarios * TDL-14794: Added Unit tests and all_filed tests cases in pagination test * TDL-14794: Updated pytest to nose * TDL-14794: Updated parent class of 500 error * TDL-14794: Removed content length as Andy suggested in github Co-authored-by: dbshah1212 <root@ubuntu16.cdsys.local> * TDL-14840: Resolved merge conflicts * TDL-14840: Removed extra space * TDL-14840: Removed extra line * Added coverage report to artifact0 * Updated artifact sequence * Added code comment Co-authored-by: savan-chovatiya <savan.chovatiya@crestdatasys.com> Co-authored-by: dbshah1212 <root@ubuntu16.cdsys.local> Co-authored-by: prijendev <prijen.khokhani@crestdatasys.com> Co-authored-by: prijendev <88327452+prijendev@users.noreply.github.com>
* Tdl 14794 implement tap tester tests (#30) * TDL-14794: Added new tep-tester test cases * TDL-14794: Updated CCI * TDL-14794: Fixed pagination bug * TDL-14794: Updated test path * TDL-14794: Removed unused imports * TDL-14794: Removed unused import * TDL-14794: Formated the code * TDL-14794: Removed page size * TDL-14794: Added backoff for 429 * Test: Put loggers * TDL-14794: Updated the error handling of tap * TDL-14794: Put latest start date * TDL-14794: Updated test cases with end_date * TDL-14794: Made replication_keys automatic * TDL-14794: Resolved review comments * TDL-14794: Updated start date * TDL-14794: Updated test cases to test more scenarios * TDL-14794: Added Unit tests and all_filed tests cases in pagination test * TDL-14794: Updated pytest to nose * TDL-14794: Updated parent class of 500 error Co-authored-by: dbshah1212 <root@ubuntu16.cdsys.local> * Tdl 14795 streams and sync should not be dict based (#32) * TDL-14795: Changed stream and sync file structure from dict base to class base * TDL-14795: Removed unused imports * TDL-14795: Updated replication key logic * TDL-14795: Converted code from CLRF to LF * TDL-14795: Optimized the code Co-authored-by: dbshah1212 <root@ubuntu16.cdsys.local> * Tdl 14795 streams and sync should not be dict based (#33) * TDL-14795: Changed stream and sync file structure from dict base to class base * TDL-14795: Removed unused imports * TDL-14795: Updated replication key logic * TDL-14795: Converted code from CLRF to LF * TDL-14795: Optimized the code * TDL-14795: Updated code to make compaitable with new tap code structure * TDL-14795: Removed res files Co-authored-by: dbshah1212 <root@ubuntu16.cdsys.local> * Tdl 14794 implement tap tester tests (#34) * TDL-14794: Added new tep-tester test cases * TDL-14794: Updated CCI * TDL-14794: Fixed pagination bug * TDL-14794: Updated test path * TDL-14794: Removed unused imports * TDL-14794: Removed unused import * TDL-14794: Formated the code * TDL-14794: Removed page size * TDL-14794: Added backoff for 429 * Test: Put loggers * TDL-14794: Updated the error handling of tap * TDL-14794: Put latest start date * TDL-14794: Updated test cases with end_date * TDL-14794: Made replication_keys automatic * TDL-14794: Resolved review comments * TDL-14794: Updated start date * TDL-14794: Updated test cases to test more scenarios * TDL-14794: Added Unit tests and all_filed tests cases in pagination test * TDL-14794: Updated pytest to nose * TDL-14794: Updated parent class of 500 error * TDL-14794: Removed content length as Andy suggested in github Co-authored-by: dbshah1212 <root@ubuntu16.cdsys.local> * TDL-6141: Switched multipleOf with singer.decimal * TDL-6141 removed the whitespaces * TDL-6141 removed the multipleOf from schema.py * TDL-6141 removed a whitespace * TDL-6141: Resolved merge conflicts * Added coverage report to artifact * Updated circleci config.yml Co-authored-by: dbshah1212 <root@ubuntu16.cdsys.local> Co-authored-by: savan-chovatiya <savan.chovatiya@crestdatasys.com> Co-authored-by: namrata270998 <namrata.brahmbhatt@crestdatasys.com> Co-authored-by: namrata270998 <75604662+namrata270998@users.noreply.github.com> Co-authored-by: prijendev <88327452+prijendev@users.noreply.github.com> Co-authored-by: prijendev <prijen.khokhani@crestdatasys.com>
Contributor
|
The code change of this PR is already merged into the main branch. Hence, closing this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of change
TDL-14798: TimeZones appear to break customer syncs
Manual QA steps
Risks
Rollback steps