Skip to content

[INT-246]fix: customerIO source bugsnag issue for invalid timestamp - #2413

Merged
sanpj2292 merged 3 commits into
developfrom
fix.bugsnagCIOtimestamp
Aug 1, 2023
Merged

sanpj2292 merged 3 commits into
developfrom
fix.bugsnagCIOtimestamp

Conversation

@anantjain45823

@anantjain45823 anantjain45823 commented Jul 28, 2023 •

Copy link
Copy Markdown
Contributor

Description of the change

For customerIo as a source we got a bugsnag alert for invalid timestamp which is getting triggered when timestamp:"invalid timestamp format" is passed .
In this PR we have put a check for these timestamp using moment.js library. So if timestamp is not valid we wont be mapping it respective fields and just overlook it

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

Fix #1

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

Code review

  • This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
  • "Ready for review" label attached to the PR and reviewers mentioned in a comment
  • Changes have been reviewed by at least one other engineer
  • Issue from task tracker has a link to this pull request

@anantjain45823
anantjain45823 requested a review from a team as a code owner July 28, 2023 10:44
@anantjain45823 anantjain45823 self-assigned this Jul 28, 2023
@anantjain45823
anantjain45823 requested a review from a team as a code owner July 28, 2023 10:44
@codecov

codecov Bot commented Jul 28, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (40105f5) 86.63% compared to head (8f45572) 86.64%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2413   +/-   ##
========================================
  Coverage    86.63%   86.64%           
========================================
  Files          555      555           
  Lines        27700    27703    +3     
  Branches      6623     6623           
========================================
+ Hits         23999    24002    +3     
  Misses        3346     3346           
  Partials       355      355           
Files Changed Coverage Δ
src/v0/sources/customerio/transform.js 83.87% <100.00%> (+1.72%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment thread src/v0/sources/customerio/transform.js Resolved
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@mihir-4116
mihir-4116 self-requested a review August 1, 2023 05:42
@sanpj2292
sanpj2292 merged commit d543f22 into develop Aug 1, 2023
@sanpj2292
sanpj2292 deleted the fix.bugsnagCIOtimestamp branch August 1, 2023 07:16
@anantjain45823 anantjain45823 changed the title fix: customerIO source bugsnag issue for invalid timestamp [INT-246]fix: customerIO source bugsnag issue for invalid timestamp Aug 3, 2023
@linear

linear Bot commented Aug 3, 2023

Copy link
Copy Markdown
INT-246 bugsnag: customerIO source→ Invalid timestamp

We got a bugsnag alert for **invalid timestamp .** Since it is an error at source side finding the exact workspaceId would be difficult. Ex: timestamp:”abc” Some basic research showed that timestamp is being sent in wrong time format due which this error is occurring. Example:

Solution: A check for a valid timestamp with regex matching should work

koladilip added a commit that referenced this pull request Aug 8, 2023
* chore: onboard swagger api on docker (#2400)

onboard swagger api on docker

* refactor: migrate destinations from cdk v1 to v2 (#2381)

* refactor: migrate autopilot to cdkv2

* refactor: migrate heap to cdkv2

Modified the tests according to cdk v2 style.

* refactor: migrate vitally to cdk v2

* chore: remove legacy profile routes

* chore: remove legacy profile routes

* refactor: migrate variance to cdk v2

* refactor: migrate statsig to cdkv2

* refactor: migrate userlist to cdkv2

* refactor: migrate zapier to cdk v2

* refactor: migrate lytics to cdk v2

* fix: pr comments

* refactor: migrate new relic to cdk v2

Migrate cdk v1 implementation to v2.

* refactor: migrate dcm_floodlight to cdk v1

* refactor: migrate kochava to cdk v2

* fix: pr comments

* fix:  stat labels (#2412)

fix stat labels

* feat: sessionId stitching (#2204)

* feat: sessionId stitching

* chore: comments addressed

* chore: test coverage improved

* chore: small fixes

* chore: update test file coverage and improvised metrics

* chore: update test file coverage

* Update src/v0/sources/shopify/transform.js

Co-authored-by: Utsab Chowdhury <[email protected]>

* chore: shifted to hgetall to retrieve all data from redis in one go

* chore: test case fix

* chore: increase test coverage

* chore: increase test coverage+1

* chore: sonarcloud issues

* chore: separate util test file for redis related test cases

---------

Co-authored-by: Sai Sankeerth <[email protected]>
Co-authored-by: Utsab Chowdhury <[email protected]>

* fix: customerIO source bugsnag issue for invalid timestamp (#2413)

* chore: outgoing request latency metric (#2421)

* fix: update images to fix integration tests (#2417)

* chore: update tiktok ads api version to 1.3 (#2423)

chore: update tiktok version to 1.3

* chore(transformation): set to default dns servers (#2416)

* chore: tags for missed destinations for latency metric (#2425)

Co-authored-by: Chandra shekar Varkala <[email protected]>

* fix: rETL timestamp order (#2343)

* fix(transformation): return retryable error when faas service exists … (#2427)

* feat: return relevant stack trace as error from ivm (#2314)

* feat: return relevant stack trace as error from ivm

* chore: throw platform error for get recordId

* chore: change error type for get recordId

* fix: continue on git action failure to next steps (#2429)

* fix(INT-256): handling non float price input for braze purchase events (#2431)

* fix: handling non fload price input for braze purchase events

Braze purchase events require the price value to be float. This commit is purposed to solve that

* fix: add test cases and refactored the code for puchase events for braze

---------

Co-authored-by: Mihir Bhalala <[email protected]>

* fix(tiktok_ads): format productId to string data type (#2434)

* fix: handle marketo auth token response when expires_in is 0 sec  (#2432)

* fix: handle marketo auth token response when expires_in is 0 sec

* Update src/v0/destinations/marketo/util.js

Co-authored-by: Dilip Kola <[email protected]>

---------

Co-authored-by: Dilip Kola <[email protected]>

* chore(release): 1.37.0

* fix(tiktok_ads): format products array product ids to string (#2445)

* fix: heap timestamp mapping (#2451)

* chore: update changelog entry for heap and tiktok (#2452)

---------

Co-authored-by: Utsab Chowdhury <[email protected]>
Co-authored-by: sandeepdigumarty <[email protected]>
Co-authored-by: Krishna Chaitanya <[email protected]>
Co-authored-by: Dilip Kola <[email protected]>
Co-authored-by: Anant Jain <[email protected]>
Co-authored-by: Sai Sankeerth <[email protected]>
Co-authored-by: chandumlg <[email protected]>
Co-authored-by: Jayachand <[email protected]>
Co-authored-by: Yashasvi Bajpai <[email protected]>
Co-authored-by: Chandra shekar Varkala <[email protected]>
Co-authored-by: Sankeerth <[email protected]>
Co-authored-by: Daniyal Parveez <[email protected]>
Co-authored-by: Gauravudia <[email protected]>
Co-authored-by: AASHISH MALIK <[email protected]>
Co-authored-by: Gauravudia <[email protected]>
Co-authored-by: Mihir Bhalala <[email protected]>
Co-authored-by: GitHub Actions <[email protected]>
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.

3 participants