Conversation
…avoid missing 1st day of "generated" next schedule
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the GTFS static schedule generation and lookup process to ensure data integrity, particularly when retrieving past schedules. The primary goal is to prevent scenarios where the initial days of a schedule might be overlooked by correctly leveraging the 'last service date' as a boundary for historical data queries. Additionally, it introduces more detailed logging for database deployment steps, which will aid in performance analysis and troubleshooting. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a fix for GTFS static schedule generation by using the last service date to prevent missing the first day of a new schedule. It also includes logging improvements for database deployment and some code style enhancements. My review focuses on improving the new logic by reducing code duplication and refining exception handling for better maintainability and robustness.
src/main/java/org/mtransit/android/commons/provider/gtfs/GTFSStatusProvider.java
Outdated
Show resolved
Hide resolved
src/main/java/org/mtransit/android/commons/provider/gtfs/GTFSStatusProvider.java
Outdated
Show resolved
Hide resolved
src/main/java/org/mtransit/android/commons/provider/gtfs/GTFSStatusProvider.java
Outdated
Show resolved
Hide resolved
…m past > use last service date to avoid missing 1st day of "generated" next schedule mtransitapps/commons-android#97
… from past > use last service date to avoid missing 1st day of "generated" next schedule mtransitapps/commons-android#97
- commons: Enable GTFS RT Trip Updates FF mtransitapps/commons#615 - commons: CI > record screenshot > fix TZ/xmllint - commons-android: GTFS static schedule > generate from past > use last service date to avoid missing 1st day of "generated" next schedule mtransitapps/commons-android#97 - commons-android: Increment database version for service updates - commons-android: Fix duplicate service updates from STM API mtransitapps/commons-android#96 - commons-android: STM.info > brand new API > bump DB version - commons-android: logs++ - commons-android: needed - commons-android: fix debug - commons-android: screenshot emulator time format
Example:
*gtfs_rts_last_departure_in_secinstead of SQLMAX(service_dates.date).