Repository navigation
More reroute fixes - #389
Conversation
|
|
||
| for (SessionState session : queuedRerouteEvents) { | ||
| session.toBuilder().lastRerouteDate( | ||
| sessionState.rerouteDate() |
There was a problem hiding this comment.
I'm not sure what's happening here. Won't this modify all outstanding reroute events with the date of the reroute event that's about to be sent?
There was a problem hiding this comment.
I need to update all the sessionState's in the queuedRerouteEvents with the latest reroute date.
There was a problem hiding this comment.
secondsSinceLastReroute should be the seconds from the reroute before the captured reroute event, rather than the most recent reroute event. If a reroute happens while an old reroute event is on the queue, this will overwrite that information.
| .beforeRerouteLocations(Arrays.asList( | ||
| locationBuffer.toArray(new Location[locationBuffer.size()]))) | ||
| .lastRerouteDate(new Date()) | ||
| .rerouteDate(new Date()) |
There was a problem hiding this comment.
Would it be easier just to compute and store secondsSinceLastReroute here rather than try to generate the value after the fact right before sending out?
* Do not allow rotation for Nav UI (#377) * Support for multiple reroute metric collection (#348) * capture sessionState and add to queue when reroute occurs * Resolved several issues which related to location * fix checkstyle for NavigationMetricsWrapper * enable extra logging in debug mode * add option to log telemetry requests when debug mode is enabled * seconds no null anymore * make SessionState fields unique * add test for ringbuffer peak methods * create a copy of the location object when snapping a location * make sure the buffer keeps adding fresh values * Avoids out of bounds exception in addTrafficToSource() (#384) * avoids out of bounds exception * added index out of bounds exception * Undo throwing exception * force git to push * Updated changelog and readme * More reroute fixes (#389) * removed collection reverse * fix lastrerouteseconds * set the queued reroute events to represent new values * checkstyle * fixed total distance completed not getting set * make sure that the reroute event includes the reroute time as the created timestamp (#398) * temporarily change circle ci publish branch * [android] [auto] Update properties to version 0.6.3 in preparation for build. * change circleci script back to using master
Resolves issues pointed out by @ericrwolfe in #348