-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: extend line filter to include national organizations #270
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Come to think about it now. Are there any disadvantages or reason for why we should fetch all liners across all authorities? |
A few possible disadvantages I can think of
However, I think having the option to search for line numbers from different authorities makes sense and is something we should look into/discuss how to solve |
Yes, the size of the return data is a disadvantage and could possibly slow the performance of the trip planner. Line filter will still work if authorities uses the same line numbers, as the lines are added to a whitelist when specified in line filter. F. example, if line "1" is specified, all trips across all authorities with public code "1" are included to the whitelist. |
I think this can be too implicit for the end user and there are some technical challenges (unnecessary large transfer payloads). So my suggestion is to temporary let this be and add an issue to solve this more conceptually for planner-web v1.1 |
Closed in favour of extending features to be more intuitive for the user: https://github.com/AtB-AS/kundevendt/issues/17726 |
Closes https://github.com/AtB-AS/kundevendt/issues/17261
Background
As of today, the travel planner can only filter lines that are planned by the relevant organization. Better explained, this means that the travel planner of FRAM can only filter on journeys planned by FRAM, while the travel planner of NFK can only filter on journeys planned by NFK.
But, there are other national organizations that organize trips across counties and regions. Example: Vy, Sj Nord, Boreal and Fjord 1. The line search should be extended to be able to filter on such organizations.
Illustrations
screenshots/video/figma
Proposed solution
lines()
insrc/pages/api/assistant/lines/[authorityId].ts
to include all the authorityIds as params.Acceptance Criteria