This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Revert use of search endpoint #370
Open
remi-dupre
wants to merge
15
commits into
master
Choose a base branch
from
rm-search-endpoint
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remi-dupre
force-pushed
the
rm-search-endpoint
branch
from
July 19, 2022 15:07
b084255
to
69b677f
Compare
* rate limiter disabled for requests with no client hash As we have no way to determine were the requests with no hash comes from, there is not really any reason to perform the rate limiting for them: - if it comes from another internal component (eg. Erdapfel), it feels reasonable to just display a warning as said component should forward the header. - if the ha proxy fails to set the header value, it also feels better to just display a warning instead of penalizing the client for the overall traffic bandwidth. - the only other scenario I can think is some kind of internal stress test, which we are currently performing, in which case it is more convenient if the rate limiter is disabled. * fix rate limiter test
* upgrade black and httpx * upgrade black * fix format * fix lint Co-authored-by: sdirollo <[email protected]>
Co-authored-by: sdirollo <[email protected]>
* clean combigo direction code * fix lint * fix lint * fix tests * fix test and remove unused variable qwant direction Co-authored-by: sdirollo <[email protected]>
* start navitia poc * navitia poc: minimum working example * cut linestring at instructions * show directions (seems consistent for bikes) * poc navitia: fix missing instructions for bikes * poc navitia: fix cars and tweak some parameters * s/NAVITIA/HOVE/g * fix geojson construction for public transports summary * moev navitia datasource into its own module * rename navitia module into hove * update to python 3.10 and fix line color correspondances * fix unknown section modes * hove: get leg distances from geometry * update Python in the CI * fix lints * fix docker image * remove pympler * use alpine instead of debian * fix Dockerfile paths * install less dependancies in Dockerfile * use a builder docker image to remove build dependancies from publish * update to Python 3.10 in tests * Dockerfile: fix user creation * Dockerfile: fix apk permissions * use alpine instead of debian * fix * fix * remove chown useless * fix ghost dependancies * Dockerfile: remove last chown * Dockerfile: fix prometheus permissions * Dockerfile: replace ADD commands with COPY Docker discourages using the ADD command for a general purpose. See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#add-or-copy. Co-authored-by: Rémi Dupré <[email protected]> Co-authored-by: Aureliano Sinatra <[email protected]>
* pipenv update * update fastapi and elasticsearch * remove ipython dependency * update black configuration to target Python 3.10
* use cache for docker images build This should speedup builds by skipping the build of Python packages on alpine for consecutive commits in a branch. * update README.md I mostly needed some superficial diff to test the cache. * actions: use branch name as cache ref This should help, the cache mechanism worked for pull_request but not for specific commit ref. * update README.md Still just need it to test cache, that's a cool way to get motivated to fix some outdated informations in the README. * actions: fix docker cache ref * update README.md * actions: use github cache mechanism to build images I don't manage to get it working with inline mode. * update README.md
Add public transport support through Hove's API. This is built by building a translation layer that will convert Hove's API result into a format mostly compatible with Mapbox (a few structures are extended with new fields), which can be interpreted by Erdapfel seamlessly and in the same fashion as with former Combigo API. I also took my change to move every directions-related stuff in `idunn.datasources.directions`, which means a bit of refactoring in the mapbox client.
* directions: specify arrive_by or depart_at parameters * directions: fix arrive/depart query params * directions: add basic tests for arrive_by/depart_at * tiny lint fixes * tiny lint fixes in tests
remi-dupre
force-pushed
the
rm-search-endpoint
branch
from
July 20, 2022 07:19
69b677f
to
82d816a
Compare
Current behavior was to rely on raise_for_status which would just raise a 500 and not be very informative.
Closed
sdrll
approved these changes
Aug 9, 2022
* generic ia for all maps request beginning with mappy ... * Update patterns_to_ignore.txt onjly ignore mappy word * add pattern for derivate mappy top query Co-authored-by: sdirollo <[email protected]>
* generic ia for all maps request beginning with mappy ... * Update patterns_to_ignore.txt onjly ignore mappy word * add pattern for derivate mappy top query * remove instruction without street name and with distance equal to 0 Co-authored-by: sdirollo <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Master, but without f9448d2, thanks to
git rebase -i f70cc280b1eb22b687dcecee462ad28b46c7a841
magic