Skip to content

Show stop names in timetables section - #1625

Merged
PasiVuohijoki merged 4 commits into
mainfrom
show-stop-names-in-timetables-section
Nov 26, 2026
Merged

PasiVuohijoki merged 4 commits into
mainfrom
show-stop-names-in-timetables-section

Conversation

@PasiVuohijoki

@PasiVuohijoki PasiVuohijoki commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

This change is Reviewable

@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@Huulivoide Huulivoide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Huulivoide reviewed 6 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on PasiVuohijoki).


ui/src/components/Timetables/VehicleScheduleDetails/useGetRouteTimetables.ts line 257 at r1 (raw file):

              observation_date: observationDate,
            },
            fetchPolicy: 'no-cache',

Miks täällä ei voi näyttää aiemmin noudettua dataa 🤔 ?

@PasiVuohijoki PasiVuohijoki left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PasiVuohijoki made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on Huulivoide).


ui/src/components/Timetables/VehicleScheduleDetails/useGetRouteTimetables.ts line 257 at r1 (raw file):

Previously, Huulivoide (Jesse Jaara) wrote…

Miks täällä ei voi näyttää aiemmin noudettua dataa 🤔 ?

Apollo hakee rinnakkain dataa kolmelle eri reittiversiolle eri journeyPatternId:llä. Apollo yhdisteli nuo normalisoidut vastaukset cachessa siten, että yhden tyhjän variantin data vaikutti myös kahden muun reitin tuloksiin. Sitte siellä näky vaan "Ei vuoroja" vaikka niitä kyllä GraphQL palautti.

Nyt toi useGetRouteTimeTables käsittelee jokaisen vastauksen itsenäisesti ilman yhteistä kakkua.

En kokenut, että tuosta ois niin paljon perffidamagea, että kantsis alkaa virittelee Apollon cacheavaimia paremmiksi.

@Huulivoide Huulivoide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Huulivoide made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on PasiVuohijoki).


ui/src/components/Timetables/VehicleScheduleDetails/useGetRouteTimetables.ts line 257 at r1 (raw file):

Previously, PasiVuohijoki (Pasi Vuohijoki) wrote…

Apollo hakee rinnakkain dataa kolmelle eri reittiversiolle eri journeyPatternId:llä. Apollo yhdisteli nuo normalisoidut vastaukset cachessa siten, että yhden tyhjän variantin data vaikutti myös kahden muun reitin tuloksiin. Sitte siellä näky vaan "Ei vuoroja" vaikka niitä kyllä GraphQL palautti.

Nyt toi useGetRouteTimeTables käsittelee jokaisen vastauksen itsenäisesti ilman yhteistä kakkua.

En kokenut, että tuosta ois niin paljon perffidamagea, että kantsis alkaa virittelee Apollon cacheavaimia paremmiksi.

No sit väittäisin että siellä on cache asetukset pielessä → Voi kusta myöhemminkin jos joku tekee jonkun uuden / toisen queryn ja ei välttämättä huomaa. Olis hyvä korjata oikee kysely / cache asetukset niin että siellä on ID kentät paikoillaan, eikä tarvi yhdistellä dataa 🤔

@PasiVuohijoki
PasiVuohijoki force-pushed the show-stop-names-in-timetables-section branch from 93645a4 to 6617675 Compare November 25, 2026 12:56

@PasiVuohijoki PasiVuohijoki left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PasiVuohijoki made 1 comment.
Reviewable status: 2 of 6 files reviewed, 1 unresolved discussion (waiting on Huulivoide).


ui/src/components/Timetables/VehicleScheduleDetails/useGetRouteTimetables.ts line 257 at r1 (raw file):

Previously, Huulivoide (Jesse Jaara) wrote…

No sit väittäisin että siellä on cache asetukset pielessä → Voi kusta myöhemminkin jos joku tekee jonkun uuden / toisen queryn ja ei välttämättä huomaa. Olis hyvä korjata oikee kysely / cache asetukset niin että siellä on ID kentät paikoillaan, eikä tarvi yhdistellä dataa 🤔

Muutin queryä vähän. Nyt tuntuisi toimia ja cache on päällä.

@Huulivoide Huulivoide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Huulivoide reviewed 4 files and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on PasiVuohijoki).


-- commits line 6 at r2:
Lienee squashattu tää muutos alkuperäseen disablointi kommittiin, ja näin ollen tää ei enbloi mitään uudelleen, koska tässä tässä historia puussa sitä ei koskaan oo disabloitu.

@PasiVuohijoki
PasiVuohijoki force-pushed the show-stop-names-in-timetables-section branch from 6617675 to 7199159 Compare November 25, 2026 13:29
- select quay netex_id so newest_quay normalizes consistently
- use stop_place (with id) instead of aliased stop_place_newest_version
@PasiVuohijoki
PasiVuohijoki force-pushed the show-stop-names-in-timetables-section branch from 7199159 to 02b1e95 Compare November 25, 2026 13:29

@PasiVuohijoki PasiVuohijoki left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PasiVuohijoki made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on Huulivoide).


-- commits line 6 at r2:

Previously, Huulivoide (Jesse Jaara) wrote…

Lienee squashattu tää muutos alkuperäseen disablointi kommittiin, ja näin ollen tää ei enbloi mitään uudelleen, koska tässä tässä historia puussa sitä ei koskaan oo disabloitu.

Done.

@Huulivoide Huulivoide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Huulivoide reviewed all commit messages and resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on PasiVuohijoki).

@PasiVuohijoki
PasiVuohijoki merged commit d8dd0a9 into main Nov 26, 2026
29 checks passed
@PasiVuohijoki
PasiVuohijoki deleted the show-stop-names-in-timetables-section branch November 26, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants