Skip to content

Conversation

@Guardiola31337
Copy link
Contributor

@Guardiola31337 Guardiola31337 commented Mar 19, 2020

Description

This PR fixes events generation and ingestion - we were receiving 422 errors from the server due to malformed events and some events were sent out of order

Follow up from #2445 and #2580

  • I have added any issue links
  • I have added all related labels (bug, feature, new API(s), SEMVER, etc.)
  • I have added the appropriate milestone and project boards

Goal

Fix event telemetry

Implementation

  • Port legacy events classes
  • Add required events fields to avoid server rejections
  • Fix SchemaTests
  • Start adding Proguard support

@olegzil add any other relevant implementation details here 🙏

Testing

Please describe the manual tests that you ran to verify your changes

  • I have tested locally (including SNAPSHOT upstream dependencies if needed) through testapp/demo app and run all activities to avoid regressions
  • I have tested via a test drive, or a simulation/mock location app
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have updated the CHANGELOG including this PR

cc @zugaldia @olegzil

@Guardiola31337 Guardiola31337 added topic: telemetry Core Work related to core navigation and integrations. labels Mar 19, 2020
@zugaldia zugaldia requested a review from olegzil March 19, 2020 03:33
@olegzil olegzil force-pushed the pg-telemetry-events branch 4 times, most recently from e7a55f7 to dfba3e9 Compare March 21, 2020 18:41
routeProgressPredicate.set { routeProgress -> beforeArrival(routeProgress) }
}

fun isPossibleDepartureEvent(): DirectionsRoute? = newRouteAvailable.get()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Function "isPossibleDepartureEvent" is never used

@codecov-io
Copy link

Codecov Report

Merging #2616 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master    #2616      +/-   ##
============================================
- Coverage     29.04%   29.03%   -0.02%     
  Complexity     1062     1062              
============================================
  Files           281      281              
  Lines         10832    10837       +5     
  Branches        881      882       +1     
============================================
  Hits           3146     3146              
- Misses         7340     7345       +5     
  Partials        346      346

- port legacy events
- add required events fields to avoid server rejections
- port schema tests
- start adding proguard support

Co-authored-by: oleg zilberman <oleg.zilberman@mapbox.com>
@Guardiola31337 Guardiola31337 marked this pull request as ready for review March 23, 2020 20:40
@Guardiola31337
Copy link
Contributor Author

Going ahead and merging here. Will ticket out the tailwork.

cc @olegzil @zugaldia

@Guardiola31337 Guardiola31337 merged commit 816878d into master Mar 23, 2020
@Guardiola31337 Guardiola31337 deleted the pg-telemetry-events branch March 23, 2020 21:10
@Guardiola31337 Guardiola31337 mentioned this pull request Jun 12, 2020
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Core Work related to core navigation and integrations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants