Skip to content

fix invalid elapsedMilliseconds value for empty search results

Created by: lukeautry

This PR updates the CHANGELOG.md file to describe any user-facing changes.

Overview

See #405 (closed) for full bug description. Empty search results coming back with a value of 2077252342 for elapsedMilliseconds.

Fix

This wacky value is caused by returning structs (see: https://github.com/sourcegraph/sourcegraph/blob/master/cmd/frontend/graphqlbackend/search_results.go#L646) with a default Time value for start. When the date math gets done in ElapsedMilliseconds, it's basically calculating time elapsed since Epoch.

Merge request reports

Loading