Skip to content
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

Upstream merge 2023-12-13 #196

Merged
merged 364 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
364 commits
Select commit Hold shift + click to select a range
37efdaf
Apply suggestions from code review
t2gran Nov 21, 2023
1cc877e
Decouple access and egress mode selects
testower Nov 21, 2023
3803ada
Indicate whether non-delayed time has realtime info
testower Nov 21, 2023
cb1e677
refactor: fix map problem with hash-code and equals in PriorityGroupC…
t2gran Nov 21, 2023
f5dc552
refactor:Add PriorityGroupMatcher#toString
t2gran Nov 22, 2023
f0bf669
refactor:Add unit tests on PriorityGroupMatcher and PriorityGroupConf…
t2gran Nov 22, 2023
4c36414
Remove console.log
testower Nov 22, 2023
5083681
Merge remote-tracking branch 'otp/dev-2.x' into otp2_c2_and_relaxed_m…
t2gran Nov 22, 2023
2c247ef
Merge pull request #5520 from entur/otp2_fix_arrive_by_off_by_one_minute
t2gran Nov 22, 2023
834f9ea
Add changelog entry for #5520 [ci skip]
Nov 22, 2023
f9382a8
Merge pull request #5515 from entur/otp2_token_serializer
t2gran Nov 22, 2023
6108e3e
Fire search query when flags are in position or moved
testower Nov 22, 2023
df41296
feature: Add validation to ScheduledTripTimes (not enabled, FLEX fails)
t2gran Nov 22, 2023
7ff79bf
refactor: Move normalization of trip-times from mapper to builder.
t2gran Oct 2, 2023
1728c29
refactor: Use DataValidationException to signal TripTime errors.
t2gran Nov 16, 2023
ebbe2fd
refactor: Extract TripTimes interface.
t2gran Nov 16, 2023
c0fc502
feature: Add support for enums in tokens
t2gran Nov 22, 2023
043fb0b
Merge pull request #4999 from entur/otp2_c2_and_relaxed_mc_criteria
t2gran Nov 22, 2023
ed2e858
Add changelog entry for #4999 [ci skip]
Nov 22, 2023
092a12f
Bump serialization version id for #4999
Nov 22, 2023
09f15d9
feature: Remove sort-order duplicate from ItineraryPageCut
t2gran Nov 22, 2023
50a414d
refactor: Add test that test all combinations for sorting itineraries
t2gran Nov 23, 2023
7e99d37
Add very ugly context menu for moving start/end locations from map
testower Nov 23, 2023
f34d91c
Build into ../src/client for web server access
testower Nov 23, 2023
5229361
refactor: Remove search-window pruning from PagingFilter
t2gran Nov 23, 2023
6649bdd
fix(deps): update dependency org.apache.httpcomponents.client5:httpcl…
renovate[bot] Nov 23, 2023
5cc3354
Remove BusRouteStreetMatcher
leonardehrenfried Nov 22, 2023
515bd95
Remove property from example files
leonardehrenfried Nov 22, 2023
fd552bc
Move ci to main config
testower Nov 23, 2023
f7570f8
Improve readme and add env for development api
testower Nov 23, 2023
1b50d5a
Formatting
testower Nov 23, 2023
89a8c44
Build client with docker image
testower Nov 23, 2023
a21adb2
Rename useAvailabilityInformation -> ignoreRealtimeAvailability
optionsome Nov 23, 2023
13ab477
Fix comment
optionsome Nov 23, 2023
7d69277
Rename VehicleParkingFilter -> VehicleParkingSelect
optionsome Nov 23, 2023
d1f91ca
Rename VehicleParkingFilterRequest -> VehicleParkingFilter
optionsome Nov 23, 2023
009f905
Move to classes to another package
optionsome Nov 23, 2023
271332f
Fix formatting
optionsome Nov 23, 2023
5a98621
Document language conventions
t2gran Nov 23, 2023
a9af343
Fix realtime check
optionsome Nov 23, 2023
19d3a3b
Update tests
optionsome Nov 23, 2023
dd2717e
fix(deps): update geotools.version to v30.1
renovate[bot] Nov 24, 2023
2a7a678
Merge pull request #5529 from entur/use_oxford_en_us
leonardehrenfried Nov 24, 2023
02621f5
Merge pull request #5527 from opentripplanner/renovate/org.apache.htt…
leonardehrenfried Nov 24, 2023
7937583
Revert "fix(deps): update dependency org.apache.httpcomponents.client…
leonardehrenfried Nov 24, 2023
f733ed2
Ignore Vite cache folder
testower Nov 24, 2023
bbe8b22
refactor: Move ListSection to framework, so it can be reused
t2gran Nov 24, 2023
d05ac15
Remove container images that have not been pulled for over a year
leonardehrenfried Nov 24, 2023
e2a1246
refactor: Cleanup code: PageType and RouteRequest
t2gran Nov 24, 2023
cb3e273
Add descriptions for tags
optionsome Nov 24, 2023
f97861c
refactor: Calculate deduplicationSection instead of including it in t…
t2gran Nov 24, 2023
9569d93
Change params
optionsome Nov 24, 2023
b0be55f
Correct spelling of 'which' [ci skip]
leonardehrenfried Nov 24, 2023
8ce8061
Rename realtime to real-time in docs
assadriaz Nov 24, 2023
053f875
Correct cron expression
leonardehrenfried Nov 26, 2023
c93f528
chore(deps): update dependency org.codehaus.mojo:build-helper-maven-p…
renovate[bot] Nov 27, 2023
22e3eda
fix(deps): update dependency ch.qos.logback:logback-classic to v1.4.12
renovate[bot] Nov 28, 2023
c0a9df3
Add station filter to place finder and GraphQL interfaces
viljaminurminen-cgi Nov 28, 2023
99a4064
Merge pull request #5531 from opentripplanner/renovate/geotools.version
leonardehrenfried Nov 28, 2023
0b57c58
Merge branch 'otp-dev-2.x' into DT-5799
viljaminurminen-cgi Nov 28, 2023
b2f04a0
Fix how stops are created in tests
viljaminurminen-cgi Nov 28, 2023
8588bf6
Emissions filter returned after erroneous deletion
sharhio Nov 28, 2023
a5fa1f4
Fix nearest query and response in integration test
viljaminurminen-cgi Nov 28, 2023
f08a7ad
refactor: Cleanup PageCursor, do not repeat ItinerarySortKey
t2gran Nov 24, 2023
043c512
refactor: Rename ItineraryPageCut to DeduplicationPageCut
t2gran Nov 24, 2023
f636e66
refactor: Make DeduplicationPageCut package local
t2gran Nov 24, 2023
28e7466
feature: Add boolean type to token serializer
t2gran Nov 24, 2023
6461290
feature: Add CharacterEscapeFormatter to escape a special character.
t2gran Nov 26, 2023
180243f
feature: Make tokens readable after Base64 decode
t2gran Nov 27, 2023
2b50ac7
refactor: Use Token framwork to serialize page-cursor
t2gran Nov 28, 2023
cf7f5ed
refactor: Cleanup NumItinerariesFilterResults
t2gran Nov 28, 2023
595dc2d
refactor: Move PagingSearchWindowAdjuster to paging package
t2gran Nov 29, 2023
f07a15e
refactor: Move 'pagecursor' to 'paging.cursor' package
t2gran Nov 29, 2023
0ef5641
Add TripOnServiceDate to TransitModel in siri AddedTripBuilder
habrahamsson-skanetrafiken Nov 28, 2023
04e369a
Remove unused code relating to realtime added TripOnServiceDate
habrahamsson-skanetrafiken Nov 28, 2023
c3cb814
fix(deps): update dependency ch.qos.logback:logback-classic to v1.4.13
renovate[bot] Nov 29, 2023
e5892a2
Apply feedback from review
nurmAV Nov 30, 2023
b373fc8
Remove redundant seenStops checks
viljaminurminen-cgi Nov 30, 2023
f1c2978
Merge pull request #5523 from leonardehrenfried/remove-bus-matcher
leonardehrenfried Nov 30, 2023
91fcf03
Add changelog entry for #5523 [ci skip]
Nov 30, 2023
7d052cb
Added JavaDoc to TripTimes
t2gran Nov 30, 2023
15c87b4
review: Apply suggestions from review
t2gran Nov 30, 2023
379a591
spelling: Replace witch with which
t2gran Nov 30, 2023
e27e403
Merge pull request #5541 from HSLdevcom/co2
optionsome Nov 30, 2023
2546c23
fix(deps): update jersey monorepo to v3.1.4
renovate[bot] Dec 1, 2023
d60af30
Adds sameSubmode to AlternativeLegsFilter.
eibakke Dec 1, 2023
3393edf
Adds sameSubmode to AlternativeLegsFilter.
eibakke Dec 1, 2023
4e0b985
conclude merge
eibakke Dec 1, 2023
7163a76
fix(deps): update dependency ch.qos.logback:logback-classic to v1.4.14
renovate[bot] Dec 1, 2023
f06c5d2
fix(deps): update google.dagger.version to v2.49
renovate[bot] Dec 2, 2023
7cb6705
refactor: Fix real-time spelling in tests and doc
t2gran Dec 4, 2023
ebab594
Merge pull request #5528 from leonardehrenfried/prune-container-images
leonardehrenfried Dec 4, 2023
bdae813
Fix syntax [ci skip]
leonardehrenfried Dec 4, 2023
449c297
Upgrade prune version [ci skip]
leonardehrenfried Dec 4, 2023
a4eb912
Merge pull request #5535 from entur/rename-reattime-to-real-time-dev2.x
leonardehrenfried Dec 5, 2023
15d0a81
Add changelog entry for #5535 [ci skip]
Dec 5, 2023
3f51bb6
Fix stop filtering when only searcing for stops
viljaminurminen-cgi Dec 5, 2023
5759a42
fix(deps): update dependency org.apache.httpcomponents.client5:httpcl…
renovate[bot] Dec 6, 2023
c5afe6c
refactor: Improve naming: withMaxNumberOfItinerariesCropSection(..)
t2gran Nov 29, 2023
5db6775
refactor: Extract paging logic into PagingService
t2gran Nov 29, 2023
e52c370
refactor: Cleanup PagingFilterTest
t2gran Nov 29, 2023
1618774
feature: Add a mutable Box to pass a reference to a method.
t2gran Dec 2, 2023
bce86f1
refactor: Push logic from request class to PageCursor(feature envy)
t2gran Dec 2, 2023
23f6b43
feature: Add a utility method to simplify using remove-filters in tes…
t2gran Dec 2, 2023
0fbfbcc
feature: Add a TestDebug class to simplify "System.out" debugging in …
t2gran Dec 2, 2023
a5037ca
refactor: Extract Paging functionality into a PagingService and mappi…
t2gran Dec 2, 2023
cf6a299
feature: Add a paging module test.
t2gran Dec 2, 2023
28e473f
refactor: Remove duplicate code in ItineraryListFilterChainBuilder
t2gran Dec 2, 2023
9bbee78
refactor: Do paging related filtering at the end of the filter process.
t2gran Dec 2, 2023
044af91
feature: Add 'first()' and 'last()' function to ListUtils.
t2gran Dec 2, 2023
2109205
refactor: SortOrderComparator switch
t2gran Dec 3, 2023
7951888
refactor: Rename PageCursorInput firstRemoved() to pageCut(), add Jav…
t2gran Dec 3, 2023
4eafcf3
test: Improve paging module tests
t2gran Dec 5, 2023
8ed052e
refactor: Order filters: OutsideSearchWindowFilter -> PagingFilter
t2gran Dec 6, 2023
5d0c8f2
bug: Improve OutsideSearchWindow, make it [inclusive, exclusive]
t2gran Dec 6, 2023
7e00e09
bug: The latest-arrive-time should not change for arriveBy search whe…
t2gran Dec 6, 2023
0b350c6
refactor: Use interface ItineraryDeletionFlagger default method inste…
t2gran Dec 6, 2023
83940e1
refactor: Use last kept itinerary as page-cut, not first removed.
t2gran Dec 6, 2023
51a7c9b
refactor: Use last Remove unused methods in PageCursorInput.
t2gran Dec 6, 2023
a66b534
Fix issue where stop points are sometimes added twice to index
habrahamsson-skanetrafiken Dec 6, 2023
13cd9fc
Adds doc to src/ext/java/org/opentripplanner/ext/transmodelapi/model/…
eibakke Dec 6, 2023
e0ef1c6
Merge pull request #5545 from opentripplanner/renovate/org.apache.htt…
leonardehrenfried Dec 7, 2023
7f075c1
fix(deps): update dependency org.entur.gbfs:gbfs-java-model to v3.0.16
renovate[bot] Dec 7, 2023
b5f9945
Merge pull request #5549 from opentripplanner/renovate/google.dagger.…
leonardehrenfried Dec 7, 2023
9e9e078
fix(deps): update dependency org.onebusaway:onebusaway-gtfs to v1.4.9
renovate[bot] Dec 7, 2023
8a9a7cf
Merge pull request #5525 from entur/otp2_cleanup_trip_times_part_B
t2gran Dec 7, 2023
28c892d
Bump serialization version id for #5525
Dec 7, 2023
65801fa
Apply suggestions from code review
t2gran Dec 7, 2023
c894b80
refactor: Add "-Dps" as alias for -P prettierSkip
t2gran Dec 8, 2023
3e011bd
Update pom.xml
t2gran Dec 8, 2023
bdebc41
Merge remote-tracking branch 'otp/dev-2.x' into serialize_page_token
t2gran Dec 8, 2023
b4dff93
Deprecate filterByIds in nearest search
viljaminurminen-cgi Dec 8, 2023
a08b8e4
Remove needless test in old API location
viljaminurminen-cgi Dec 8, 2023
9786035
Updates schema.
eibakke Dec 8, 2023
fffe001
Merge pull request #5554 from opentripplanner/renovate/org.onebusaway…
leonardehrenfried Dec 10, 2023
421e58b
chore(deps): update dependency com.tngtech.archunit:archunit to v1.2.1
renovate[bot] Dec 11, 2023
48fb253
fix: Relax TripTimes validation to [-12h, 20d]
Dec 7, 2023
2d540f8
Remove support for using realtime availability in parking routing
optionsome Dec 11, 2023
168c095
Update src/main/java/org/opentripplanner/transit/model/timetable/Sche…
t2gran Dec 11, 2023
3d98683
Fix preference modification
optionsome Dec 11, 2023
081fc0c
Apply suggestions from code review
t2gran Dec 11, 2023
6265fc8
chore(deps): update dependency org.mockito:mockito-core to v5.8.0
renovate[bot] Dec 12, 2023
bd20cba
Remove unnecessary logic
viljaminurminen-cgi Dec 12, 2023
7092574
Clean up code
viljaminurminen-cgi Dec 12, 2023
f799ab3
Merge pull request #5546 from opentripplanner/renovate/jersey-monorepo
leonardehrenfried Dec 12, 2023
8627c7e
Apply feedback from review
nurmAV Dec 12, 2023
337276b
Merge pull request #5548 from entur/samesubmode-alternative-legs-filter
t2gran Dec 12, 2023
ff814e3
Add changelog entry for #5548 [ci skip]
Dec 12, 2023
aa34cde
Merge pull request #5552 from Skanetrafiken/scheduled-stop-points-ind…
habrahamsson-skanetrafiken Dec 12, 2023
0af8a79
Add changelog entry for #5552 [ci skip]
Dec 12, 2023
071c412
Merge pull request #5557 from entur/prettier_skip_alias
t2gran Dec 12, 2023
d165974
Merge pull request #5561 from entur/otp2_relax_trip_times_check
t2gran Dec 12, 2023
2a9afc3
Merge pull request #5553 from opentripplanner/renovate/org.entur.gbfs…
leonardehrenfried Dec 12, 2023
5d63d86
Adjust mapping code to use new methods
leonardehrenfried Dec 5, 2023
45f34db
Rename test
leonardehrenfried Dec 5, 2023
b25adab
Add test for location group mapper
leonardehrenfried Dec 5, 2023
c39d158
Format code
leonardehrenfried Dec 6, 2023
d8f594c
Use released version of OBA
leonardehrenfried Dec 12, 2023
1cda676
Throw exception if no stopLocation provided
leonardehrenfried Dec 12, 2023
a3d8518
Fix test
leonardehrenfried Dec 12, 2023
d9b59c1
Use TRIP_NOT_FOUND
leonardehrenfried Dec 12, 2023
8904671
Merge pull request #5514 from Skanetrafiken/updater-shutdown-azure-su…
jtorin Dec 12, 2023
7f71178
Add changelog entry for #5514 [ci skip]
Dec 12, 2023
599ce36
Merge branch 'dev-2.x' into fix-added-trip-on-service-date
habrahamsson-skanetrafiken Dec 12, 2023
1bc6785
Improve readability of complex if statement
viljaminurminen-cgi Dec 12, 2023
57d064c
Apply feedback from review
nurmAV Dec 12, 2023
ddac7a7
review: Rename TokenFormat to TokenFormatterConfiguration
t2gran Dec 12, 2023
fb202d8
Fix formatting
viljaminurminen-cgi Dec 12, 2023
dadbd04
review: Improve TestDebug implementation
t2gran Dec 12, 2023
3d43a7c
Emissions validation and issue report fix
sharhio Dec 12, 2023
2b2ab93
Apply suggestions from code review
t2gran Dec 12, 2023
251a85c
review: Fix bugs in legacy calculation of prev/next request-time
t2gran Dec 12, 2023
a5caefb
Update src/main/java/org/opentripplanner/service/paging/PagingService…
t2gran Dec 12, 2023
e0ca91a
fix(deps): update jersey monorepo to v3.1.5
renovate[bot] Dec 12, 2023
a274d50
fix: Run relaxTransitPriorityGroup when enabled
t2gran Nov 17, 2023
7a528c2
fix: Include c2 in Raptor Path
t2gran Nov 17, 2023
6809267
refactor: Remove base priority group
t2gran Nov 17, 2023
0f7d32d
refactor: Create factory for Raptor test arrivals
t2gran Nov 20, 2023
832c36f
refactor: Add transfers to factory for Raptor test arrivals
t2gran Nov 20, 2023
7dbf2de
refactor: Add transit to factory for Raptor test arrivals
t2gran Nov 20, 2023
50aba44
refactor: Add egress to factory for Raptor test arrivals
t2gran Nov 20, 2023
ea0d1d0
OrcaFares: charge full price for senior cash on CT
daniel-heppner-ibigroup Dec 12, 2023
d4d6601
refactor code for neatness
daniel-heppner-ibigroup Dec 12, 2023
15fa0d2
fix formatting
daniel-heppner-ibigroup Dec 12, 2023
602fec7
OrcaFares: Everett Transit senior fare orca only
daniel-heppner-ibigroup Dec 12, 2023
808a0de
Don't process Siri feed without service delivery
leonardehrenfried Dec 13, 2023
23d86ac
Emissions data validity checks and tests
sharhio Dec 13, 2023
dd92568
Update src/ext/java/org/opentripplanner/ext/emissions/Co2EmissionsDat…
sharhio Dec 13, 2023
0cba479
Filename typo fixed
sharhio Dec 13, 2023
cece65f
Merge pull request #5542 from Skanetrafiken/fix-added-trip-on-service…
habrahamsson-skanetrafiken Dec 13, 2023
21fa273
Add changelog entry for #5542 [ci skip]
Dec 13, 2023
81cbba3
fix: Fix NPE in DefaultRoutingService debug logging.
t2gran Dec 12, 2023
ad2e35d
fix: NPE in PagingService
t2gran Dec 13, 2023
d0a4666
refactor: Return NOT_SET for c2 if not in use.
t2gran Dec 13, 2023
ffa411d
refactor: Move Transmodel API classes from Sandbox to main source
t2gran Dec 13, 2023
d989655
refactor: Move Transmodel Schema from Sandbox to main source
t2gran Dec 13, 2023
0cb6226
refactor: Rename OTPFeature SandboxAPITransmodelApi to TransmodelGrap…
t2gran Dec 13, 2023
a3e2461
doc: Update documentation
t2gran Dec 13, 2023
79f82cd
refactor: Rename generalizedCost to c1 in Raptor
t2gran Dec 13, 2023
436a3bf
feature: Add c2 value to toStrings for better debugging and improve n…
t2gran Nov 20, 2023
b594a02
Merge remote-tracking branch 'upstream/dev-2.x' into upstream-merge-2…
leonardehrenfried Dec 13, 2023
d44d6d6
MARTA has not released their data for next week, switch date to tomorrow
leonardehrenfried Dec 13, 2023
d83ffd9
Extract context menu popup
testower Dec 13, 2023
447d94c
Named type for props
testower Dec 13, 2023
a827ea5
Empty outdir before build
testower Dec 13, 2023
2dbaa8b
Fix typo in readme
testower Dec 13, 2023
60528ea
chore(deps): update dependency org.apache.maven.plugins:maven-surefir…
renovate[bot] Dec 13, 2023
fb744f0
refactor: Fix formating problem on mac OS vs win/linux
t2gran Dec 14, 2023
e4b1fd0
Update src/main/java/org/opentripplanner/routing/algorithm/filterchai…
t2gran Dec 14, 2023
09c386a
Use stringUtils
sharhio Dec 14, 2023
b09a8a6
Merge pull request #5574 from opentripplanner/renovate/org.apache.mav…
leonardehrenfried Dec 14, 2023
93eb021
Merge pull request #5334 from entur/debug-client-next
t2gran Dec 14, 2023
31260ca
Add changelog entry for #5334 [ci skip]
Dec 14, 2023
00db8f4
Merge pull request #5569 from HSLdevcom/co2
optionsome Dec 14, 2023
6d61885
Disable automatic updates for client-next [ci skip]
leonardehrenfried Dec 14, 2023
e478e32
Merge pull request #5551 from entur/serialize_page_token
t2gran Dec 14, 2023
5ab5fb1
Add changelog entry for #5551 [ci skip]
Dec 14, 2023
f9d5671
fix(deps): update dependency org.entur:siri-java-model to v1.26
renovate[bot] Dec 15, 2023
505f123
Merge pull request #5568 from ibi-group/commtrans-senior-cash
leonardehrenfried Dec 15, 2023
5cadb35
Merge pull request #5566 from opentripplanner/renovate/jersey-monorepo
leonardehrenfried Dec 15, 2023
c4107c1
Merge pull request #5565 from leonardehrenfried/siri-error-code
leonardehrenfried Dec 15, 2023
62a6aa5
Apply suggestions from code review
t2gran Dec 15, 2023
942c155
Merge pull request #5521 from HSLdevcom/parking-preference-refactor
optionsome Dec 15, 2023
0f64965
Add changelog entry for #5521 [ci skip]
Dec 15, 2023
df9e1e1
Bump serialization version id for #5521
Dec 15, 2023
d3a400d
Make test more readable
leonardehrenfried Dec 15, 2023
c259b34
Use var instead of long import
leonardehrenfried Dec 16, 2023
3484644
Merge remote-tracking branch 'otp/dev-2.x' into otp_transit_priority_…
t2gran Dec 17, 2023
5c9732c
Apply suggestions from code review
t2gran Dec 18, 2023
f7162ee
Apply suggestions from code review
t2gran Dec 18, 2023
86b5fe4
Merge remote-tracking branch 'otp/dev-2.x' into otp_move_transmodel_api
t2gran Dec 18, 2023
13d9717
Fix: Transmodel schema path in client-next
t2gran Dec 18, 2023
7543ff2
Apply suggestions from code review
t2gran Dec 18, 2023
5adb29f
Merge pull request #5524 from entur/otp_transit_priority_part_2
t2gran Dec 18, 2023
4994339
Bump serialization version id for #5524
Dec 18, 2023
4230fd3
Merge pull request #5573 from entur/otp_move_transmodel_api
t2gran Dec 18, 2023
b1e5c77
Add changelog entry for #5573 [ci skip]
Dec 18, 2023
40fcc74
Use var
leonardehrenfried Dec 18, 2023
8c3411c
Make null-handling code more explicit
leonardehrenfried Dec 18, 2023
720001b
Merge remote-tracking branch 'upstream/dev-2.x' into flex-spec-update
leonardehrenfried Dec 18, 2023
cbad217
Fix formatting
leonardehrenfried Dec 18, 2023
6cec7f4
Automerge maven compiler plugin [ci skip]
leonardehrenfried Dec 19, 2023
3163631
Update dependency org.apache.maven.plugins:maven-compiler-plugin to v…
renovate[bot] Dec 19, 2023
fd1973d
Merge branch 'otp-dev-2.x' into DT-5799
viljaminurminen-cgi Dec 19, 2023
323dc36
Merge pull request #5577 from opentripplanner/renovate/siri-java-mode…
leonardehrenfried Dec 19, 2023
5ed8b70
Merge pull request #5390 from HSLdevcom/DT-5799
optionsome Dec 19, 2023
0f353fd
Add changelog entry for #5390 [ci skip]
Dec 19, 2023
e60026e
Merge pull request #5564 from ibi-group/flex-spec-update
leonardehrenfried Dec 19, 2023
bac5a46
Add changelog entry for #5564 [ci skip]
Dec 19, 2023
f492833
Merge remote-tracking branch 'upstream/dev-2.x' into upstream-merge-2…
leonardehrenfried Dec 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 14 additions & 0 deletions .github/workflows/cibuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
distribution: temurin
cache: maven

