RouteStorageService declares a private generateId() (route_ + timestamp + random suffix) but never calls it. saveRoute writes whatever route.id the caller passed; the object store is keyed on id.
Would catch: a GPS recording that forgot to stamp id would hit IndexedDB DataError on put instead of receiving a generated key. The unit suite reaches generateId only via bracket access — production saveRoute still ignores it.
Suggested fix: if !route.id, assign this.generateId() before store.put.
`RouteStorageService` declares a private `generateId()` (`route_` + timestamp + random suffix) but **never calls it**. `saveRoute` writes whatever `route.id` the caller passed; the object store is keyed on `id`.
Would catch: a GPS recording that forgot to stamp `id` would hit IndexedDB `DataError` on `put` instead of receiving a generated key. The unit suite reaches `generateId` only via bracket access — production `saveRoute` still ignores it.
Suggested fix: if `!route.id`, assign `this.generateId()` before `store.put`.
Resolved in spikersoft-angular PR #819 (merged to master). saveRoute assigns missing ids via generateId. Closing.
Resolved in spikersoft-angular [PR #819](https://git.spikersoft.com/spikerj/spikersoft-angular/pulls/819) (merged to `master`). saveRoute assigns missing ids via generateId. Closing.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
RouteStorageServicedeclares a privategenerateId()(route_+ timestamp + random suffix) but never calls it.saveRoutewrites whateverroute.idthe caller passed; the object store is keyed onid.Would catch: a GPS recording that forgot to stamp
idwould hit IndexedDBDataErroronputinstead of receiving a generated key. The unit suite reachesgenerateIdonly via bracket access — productionsaveRoutestill ignores it.Suggested fix: if
!route.id, assignthis.generateId()beforestore.put.Resolved in spikersoft-angular PR #819 (merged to
master). saveRoute assigns missing ids via generateId. Closing.