-
Notifications
You must be signed in to change notification settings - Fork 10
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-14798: Add a proper error message for timezone issue #35
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>
tap_mixpanel/client.py
Outdated
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@savan-chovatiya Resolve the spelling mistake in the comment for word 'error'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved spell mistake.
tap_mixpanel/client.py
Outdated
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@savan-chovatiya As per the latest best practices, please use f-strings instead of format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@savan-chovatiya No need of this variable. You can directly use 'content' variable at line 13
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed contents
variable and directly used content
.
* 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>
The code change of this PR is already merged into the main branch. Hence, closing this PR. |
Description of change
TDL-14798: TimeZones appear to break customer syncs
Manual QA steps
Risks
Rollback steps