- name: Build debug client
working-directory: ./client-next
run: |
npm install
npm run build

- name: Prepare coverage agent, build and test
# these are split into two steps because otherwise maven keeps long-running HTTP connections
# to Maven Central open which then hang during the package phase because the Azure (Github Actions)
Expand Down Expand Up @@ -250,6 +256,14 @@ jobs:
java-version: 21
distribution: temurin
cache: maven
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Build debug client
working-directory: ./client-next
run: |
npm install
npm run build
- name: Build container image with Jib, push to Dockerhub
env:
CONTAINER_REPO: docker.io/opentripplanner/opentripplanner
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/prune-container-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Prune container images'

on:
schedule:
- cron: '0 12 * * 1'
workflow_dispatch:

jobs:
container-image:
if: github.repository_owner == 'opentripplanner'
runs-on: ubuntu-latest
steps:
- name: Delete unused container images
env:
CONTAINER_REPO: opentripplanner/opentripplanner
CONTAINER_REGISTRY_USER: otpbot
CONTAINER_REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
run: |
# remove all snapshot container images that have not been pulled for over a year
# --keep-semver makes sure that any image with a x.y.z version scheme is unaffected by this
pip install prune-container-repo==0.0.4
prune-container-repo -u ${CONTAINER_REGISTRY_USER} -r ${CONTAINER_REPO} --days=365 --keep-semver --activate
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ gen-py/
node_modules/
target/
/graphs
/src/client/debug-client-preview/

