Skip to content
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

Merged
merged 14 commits into from
Jul 23, 2024

Conversation

seg-leonelsanches
Copy link
Contributor

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, or integration section, as the legacy integration works).

This should work normally with the plugins and libraries that already exist.

Testing

  • Added unit tests for new functionality
  • Tested end-to-end using the local server
  • [Segmenters] Tested in the staging environment

@joe-ayoub-segment
Copy link
Contributor

@smultani FYI - @seg-leonelsanches raised a PR for a new Destination for Adjust.

@joe-ayoub-segment
Copy link
Contributor

hi @seg-leonelsanches thanks for raising this PR.
I've asked my team how they'd like me to proceed with this review. Adjust is an important Destination which may need to be designed in such a way that it can be used by all customers.

As a next step could we meet 1:1 to talk through the design and code please?

@seg-leonelsanches
Copy link
Contributor Author

Hi @joe-ayoub-segment. Thanks for helping me with this.

Yes, we can meet. Do you have my calendar?

@joe-ayoub-segment
Copy link
Contributor

Hi @seg-leonelsanches - here's my Calendly. https://calendly.com/joe_ayoub/
Could we meet later in the week?

Copy link
Contributor

@joe-ayoub-segment joe-ayoub-segment left a 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.

seg-leonelsanches and others added 5 commits July 17, 2024 14:19
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>
@joe-ayoub-segment
Copy link
Contributor

hi @seg-leonelsanches let me know when this is ready for review. I'll move it to draft for now.
Also FYI tests are failing.

@joe-ayoub-segment joe-ayoub-segment marked this pull request as draft July 18, 2024 09:39
@seg-leonelsanches seg-leonelsanches marked this pull request as ready for review July 18, 2024 20:45
@seg-leonelsanches
Copy link
Contributor Author

@joe-ayoub-segment I think the destination is once again ready for review.

@joe-ayoub-segment
Copy link
Contributor

Made some minor changes to get this ready for deploy.

@joe-ayoub-segment joe-ayoub-segment merged commit 382e4c9 into main Jul 23, 2024
11 checks passed
@joe-ayoub-segment joe-ayoub-segment deleted the adjust branch July 23, 2024 11:03
@joe-ayoub-segment
Copy link
Contributor

hi @seg-leonelsanches PR deployed!

marinhero pushed a commit that referenced this pull request Aug 2, 2024
* 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>
harsh-joshi99 pushed a commit that referenced this pull request Aug 16, 2024
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants