[PINT-2637] - Several new features#3826
Conversation
| Accept: 'application/vnd.urbanairship+json; version=3', | ||
| 'Content-Type': 'application/json' | ||
| 'Content-Type': 'application/json', | ||
| 'User-Agent': `PartnerIntegrations/Segment (${settings.app_key})` |
There was a problem hiding this comment.
Hi @jumpingGrendel can you include this new header in a unit test please? Just want to make sure it's completely deliberate.
|
Hi @jumpingGrendel |
…tently — maps ios/android/amazon/web → *_channel, falls back to generic channel when omitted/unrecognized * gave channel_type a default: $.context.device.type and kept it a free string * added a User-Agent header unit test * added batch test for customEvents (was missing) * dropped the BROWSER/serve.ts commit * commented index.ts env-var defaults
b7ab09d to
009164e
Compare
Hello @joe-ayoub-segment thanks for the review. I removed the change to serve (I hope Segment will consider adding this!) as well as the default env-vars as per your requests. I don't want to make channel_type an enum because
I added a unit test for the userAgent change, as well as a couple other test updates, as well as a bit of refactoring to make it make a bit more sense. Also, bunch of screenshots of the testing. I hope that covers it! |
|
Thanks @jumpingGrendel looks good to me. You forgot to add the proof of testing screenshots though. Can you add them please? I'll then approve the PR. |
|
@joe-ayoub-segment that's so weird, they must've been stripped out when I edited the description to include them. |







Testing
Security Review
Please ensure sensitive data is properly protected in your integration.
type: 'password'New Destination Checklist
verioning-info.tsfile. example