# for local dev only
/src/test/resources/speedtest/travelSearch-results-*.csv
Expand Down
2 changes: 1 addition & 1 deletion ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ examples. The Transit model is more complex than the VehiclePosition model.
a use-case or set of features. It may have an api with request/response classes. These are
usually stateless; Hence the `Use Case Service` does normally not have a model. The implementing
class has the same name as the interface with prefix `Default`.
- `Domain Model` A model witch encapsulate a business area. In the drawing two examples are shown,
- `Domain Model` A model which encapsulate a business area. In the drawing two examples are shown,
the `transit` and `vhicleposition` domain model. The transit model is more complex so the
implementation have a separate `Service` and `Repository`. Almost all http endpoints are ,
read-only so the `Service` can focus on serving the http API endpoints, while the repository
Expand Down
8 changes: 7 additions & 1 deletion CODE_CONVENTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ Builder initStop(Stop stop) {

## Naming Conventions

In general, we use American English. We use the GTFS terminology inside OTP as the transit domain
specific language. In cases where GTFS does not provide an alternative we use NeTEx. The naming
should follow the Java standard naming conventions. For example a "real-time updater" class
is named `RealTimeUpdater`. If in doubt check the Oxford Dictionary(American).


### Packages

Try to arrange code by domain functionality, not technology. The main structure of a package should
Expand All @@ -38,7 +44,7 @@ be `org.opentripplanner.<domain>.<component>.<sub-component>`.
| Package | Description |
| ------------------------------- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `o.o.<domain>` | At the top level we should divide OTP into "domain"s like `apis`, `framework`, `transit`, `street`, `astar`, `raptor`, `feeds`, `updaters`, and `application`. |
| `component` and `sub-component` | A group of packages/classes witch naturally belong together, think aggregate as in Domain Driven Design. |
| `component` and `sub-component` | A group of packages/classes which naturally belong together, think aggregate as in Domain Driven Design. |
| `component.api` | Used for components to define the programing interface for the component. If present, (see Raptor) all outside dependencies to the component should be through the `api`. |
| `component.model` | Used to create a model of a Entites, ValueObjects, ++. If exposed outside the component you should include an entry point like `xyz.model.XyzModel` and/or a Service (in api or component root package). |
| `component.service` | Implementation of the service like `DefaultTransitService`, may also contain use-case specific code. Note, the Service interface goes into the component root or `api`, not in the service package. |
Expand Down
1 change: 1 addition & 0 deletions client-next/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_API_URL=/otp/routers/default/transmodel/index/graphql
1 change: 1 addition & 0 deletions client-next/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_API_URL=http://localhost:8080/otp/routers/default/transmodel/index/graphql
42 changes: 42 additions & 0 deletions client-next/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:import/recommended',
'plugin:jsx-a11y/recommended',
'plugin:@typescript-eslint/recommended',
'eslint-config-prettier',
],
ignorePatterns: ['node_modules', 'dist', '.prettierrc.js', '.eslintrc.cjs', 'src/gql/**/*'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
settings: {
react: {
// Tells eslint-plugin-react to automatically detect the version of React to use.
version: 'detect',
},
// Tells eslint how to resolve imports
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
'@typescript-eslint/ban-ts-comment': "off",

// TODO: this is a temporary fix for
// https://github.com/typescript-eslint/typescript-eslint/issues/154
"import/named": "off"
},
}
30 changes: 30 additions & 0 deletions client-next/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

