Merge pull request #4712 from betagouv/dev

2020-01-28-01
This commit is contained in:
Keirua 2020-01-28 08:54:49 +01:00 committed by GitHub
commit c17ae662fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View file

@ -87,7 +87,7 @@ jobs:
echo $COMMAND echo $COMMAND
eval $COMMAND eval $COMMAND
- store_test_results: - store_test_results:
path: ~/test_results/rspec.xml path: ~/test_results
lint: lint:
<<: *defaults <<: *defaults
steps: steps:

View file

@ -122,12 +122,16 @@ const adresseOptions = {
}; };
}, },
processResults(data) { processResults(data) {
return { let r = data.features.map(({ properties: { label }, geometry }) => ({
results: data.features.map(({ properties: { label }, geometry }) => ({
id: label, id: label,
text: label, text: label,
geometry geometry
})) }));
// Allow the user to select an arbitrary address missing from the results,
// by adding the plain-text query to the list of results.
r.unshift({ id: data.query, text: data.query });
return {
results: r
}; };
} }
} }