Skip to content

Commit

Permalink
fix(FEC-13146): Kava sent the View event 4 times (#213)
Browse files Browse the repository at this point in the history
issue: the request-builder retry mechanism retryConfig.maxAttempts parm set to 4 by default 
Therefore when it comes into action (for example in offline mode) it sends the same report 4 times in a row

fix: set retryConfig.maxAttempts to - 1 on Analytics-service

solves FEC-13146
  • Loading branch information
JonathanTGold authored May 24, 2023
1 parent b91ab20 commit f1b5907
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/k-provider/ovp/services/analytics/analytics-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default class OVPAnalyticsService extends OVPService {
request.service = SERVICE_NAME;
request.action = 'trackEvent';
request.method = 'GET';
request.retryConfig.maxAttempts = 1;
request.tag = 'analytics-trackEvent';
request.params = serviceParams;
request.url = serviceUrl + '?service=' + request.service + '&action=' + request.action + '&' + param(request.params);
Expand Down

0 comments on commit f1b5907

Please sign in to comment.