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

Snap misc fixes #1900

Merged
merged 14 commits into from
Mar 5, 2024
Merged

Snap misc fixes #1900

merged 14 commits into from
Mar 5, 2024

Conversation

bordoley
Copy link
Contributor

@bordoley bordoley commented Feb 29, 2024

Fixes several issues we identified when introspecting production test data.

  • app_data missing the advertiser_tracking_enabled field. Per the spec it is required, however clients do not provide the ATT_STATUS field, so we set it to 0 by default.
  • app_data requires extinfo. Previously we did not include empty extinfo. Now we include whenever app_data is part of the request.
  • action_source for OFFLINE event_conversion_type. Since this event_conversion_type doesn't directly map to those define in the spec, we instead use the v2 naming convention. Previously we sent the action_source "other" for OFFLINE events, but the service does not support this correctly.
  • Updates the box utility function to return undefined for undefined or empty input. This avoids including fields such as ph when no data is available.
  • Update and rename emptyToUndefined to emptyStringToUndefined with a clearer implementation

Testing

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

@bordoley bordoley marked this pull request as ready for review February 29, 2024 21:14
@bordoley bordoley requested a review from a team as a code owner February 29, 2024 21:14
@bordoley bordoley requested a review from a team February 29, 2024 21:14
@joe-ayoub-segment joe-ayoub-segment merged commit e0a5d6b into segmentio:main Mar 5, 2024
8 of 9 checks passed
@joe-ayoub-segment
Copy link
Contributor

hi @bordoley this PR has been deployed.

harsh-joshi99 added a commit that referenced this pull request Mar 8, 2024
commit b897052
Author: Harsh Joshi <harsh.joshi@segment.com>
Date:   Fri Mar 8 14:09:59 2024 +0530

    Update error handling in get audience

commit f708118
Author: joe-ayoub-segment <45374896+joe-ayoub-segment@users.noreply.github.com>
Date:   Wed Mar 6 12:15:27 2024 +0000

    Publish

     - @segment/action-destinations@3.251.0

commit 1c3e2b4
Author: joe-ayoub-segment <45374896+joe-ayoub-segment@users.noreply.github.com>
Date:   Wed Mar 6 12:03:17 2024 +0000

    fixing broken field for optimizely data platform

commit f5e6e4f
Author: joe-ayoub-segment <45374896+joe-ayoub-segment@users.noreply.github.com>
Date:   Wed Mar 6 11:56:07 2024 +0000

    fixing breaking field for optimizely data platform

commit f540306
Author: Marín Alcaraz <marin.alcarazcordova@segment.com>
Date:   Tue Mar 5 15:40:11 2024 -0800

    Publish

     - @segment/action-destinations@3.250.0

