-
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
adding batch support #2192
adding batch support #2192
Conversation
Hi @sayan-das-in any chance of a review of this please? |
@joe-ayoub-segment seems good, tests are updated to test either flow, the batch and the single perform method. |
Note: Can't deploy until tested in Staging. |
this.request = request | ||
this.settings = data.settings | ||
this.payloads = Array.isArray(data.payload) ? data.payload : [data.payload] | ||
this.propsOrTraits = Array.isArray(data.rawData) ? data.rawData : [data.rawData] |
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.
Why are we using rawData here?
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.
could we just add a mapping with $.properties
or $.traits
and use that instead.
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.
could we just add a mapping with
$.properties
or$.traits
and use that instead.
This would break for existing users/customers.
hi @Romani-Ramzi this PR has been deployed |
will "perform" function still send single data but in array style? |
* adding batch support * Fix Optimizely Unit test after batching * removing mocked payload * fixing rawData bug * removing unnecessary interface * updated tests * submitting generated types --------- Co-authored-by: Sam Pontefract <sam.pontefract@optimizely.com> Co-authored-by: Romani-Ramzi <romani.ramzi@optimizely.com> Co-authored-by: Romani Ramzi <102735170+Romani-Ramzi@users.noreply.github.com>
* adding batch support * Fix Optimizely Unit test after batching * removing mocked payload * fixing rawData bug * removing unnecessary interface * updated tests * submitting generated types --------- Co-authored-by: Sam Pontefract <sam.pontefract@optimizely.com> Co-authored-by: Romani-Ramzi <romani.ramzi@optimizely.com> Co-authored-by: Romani Ramzi <102735170+Romani-Ramzi@users.noreply.github.com>
Adding batch capability to Optimizely Audiences.
Testing
Tested locally.