-
Notifications
You must be signed in to change notification settings - Fork 254
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
Update: Format Date type objects to permissible Iterable date string #2645
base: main
Are you sure you want to change the base?
Conversation
hi @TheFacto-HH thanks for raising this draft PR.
isn't going to do anything, as value will never be a Date object. In order to help you with the issue you've been having, could you please tell me the following:
Kind regards, |
Hey @joe-ayoub-segment , thanks for the early review!
We noticed that if we mapped If you remove the line that you mentioned and re-run the unit test I added: |
Thanks for explaining @TheFacto-HH. Could you show me reproduction steps for the issue you are having please, if possible with screenshots of the mapping fields and an example payload? I don't doubt your claim - I'm just trying to verify it. The change looks safe, but I'd like to ensure that it actually addresses a fault before I merged it. Thanks, |
Sure thing! Segment Mapping ( Iterable Data Schema ( Iterable User Fields (Notably, |
Thanks for the explanation @TheFacto-HH . The receivedAt date is generated on Segment's servers, so it is entirely possible that it's getting passed as a Data object. I've approved the PR - so please convert it to a full PR and then I'll deploy it tomorrow. Best regards, |
hi @TheFacto-HH - looks like we won't be deploying this PR until the new year. |
Hey @joe-ayoub-segment - happy new year! Was curious when we might be able to get this change through. Thanks! |
Hello 👋
We noticed when attempting to map the
receivedAt
property from Segment's UI to an Iterable destination field, Iterable was dropping the property (we used Iterable's Data-Schema-Management to define the property as aDate
ahead of time). We discovered that this is very likely due toreceivedAt
being aDate
which was not handled by theconvertDatesInObject
function.We're looking for feedback on this update which would check against
Date
types and format them to be compatible with Iterable's permitted date string format.Testing
Include any additional information about the testing you have completed to
ensure your changes behave as expected. For a speedy review, please check
any of the tasks you completed below during your testing.