Skip to content

Index Service IDs#40

Merged
mmathieum merged 5 commits into
masterfrom
mm/service_id_ints
Nov 19, 2025
Merged

Index Service IDs#40
mmathieum merged 5 commits into
masterfrom
mm/service_id_ints

Conversation

@mmathieum

@mmathieum mmathieum commented Nov 13, 2025

Copy link
Copy Markdown
Member

@mmathieum mmathieum marked this pull request as ready for review November 18, 2025 02:48
@mmathieum mmathieum requested a review from Copilot November 18, 2025 03:03

Copilot AI 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.

Pull Request Overview

This PR introduces support for indexing service IDs in the GTFS provider implementation, enabling optional integer-based service ID storage alongside string-based IDs. The changes align with updates made in the commons-java repository.

Key changes:

  • Renamed variables and methods from serviceId to serviceIdOrInt to reflect dual support for string and integer service IDs
  • Added conditional logic using FeatureFlags.F_EXPORT_SERVICE_ID_INTS to handle both ID formats
  • Introduced new database table for service IDs with corresponding initialization logic

Reviewed Changes

Copilot reviewed 5 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
GTFSStatusProviderTest.kt Renamed test methods and function calls to use filterServiceIdOrInts
gtfs_rts_values.xml Added new string resource for service ID cleanup regex configuration
GTFSStatusProvider.java Updated service ID filtering and lookup logic to support both string and integer formats
GTFSRealTimeProvider.java Added service ID cleanup regex pattern support (currently unused)
GTFSProviderDbHelper.java Added service IDs table creation and initialization logic

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/java/org/mtransit/android/commons/provider/GTFSStatusProvider.java Outdated
Comment thread src/main/java/org/mtransit/android/commons/provider/GTFSStatusProvider.java Outdated
@mmathieum mmathieum requested a review from Copilot November 19, 2025 01:24

Copilot AI 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.

Pull Request Overview

Copilot reviewed 5 out of 8 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mmathieum mmathieum merged commit 6e47c7f into master Nov 19, 2025
7 of 8 checks passed
@mmathieum mmathieum deleted the mm/service_id_ints branch November 19, 2025 01:49
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