commit 6a35edd
Author: Marín Alcaraz <marin.alcarazcordova@segment.com>
Date:   Tue Mar 5 15:36:29 2024 -0800

    DV360 - Update Chamber Variable (#1912)

commit ed54b6b
Author: joe-ayoub-segment <45374896+joe-ayoub-segment@users.noreply.github.com>
Date:   Tue Mar 5 13:33:54 2024 +0000

    Publish

     - @segment/actions-shared@1.81.0
     - @segment/browser-destination-runtime@1.30.0
     - @segment/actions-core@3.100.0
     - @segment/action-destinations@3.249.0
     - @segment/destinations-manifest@1.43.0
     - @segment/analytics-browser-actions-1flow@1.13.0
     - @segment/analytics-browser-actions-adobe-target@1.31.0
     - @segment/analytics-browser-actions-algolia-plugins@1.8.0
     - @segment/analytics-browser-actions-amplitude-plugins@1.31.0
     - @segment/analytics-browser-actions-braze-cloud-plugins@1.34.0
     - @segment/analytics-browser-actions-braze@1.34.0
     - @segment/analytics-browser-actions-bucket@1.11.0
     - @segment/analytics-browser-actions-cdpresolution@1.18.0
     - @segment/analytics-browser-actions-commandbar@1.31.0
     - @segment/analytics-browser-actions-devrev@1.18.0
     - @segment/analytics-browser-actions-friendbuy@1.31.0
     - @segment/analytics-browser-actions-fullstory@1.33.0
     - @segment/analytics-browser-actions-google-analytics-4@1.37.0
     - @segment/analytics-browser-actions-google-campaign-manager@1.21.0
     - @segment/analytics-browser-actions-heap@1.31.0
     - @segment/analytics-browser-hubble-web@1.17.0
     - @segment/analytics-browser-actions-hubspot@1.31.0
     - @segment/analytics-browser-actions-intercom@1.31.0
     - @segment/analytics-browser-actions-iterate@1.31.0
     - @segment/analytics-browser-actions-jimo@1.19.0
     - @segment/analytics-browser-actions-koala@1.31.0
     - @segment/analytics-browser-actions-logrocket@1.31.0
     - @segment/analytics-browser-actions-pendo-web-actions@1.20.0
     - @segment/analytics-browser-actions-playerzero@1.31.0
     - @segment/analytics-browser-actions-replaybird@1.12.0
     - @segment/analytics-browser-actions-ripe@1.31.0
     - @segment/analytics-browser-actions-rupt@1.20.0
     - @segment/analytics-browser-actions-screeb@1.31.0
     - @segment/analytics-browser-actions-utils@1.31.0
     - @segment/analytics-browser-actions-snap-plugins@1.12.0
     - @segment/analytics-browser-actions-sprig@1.31.0
     - @segment/analytics-browser-actions-stackadapt@1.31.0
     - @segment/analytics-browser-actions-survicate@1.7.0
     - @segment/analytics-browser-actions-tiktok-pixel@1.28.0
     - @segment/analytics-browser-actions-upollo@1.31.0
     - @segment/analytics-browser-actions-userpilot@1.31.0
     - @segment/analytics-browser-actions-vwo@1.32.0
     - @segment/analytics-browser-actions-wiseops@1.31.0

commit 8793063
Author: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>
Date:   Tue Mar 5 13:30:12 2024 +0000

    Registering kevel-audience

commit 82a80b9
Author: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>
Date:   Tue Mar 5 13:19:12 2024 +0000

    Optimizely data platform changes (#1906)

    * changes to ODP Destination

    * fixing tests

    * adding campaign_id to email action

    * fixing preset

commit e0a5d6b
Author: Dave <bordoley@gmail.com>
Date:   Tue Mar 5 08:13:34 2024 -0500

    Snap misc fixes (#1900)

    * set the app_id to undefined if empty. Set advertiser_tracking_enabled to 0 if the app_id is defined

    * add comment on advertiser_tracking_enabled field usage

    * tweak app_data and extinfo build

    * update box function to return undefined if the input string is empty or undefined instead of an empty array

    * fix tests

    * fix typo

    * simplify action_source logic

    * update tests to validate advertiser_tracking_enabled and changes to box function

    * cleaner implementation of emptyStringtoUndefined

    * simpler implementation of box

    * remove duplicate util function

    * fix function name

    * log errors as critical

    * add prefix to logger entries

    ---------

    Co-authored-by: David Bordoley <dbordoley@snapchat.com>

commit b8439ca
Author: suppalapati <110847862+Sneha-Uppalapati@users.noreply.github.com>
Date:   Tue Mar 5 05:12:28 2024 -0800

    Channels-1034 Set google Api version for Push (#1883)

    * feat: set googleApiVersion

    * fix: set legacy as default version

    * fix: defaults

    ---------

    Co-authored-by: suppalapati <sneha.uppalapati@segment.com>
    Co-authored-by: alfrimpong <afrimpong@twilio.com>

commit a77f4a7
Author: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>
Date:   Tue Mar 5 13:11:18 2024 +0000

    basic SSL config options (#1908)

commit 726d281
Author: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>
Date:   Tue Mar 5 11:23:49 2024 +0000

    Adding new kevel-audience Destination (#1910)

    * adding kevel-audience Destination

    * fixing spelling issue

commit ca71fbf
Author: mayur-pitale <109548891+mayur-pitale@users.noreply.github.com>
Date:   Tue Mar 5 01:54:20 2024 -0800

    Added encoding to username & password (#1909)

commit 529e786
Author: hvardhan-unth <117922634+hvardhan-unth@users.noreply.github.com>
Date:   Tue Mar 5 15:10:01 2024 +0530

    [Stratconn 3257] Add batching to segment connections (#1859)

    * Added batching for all the actions of segment destination

    * Added the unit test cases for batching

    * Updated the test case for batch happy path

    * Updated the test case

    * Updated the tag name for batch matrix

    * Added enable batching field

    * Revert the unwanted changes and updated the perform block

    * Revert the unwanted changes

    * Revert the unwanted changes

    * Changes output text for batch execution

    ---------

    Co-authored-by: Harsh Vardhan <harsh.vardhan@segment.com>

commit 53b4441
Author: Varadarajan V <109586712+varadarajan-tw@users.noreply.github.com>
Date:   Tue Mar 5 10:32:49 2024 +0530

    [STRATCONN-3623] - Adds github actions workflow to label PRs (#1905)

    * Adds PR labeler workflow

    * rename token

    * update secret name

    * fix script path

    * change path

    * Delete scripts folder

    * dummy commit

    * update registration regex

    * Add comments on checks

commit 8d3a139
Author: Ankit Gupta <139338151+AnkitSegment@users.noreply.github.com>
Date:   Mon Mar 4 23:39:15 2024 +0530

    [MAIN] [STRATCONN] 3313 add page view field in setConfigurationFields (#1904)

    * send_page_view mapping added

    * updated unit test cases of send_page_view in setConfigurationFields

    * removed unrelevent code

    * removed unrelevent code
harsh-joshi99 added a commit that referenced this pull request Mar 8, 2024
commit 473990d
Author: Harsh Joshi <harsh.joshi@segment.com>
Date:   Fri Mar 8 14:49:37 2024 +0530

    Add test case for error

commit b897052
Author: Harsh Joshi <harsh.joshi@segment.com>
Date:   Fri Mar 8 14:09:59 2024 +0530

    Update error handling in get audience

commit f708118
Author: joe-ayoub-segment <45374896+joe-ayoub-segment@users.noreply.github.com>
Date:   Wed Mar 6 12:15:27 2024 +0000

    Publish

     - @segment/action-destinations@3.251.0

commit 1c3e2b4
Author: joe-ayoub-segment <45374896+joe-ayoub-segment@users.noreply.github.com>
Date:   Wed Mar 6 12:03:17 2024 +0000

    fixing broken field for optimizely data platform

commit f5e6e4f
Author: joe-ayoub-segment <45374896+joe-ayoub-segment@users.noreply.github.com>
Date:   Wed Mar 6 11:56:07 2024 +0000

    fixing breaking field for optimizely data platform

commit f540306
Author: Marín Alcaraz <marin.alcarazcordova@segment.com>
Date:   Tue Mar 5 15:40:11 2024 -0800

    Publish

     - @segment/action-destinations@3.250.0

commit 6a35edd
Author: Marín Alcaraz <marin.alcarazcordova@segment.com>
Date:   Tue Mar 5 15:36:29 2024 -0800

    DV360 - Update Chamber Variable (#1912)

commit ed54b6b
Author: joe-ayoub-segment <45374896+joe-ayoub-segment@users.noreply.github.com>
Date:   Tue Mar 5 13:33:54 2024 +0000

    Publish

     - @segment/actions-shared@1.81.0
     - @segment/browser-destination-runtime@1.30.0
     - @segment/actions-core@3.100.0
     - @segment/action-destinations@3.249.0
     - @segment/destinations-manifest@1.43.0
     - @segment/analytics-browser-actions-1flow@1.13.0
     - @segment/analytics-browser-actions-adobe-target@1.31.0
     - @segment/analytics-browser-actions-algolia-plugins@1.8.0
     - @segment/analytics-browser-actions-amplitude-plugins@1.31.0
     - @segment/analytics-browser-actions-braze-cloud-plugins@1.34.0
     - @segment/analytics-browser-actions-braze@1.34.0
     - @segment/analytics-browser-actions-bucket@1.11.0
     - @segment/analytics-browser-actions-cdpresolution@1.18.0
     - @segment/analytics-browser-actions-commandbar@1.31.0
     - @segment/analytics-browser-actions-devrev@1.18.0
     - @segment/analytics-browser-actions-friendbuy@1.31.0
     - @segment/analytics-browser-actions-fullstory@1.33.0
     - @segment/analytics-browser-actions-google-analytics-4@1.37.0
     - @segment/analytics-browser-actions-google-campaign-manager@1.21.0
     - @segment/analytics-browser-actions-heap@1.31.0
     - @segment/analytics-browser-hubble-web@1.17.0
     - @segment/analytics-browser-actions-hubspot@1.31.0
     - @segment/analytics-browser-actions-intercom@1.31.0
     - @segment/analytics-browser-actions-iterate@1.31.0
     - @segment/analytics-browser-actions-jimo@1.19.0
     - @segment/analytics-browser-actions-koala@1.31.0
     - @segment/analytics-browser-actions-logrocket@1.31.0
     - @segment/analytics-browser-actions-pendo-web-actions@1.20.0
     - @segment/analytics-browser-actions-playerzero@1.31.0
     - @segment/analytics-browser-actions-replaybird@1.12.0
     - @segment/analytics-browser-actions-ripe@1.31.0
     - @segment/analytics-browser-actions-rupt@1.20.0
     - @segment/analytics-browser-actions-screeb@1.31.0
     - @segment/analytics-browser-actions-utils@1.31.0
     - @segment/analytics-browser-actions-snap-plugins@1.12.0
     - @segment/analytics-browser-actions-sprig@1.31.0
     - @segment/analytics-browser-actions-stackadapt@1.31.0
     - @segment/analytics-browser-actions-survicate@1.7.0
     - @segment/analytics-browser-actions-tiktok-pixel@1.28.0
     - @segment/analytics-browser-actions-upollo@1.31.0
     - @segment/analytics-browser-actions-userpilot@1.31.0
     - @segment/analytics-browser-actions-vwo@1.32.0
     - @segment/analytics-browser-actions-wiseops@1.31.0

commit 8793063
Author: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>
Date:   Tue Mar 5 13:30:12 2024 +0000

    Registering kevel-audience

commit 82a80b9
Author: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>
Date:   Tue Mar 5 13:19:12 2024 +0000

    Optimizely data platform changes (#1906)

    * changes to ODP Destination

    * fixing tests

    * adding campaign_id to email action

    * fixing preset

commit e0a5d6b
Author: Dave <bordoley@gmail.com>
Date:   Tue Mar 5 08:13:34 2024 -0500

    Snap misc fixes (#1900)

    * set the app_id to undefined if empty. Set advertiser_tracking_enabled to 0 if the app_id is defined

    * add comment on advertiser_tracking_enabled field usage

    * tweak app_data and extinfo build

    * update box function to return undefined if the input string is empty or undefined instead of an empty array

    * fix tests

    * fix typo

    * simplify action_source logic

    * update tests to validate advertiser_tracking_enabled and changes to box function

    * cleaner implementation of emptyStringtoUndefined

    * simpler implementation of box

    * remove duplicate util function

    * fix function name

    * log errors as critical

    * add prefix to logger entries

    ---------

    Co-authored-by: David Bordoley <dbordoley@snapchat.com>

commit b8439ca
Author: suppalapati <110847862+Sneha-Uppalapati@users.noreply.github.com>
Date:   Tue Mar 5 05:12:28 2024 -0800

    Channels-1034 Set google Api version for Push (#1883)

    * feat: set googleApiVersion

    * fix: set legacy as default version

    * fix: defaults

    ---------

    Co-authored-by: suppalapati <sneha.uppalapati@segment.com>
    Co-authored-by: alfrimpong <afrimpong@twilio.com>

commit a77f4a7
Author: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>
Date:   Tue Mar 5 13:11:18 2024 +0000

    basic SSL config options (#1908)

commit 726d281
Author: Joe Ayoub <45374896+joe-ayoub-segment@users.noreply.github.com>
Date:   Tue Mar 5 11:23:49 2024 +0000

    Adding new kevel-audience Destination (#1910)

    * adding kevel-audience Destination

    * fixing spelling issue

commit ca71fbf
Author: mayur-pitale <109548891+mayur-pitale@users.noreply.github.com>
Date:   Tue Mar 5 01:54:20 2024 -0800

    Added encoding to username & password (#1909)

commit 529e786
Author: hvardhan-unth <117922634+hvardhan-unth@users.noreply.github.com>
Date:   Tue Mar 5 15:10:01 2024 +0530

    [Stratconn 3257] Add batching to segment connections (#1859)

    * Added batching for all the actions of segment destination

    * Added the unit test cases for batching

    * Updated the test case for batch happy path

    * Updated the test case

    * Updated the tag name for batch matrix

    * Added enable batching field

    * Revert the unwanted changes and updated the perform block

    * Revert the unwanted changes

    * Revert the unwanted changes

    * Changes output text for batch execution

    ---------

    Co-authored-by: Harsh Vardhan <harsh.vardhan@segment.com>

commit 53b4441
Author: Varadarajan V <109586712+varadarajan-tw@users.noreply.github.com>
Date:   Tue Mar 5 10:32:49 2024 +0530

    [STRATCONN-3623] - Adds github actions workflow to label PRs (#1905)

    * Adds PR labeler workflow

    * rename token

    * update secret name

    * fix script path

    * change path

    * Delete scripts folder

    * dummy commit

    * update registration regex

    * Add comments on checks

commit 8d3a139
Author: Ankit Gupta <139338151+AnkitSegment@users.noreply.github.com>
Date:   Mon Mar 4 23:39:15 2024 +0530

    [MAIN] [STRATCONN] 3313 add page view field in setConfigurationFields (#1904)

    * send_page_view mapping added

    * updated unit test cases of send_page_view in setConfigurationFields

    * removed unrelevent code

    * removed unrelevent code
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