# generated code
src/gql/

# Vite cache folder
.vite/
3 changes: 3 additions & 0 deletions client-next/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
src/gql/
8 changes: 8 additions & 0 deletions client-next/.prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 120,
"bracketSpacing": true
}
27 changes: 27 additions & 0 deletions client-next/README-vite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
```

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
65 changes: 65 additions & 0 deletions client-next/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# OTP debug client (next)

This is the next version of the debug client, intended to replace `../src/client`.

It is designed to work with the Transmodel GraphQL API.

## Stack notes

This is a true Single Page Application (SPA) written in TypeScript on the React framework. It uses `vite` to run
(locally) and for building static assets. It requires no server runtime, and can be served from a CDN and run entirely
in the browser.

The design framework is Bootstrap with React support from `react-bootstrap`.

The map framework is MapLibre, using `MapLibre GL JS` with React support from `react-map-gl`.

GraphQL integration is provided by `graphql-request`, with type support added with `@graphql-codegen`. Types are
generated during build and are not checked into the repository.

## Prerequisites

Use latest LTS version of Node/npm (currently v18). Recommend using a version manager such as `nvm`.

The dev and production builds require graphql schema to be present at
`../src/main/resources/org/opentripplanner/apis/transmodel/schema.graphql`.

## Getting started (development)

Change directory to `client-next` (current) if you haven't already.

npm install

Then

npm run dev

The debug client will now be available at `http://localhost:5173/debug-client-preview`. It has
hot reloading enabled, so you don't have to restart it when you save files.

If you change graphql code during development you can issue the following command:

npm run codegen

You don't have to restart the development server for the changes to take effect.

## Build for production

Change directory to `client-next` (current) if you haven't already.

npm install

Then

npm run build

## Which OTP instance do I use?

In development mode, the debug client by default assumes you are running an OTP instance locally at
port 8080 (see `.env.development`). If you wish to point to a different OTP instance
(like a remote server), use the environment variable`VITE_API_URL`, either at the command line,
or add it to a new `.env.development.local` file (this file will be ignored by git).

In production mode, the default is to access OTP via the same origin as the client (see `.env`).
This behavior can also be modified by changing the previously mentioned environment variable at
build-time.
15 changes: 15 additions & 0 deletions client-next/codegen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
overwrite: true,
schema: '../src/main/resources/org/opentripplanner/apis/transmodel/schema.graphql',
documents: 'src/**/*.{ts,tsx}',
generates: {
'src/gql/': {
preset: 'client',
plugins: [],
},
},
};

export default config;
13 changes: 13 additions & 0 deletions client-next/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/img/otp-logo.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OTP Debug Client</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading
Loading