action-destinations icon indicating copy to clipboard operation
action-destinations copied to clipboard

Adding batch to events

Open Romani-Ramzi opened this issue 1 year ago • 4 comments

A summary of your pull request, including the what change you're making and why.

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.

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

Romani-Ramzi avatar Jul 23 '24 19:07 Romani-Ramzi

Thanks for raising this PR @Romani-Ramzi . I'll schedule for review

joe-ayoub-segment avatar Jul 25 '24 09:07 joe-ayoub-segment

hi @Romani-Ramzi looks like a bunch of CI checks are failing. Can you take a look please? If it's not your code change then try merging in the latest code form the Segment action-destinations main branch.

joe-ayoub-segment avatar Jul 25 '24 09:07 joe-ayoub-segment

hi @Romani-Ramzi looks like a bunch of CI checks are failing. Can you take a look please? If it's not your code change then try merging in the latest code form the Segment action-destinations main branch.

Hi @joe-ayoub-segment thats strange, we tested and ran yarn test, everything seemed fine. we updated our fork and seems to be ok.

Romani-Ramzi avatar Jul 25 '24 12:07 Romani-Ramzi

hi @Romani-Ramzi there's an issue with our CI on Github. It's likely the cause of the red CI checks. The team is on it.

joe-ayoub-segment avatar Jul 29 '24 09:07 joe-ayoub-segment

@joe-ayoub-segment is there any update regarding this PR?

Romani-Ramzi avatar Aug 01 '24 13:08 Romani-Ramzi

hi @Romani-Ramzi I'll review this today. In the meantime - CI checks appear to be failing. Any chance you could take a look please?

joe-ayoub-segment avatar Aug 05 '24 09:08 joe-ayoub-segment

@joe-ayoub-segment we updated to fix all test and missing "batch" configuration fields. there are test for batch that we expected to fail, but it did not, we just put a comment "/// TODO" next to them.

In batch test, we though that it should throw error if required field is missing. also in profile action, in single request, address object is excluded if there is no address, but in batch seems to appear with empty object.

please advice.

Romani-Ramzi avatar Aug 08 '24 12:08 Romani-Ramzi

hi @Romani-Ramzi ,

Sorry, I should have been more clear in my request ;)!

There are 4 Actions being updated so that they can support batching. What I'd like to see evidence of is that each Action can be called with an array of payloads, and that the delivery of those payloads is successful to Optimizely.

Another thing I noticed is that it looks like some of the generated-types.ts files were not updated despite new fields being added. You might need to run the ./bin/run generate:types command and commit the edit.

Lastly we need to see that the CI checks are green. It's possible that just updating the types will fix this, but I can't be sure.

Kind regards, Joe

joe-ayoub-segment avatar Aug 13 '24 11:08 joe-ayoub-segment

@joe-ayoub-segment my mistake, I was pushing to different branch, I accidently pushed to different branch name, but its fixed now.

Romani-Ramzi avatar Aug 13 '24 14:08 Romani-Ramzi

CustomEvent Action end-to-end Test:

SegmentIO side: Screenshot 2024-08-15 084913

Optimizely side: Screenshot 2024-08-15 084710

Got request as array.

Romani-Ramzi avatar Aug 15 '24 09:08 Romani-Ramzi

nonEcommCustomEvent Action end-to-end Test:

SegmentIO side: Screenshot 2024-08-15 101139

Optimizely side: Screenshot 2024-08-15 101025

Got request as array.

Romani-Ramzi avatar Aug 15 '24 09:08 Romani-Ramzi

emailEvent Action end-to-end Test:

SegmentIO side: Screenshot 2024-08-15 101648

Optimizely side: Screenshot 2024-08-15 101429

Got request as array.

Romani-Ramzi avatar Aug 15 '24 09:08 Romani-Ramzi

upsertContact Action end-to-end Test:

SegmentIO side: Screenshot 2024-08-15 102153

Optimizely side: Screenshot 2024-08-15 102107

Got request as array.

Romani-Ramzi avatar Aug 15 '24 09:08 Romani-Ramzi

hi @Romani-Ramzi this PR has been deployed. Can you please confirm it looks good?

joe-ayoub-segment avatar Aug 20 '24 17:08 joe-ayoub-segment