-
Notifications
You must be signed in to change notification settings - Fork 256
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
Adjust Action Destination: First implementation + unit tests. #2144
Conversation
@smultani FYI - @seg-leonelsanches raised a PR for a new Destination for Adjust. |
hi @seg-leonelsanches thanks for raising this PR. As a next step could we meet 1:1 to talk through the design and code please? |
Hi @joe-ayoub-segment. Thanks for helping me with this. Yes, we can meet. Do you have my calendar? |
Hi @seg-leonelsanches - here's my Calendly. https://calendly.com/joe_ayoub/ |
packages/destination-actions/src/destinations/adjust/sendEvent/index.ts
Outdated
Show resolved
Hide resolved
packages/destination-actions/src/destinations/adjust/functions.ts
Outdated
Show resolved
Hide resolved
packages/destination-actions/src/destinations/adjust/functions.ts
Outdated
Show resolved
Hide resolved
packages/destination-actions/src/destinations/adjust/functions.ts
Outdated
Show resolved
Hide resolved
packages/destination-actions/src/destinations/adjust/functions.ts
Outdated
Show resolved
Hide resolved
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.
Changes as discussed in meeting and inline.
Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>
Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>
Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>
hi @seg-leonelsanches let me know when this is ready for review. I'll move it to draft for now. |
@joe-ayoub-segment I think the destination is once again ready for review. |
Made some minor changes to get this ready for deploy. |
hi @seg-leonelsanches PR deployed! |
* First implementation + unit tests. * Not using `rawData` in the type. That breaks the build. * Just not checking `data` for a `rawData` property. * Update packages/destination-actions/src/destinations/adjust/index.ts Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com> * Update packages/destination-actions/src/destinations/adjust/functions.ts Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com> * Update packages/destination-actions/src/destinations/adjust/functions.ts Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com> * Modifications requested in PR review. * Unit test adjustments. * Not using snapshot tests. * Updating generated types. * ready for deploy --------- Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com> Co-authored-by: Joe Ayoub <joe.ayoub@segment.com>
* First implementation + unit tests. * Not using `rawData` in the type. That breaks the build. * Just not checking `data` for a `rawData` property. * Update packages/destination-actions/src/destinations/adjust/index.ts Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com> * Update packages/destination-actions/src/destinations/adjust/functions.ts Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com> * Update packages/destination-actions/src/destinations/adjust/functions.ts Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com> * Modifications requested in PR review. * Unit test adjustments. * Not using snapshot tests. * Updating generated types. * ready for deploy --------- Co-authored-by: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com> Co-authored-by: Joe Ayoub <joe.ayoub@segment.com>
One of our customers has dozens of apps, and hundreds (to not say thousands) of events that they want to send to Adjust. Additionally, these are all cloud events, sent by a service in their AWS environment.
To solve the problem, I had to implement something more dynamic: considering a free-form mapping, the customer can send their App Token + Event Token as part of the event, if they wish to do it (and not only in the
context
section, orintegration
section, as the legacy integration works).This should work normally with the plugins and libraries that already exist.
Testing