Skip to content

More reroute fixes - #389

Merged
cammace merged 5 commits into
release-0.6.3from
cam-reroute-fixes
Oct 18, 2017
Merged

cammace merged 5 commits into
release-0.6.3from
cam-reroute-fixes

Conversation

@cammace

@cammace cammace commented Oct 17, 2017

Copy link
Copy Markdown

Resolves issues pointed out by @ericrwolfe in #348

@cammace cammace added this to the v0.6.3 milestone Oct 17, 2017

for (SessionState session : queuedRerouteEvents) {
session.toBuilder().lastRerouteDate(
sessionState.rerouteDate()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to update all the sessionState's in the queuedRerouteEvents with the latest reroute date.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@cammace cammace mentioned this pull request Oct 18, 2017
11 tasks done
@cammace
cammace merged commit d3e1c98 into release-0.6.3 Oct 18, 2017
@cammace
cammace deleted the cam-reroute-fixes branch October 18, 2017 03:16
cammace pushed a commit that referenced this pull request Oct 19, 2017
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants