-
-
Notifications
You must be signed in to change notification settings - Fork 29
feat: Smart/Origin parcours 3 itinévert #2100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 44 commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
b2d3301
[CI] add CI pipeline as in github
lgourdin 24c84bb
[CI] Update CI after reverting deploy method in 752b2ea17e
lgourdin 0dd9ad6
[hotfix] add distincts scripts and change sqlalchemy events
Floriane-jandot 905fa55
[CI] source env for CI
lgourdin b11143b
[fix] support updating TC when waypoint is modified and optimize navi…
lgourdin 288e183
[scripts] make distinct navitia scripts executable
lgourdin 1d0480f
[GHCI] source env file before launching pytest
lgourdin fbaf190
[chore] replace deprecated log.warn by log.warning
lgourdin b6caaa4
[fix] delete existing stopareas for waypoint if moved in an unserved …
lgourdin 6a88e18
[fix] formatting error in log string that was triggering 500 errors w…
lgourdin 3a540a1
[chore] fix linting issues
lgourdin 8233f1d
[CI] run test script with set -e
lgourdin bb40e9e
[new feature] add reachable routes route
830581a
[new feature] add reachable waypoints route
ddb2f03
[new feature] add coverage table
bcb9a97
[new feature] add script to retrieve and insert coverages
e28025a
[fix] fixed a bug when trying to insert doc that is not a waypoint
94e05a3
[new feature] added routes to get journey/isochrone reachable doc
eb86874
[fix] add q=title filter in reachable doc routes
cfa6f73
[fix] make sure waypoints are not reachable if journeys departure day…
5f13610
[refactor] organization + documentation : factorization and helper fu…
479e003
[fix] fix issue when filtering with several areas
2a1a847
[new feature] added route to get coverage for area / area in isochrone
2bd8db5
[fix] fixed a bug where bbox applied to routes was not done on the ac…
72df94c
Merge branch 'gp/dev'
4950c16
[lint] flake8 linting
8a55a1a
[CI] don't create dir if exists
lgourdin 9054d05
[CI] clean after test and debug comment
lgourdin 971fea1
Merge branch 'main' of https://git.smart-origin.com/SmartOrigin/c2c_v…
c67b0b3
[fix] fix CI
e2b423e
[fix] Fix CI
10057e6
[cleanup] remove S/O files before merging with upstream
lgourdin 3bb8456
[fix] fix #1834 : durations filter wasn't working
3b999d3
[improve] add range filter to reduce time of computation
0ba34c3
[fix] fix title query for waypoints in Iitnévert
3d6d24c
[fix] fix langs filter not working
7dd7b2b
[fix] fixed incorrect join with area association
90bb53d
[fix] fix title filter when no other filters
37e245d
[fix] fix lang filter
7af8240
[clean] remove debug log
499b96b
[new feature] add job handling for journey queries to monitor their p…
53ff11f
[lint] fix linter -> func names in lower case
2f5d6cb
[fix] fix search doc missing for coverage
c32e727
Merge branch 'master' into smart-origin/revue_parcours_3
lgourdin ae0b7ab
[refactor] Use of Elastic Search filters in reachable routes instead …
52e451e
[fix] fix sort + when no results found
02f362d
[lint] fix flake8 linter
3893e0f
[fix] fix too restrictive offset and limit for navitia reachable docs
7b381cc
[improve] return error id when 404 for navitia/journeys route
7eec110
[clean] fix noqa, translate french comms to english, remove use of f …
00438cb
[doc] update SO README
lgourdin 123a739
[fix] fix codacy issues
d06f85d
[clean] remove unused route
d9bb042
[fix] fix update_navitia_coverage script for prod usage
7d44a8d
Merge branch 'master' into smart-origin/revue_parcours_3
lgourdin 9fdaba5
[clean] fix unused variable
1355038
[clean] remove useless parameters
cf3bad9
[doc] add coverage doc
414ed36
[clean] remove useless class
49220df
[refactor] use of BASE_URL constant for navitia api
b958616
[clean] remove archive coverage class as coverages are not meant to b…
5e462ec
[doc] update S/O readme
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| """Add coverages | ||
|
|
||
| Revision ID: 335e0bc4df28 | ||
| Revises: 6b40cb9c7c3d | ||
| Create Date: 2025-11-18 14:15:26.377504 | ||
|
|
||
| """ | ||
| from alembic import op | ||
| import sqlalchemy as sa | ||
|
|
||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = '335e0bc4df28' | ||
| down_revision = '6b40cb9c7c3d' | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
| def upgrade(): | ||
| coverage_type = sa.Enum('fr-idf', 'fr-ne', 'fr-nw', 'fr-se', 'fr-sw', name='coverage_type', schema='guidebook') | ||
| op.create_table('coverages', | ||
| sa.Column('coverage_type', coverage_type, nullable=True), | ||
| sa.Column('document_id', sa.Integer(), nullable=False), | ||
| sa.ForeignKeyConstraint(['document_id'], ['guidebook.documents.document_id'], ), | ||
| sa.PrimaryKeyConstraint('document_id'), | ||
| schema='guidebook' | ||
| ) | ||
| op.create_table('coverages_archives', | ||
| sa.Column('coverage_type', coverage_type, nullable=True), | ||
| sa.Column('id', sa.Integer(), nullable=False), | ||
| sa.ForeignKeyConstraint(['id'], ['guidebook.documents_archives.id'], ), | ||
| sa.PrimaryKeyConstraint('id'), | ||
| schema='guidebook' | ||
| ) | ||
|
|
||
|
|
||
| def downgrade(): | ||
| op.drop_table('coverages_archives', schema='guidebook') | ||
| op.drop_table('coverages', schema='guidebook') | ||
| sa.Enum('fr-idf', 'fr-ne', 'fr-nw', 'fr-se', 'fr-sw', name='coverage_type', schema='guidebook').drop(op.get_bind()) |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -785,3 +785,11 @@ | |
| 'highline', | ||
| 'waterline' | ||
| ] | ||
|
|
||
| coverage_types = [ | ||
| 'fr-idf', | ||
| 'fr-ne', | ||
| 'fr-nw', | ||
| 'fr-se', | ||
| 'fr-sw' | ||
| ] | ||
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| DEFAULT_FIELDS = [ | ||
| 'coverage_type' | ||
| 'geometry.geom_detail' | ||
| ] | ||
|
|
||
| DEFAULT_REQUIRED = [ | ||
| 'coverage_type', | ||
| 'geometry', | ||
| 'geometry.geom_detail' | ||
| ] | ||
|
|
||
| LISTING_FIELDS = [ | ||
| 'coverage_type', | ||
| 'geometry.geom_detail' | ||
| ] | ||
|
|
||
| fields_coverage = { | ||
| 'fields': DEFAULT_FIELDS, | ||
| 'required': DEFAULT_REQUIRED, | ||
| 'listing': LISTING_FIELDS | ||
| } |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.