From 39c385ee1d347fd01acd65cc952485b46e07fd99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Poizat?= Date: Tue, 13 Feb 2024 17:21:39 +0100 Subject: [PATCH 1/2] fix: Correct startOpenPathUploadAndPipeline types --- src/app/domain/geolocation/tracking/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/domain/geolocation/tracking/index.js b/src/app/domain/geolocation/tracking/index.js index d9a705793..9191cc698 100644 --- a/src/app/domain/geolocation/tracking/index.js +++ b/src/app/domain/geolocation/tracking/index.js @@ -217,8 +217,8 @@ export const handleConnectivityChange = async event => { * as soon as the trips are ready to be fetched. * * @typedef {object} Params - * @property {number} untilTS - Until when the locations points should be fetched. Default is 0 - * @property {boolean} force - Whether or not the upload should be forced + * @property {number} [untilTs] - Until when the locations points should be fetched. Default is 0 + * @property {boolean} [force] - Whether or not the upload should be forced * * @param {Params} - The method parmas */ From 01f81d7716be37c69857398ee4de3bf2104ddac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Poizat?= Date: Tue, 13 Feb 2024 17:24:14 +0100 Subject: [PATCH 2/2] fix: Call OpenPath pipeline when using force upload intent A debug button on coachco2 calls a force upload intent on flagship side. But we forgot to update the force upload call to use the new method that runs the OpenPath pipeline after a force upload. --- src/app/domain/geolocation/services/tracking.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/domain/geolocation/services/tracking.ts b/src/app/domain/geolocation/services/tracking.ts index 4a9f79f17..a570738c5 100644 --- a/src/app/domain/geolocation/services/tracking.ts +++ b/src/app/domain/geolocation/services/tracking.ts @@ -4,7 +4,7 @@ import { startTracking, stopTracking, sendLogFile, - uploadData, + startOpenPathUploadAndPipeline, getId, updateId, stopTrackingAndClearData, @@ -46,7 +46,7 @@ export const sendGeolocationTrackingLogs = async ( } export const forceUploadGeolocationTrackingData = async (): Promise => { - await uploadData({ force: true }) + await startOpenPathUploadAndPipeline({ force: true }) } interface GeolocationTrackingStatus {