-
Notifications
You must be signed in to change notification settings - Fork 30
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 17738 sync conversations stream correctly #54
base: TDL-20356-update-function-based-to-class-based
Are you sure you want to change the base?
TDL 17738 sync conversations stream correctly #54
Conversation
…://github.com/singer-io/tap-freshdesk into TDL-17738-sync-conversations-stream-correctly
…L-17738-sync-conversations-stream-correctly
Overwrite updated__at value. | ||
""" | ||
if record.get("last_edited_at"): | ||
record["updated_at"] = max(record["updated_at"], record["last_edited_at"]) |
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.
Please add comments here regarding why the above changes are needed, and we can't use updated_at directly.
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.
Added code comments to explain above if
condition.
tap_freshdesk/test_streams.py
Outdated
"tickets": {"updated_at": "2020-03-16T00:00:00Z"}, | ||
} | ||
|
||
@parameterized.expand([ |
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.
Add comments like #["test_name", "selected_streams"......]
to explain each arguments.
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.
Added comments to explain arguments.
…L-17738-sync-conversations-stream-correctly
Description of change
updated_at
value bylast_edited_at
field if it is available.last_edited_at
isnot None
then assign it's value toupdated_at
field.Manual QA steps
last_edited_at
field value, checkupdated_at
is updated.last_edited_at
field null value, checkupdated_at
is not updated.Risks
Rollback steps