When getDirections() hits a CORS / Failed-to-fetch / Network-request-failed error, it sets error to the mapTracker.runtime.directionsCorsFallback message, then immediately calls loadSampleDirections().
loadSampleDirections() always writes error: null when applying the sample route, so the user never sees the CORS fallback explanation — only the sample route appears with a cleared error.
Either keep the CORS notice while showing sample data (e.g. do not null error in the sample path when invoked as a fallback), or surface a distinct "showing sample directions" banner.
Characterization
Pinned in directions.service.spec.ts (Wave 6 tick 6 / a2): after a CORS throw, currentRoute is non-null and error is null.
Source
Wave 6 coverage LOOP tick 6 — agent a2.
## Summary
When `getDirections()` hits a CORS / Failed-to-fetch / Network-request-failed error, it sets `error` to the `mapTracker.runtime.directionsCorsFallback` message, then immediately calls `loadSampleDirections()`.
`loadSampleDirections()` always writes `error: null` when applying the sample route, so the user never sees the CORS fallback explanation — only the sample route appears with a cleared error.
## Location
`projects/spikersoft/src/app/_components/map-tracker/services/directions.service.ts` — `getDirections` catch branch + `loadSampleDirections`.
## Expected
Either keep the CORS notice while showing sample data (e.g. do not null `error` in the sample path when invoked as a fallback), or surface a distinct "showing sample directions" banner.
## Characterization
Pinned in `directions.service.spec.ts` (Wave 6 tick 6 / a2): after a CORS throw, `currentRoute` is non-null and `error` is null.
## Source
Wave 6 coverage LOOP tick 6 — agent a2.
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.
Summary
When
getDirections()hits a CORS / Failed-to-fetch / Network-request-failed error, it setserrorto themapTracker.runtime.directionsCorsFallbackmessage, then immediately callsloadSampleDirections().loadSampleDirections()always writeserror: nullwhen applying the sample route, so the user never sees the CORS fallback explanation — only the sample route appears with a cleared error.Location
projects/spikersoft/src/app/_components/map-tracker/services/directions.service.ts—getDirectionscatch branch +loadSampleDirections.Expected
Either keep the CORS notice while showing sample data (e.g. do not null
errorin the sample path when invoked as a fallback), or surface a distinct "showing sample directions" banner.Characterization
Pinned in
directions.service.spec.ts(Wave 6 tick 6 / a2): after a CORS throw,currentRouteis non-null anderroris null.Source
Wave 6 coverage LOOP tick 6 — agent a2.
Fixed in
spikersoft-angularPR #823 (a0f0ccd9). Closing.