comaps/subways
17
7
Fork
You've already forked subways
6

Remove station count from validator and data sheet #62

Merged
pastk merged 1 commit from Bovi887/subways:remove-station-count-from-validator-and-data-sheet into master 2026年04月20日 07:48:11 +02:00
Member
Copy link

In #55 it was discussed if it was nescessary to keep the station count for validation purposes or if it could be removed, because it is a lot of work to maintain. I think that, if we keep the line count validation for validation purposes (to detect network changes for example), we can drop the station count validation.

This PR removes the station count from the data sheet and removes all validation of the station count against the data sheet. The number of found stations is still in the output, just like we did with the interchanges.

Question: Is there anyone who thinks we should keep the station count?

Signed-off-by: Bovi887 bovi887@noreply.codeberg.org

In #55 it was discussed if it was nescessary to keep the station count for validation purposes or if it could be removed, because it is a lot of work to maintain. I think that, if we keep the line count validation for validation purposes (to detect network changes for example), we can drop the station count validation. This PR removes the station count from the data sheet and removes all validation of the station count against the data sheet. The number of found stations is still in the output, just like we did with the interchanges. Question: Is there anyone who thinks we should keep the station count? Signed-off-by: Bovi887 <bovi887@noreply.codeberg.org>
Bovi887 changed title from (削除) Remove station count from validator and data sheet (削除ここまで) to WIP: Remove station count from validator and data sheet 2026年04月13日 15:41:57 +02:00
Bovi887 force-pushed remove-station-count-from-validator-and-data-sheet from 08f0937b4c to 162cb7c097 2026年04月14日 16:38:37 +02:00 Compare
Author
Member
Copy link

I've just changed the validator to throw an error if there are less than 2 stations in a city. A network with 1 or 0 stations isn't usable and should fail so when backup cities are saved a backup can be used.

I think that makes the PR is ready for review.

I've just changed the validator to throw an error if there are less than 2 stations in a city. A network with 1 or 0 stations isn't usable and should fail so when backup cities are saved a backup can be used. I think that makes the PR is ready for review.
Bovi887 changed title from (削除) WIP: Remove station count from validator and data sheet (削除ここまで) to Remove station count from validator and data sheet 2026年04月14日 16:43:26 +02:00
Owner
Copy link
I did a test run and it looks good! https://codeberg.org/comaps/comaps/actions/runs/16931/jobs/1/attempt/1 https://mapgen-fi-1.comaps.app/subway/validator/index.html
pastk left a comment
Copy link

LGTM, thanks!

LGTM, thanks!
Bovi887 deleted branch remove-station-count-from-validator-and-data-sheet 2026年04月20日 15:11:06 +02:00
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
comaps/subways!62
Reference in a new issue
comaps/subways
No description provided.
Delete branch "Bovi887/subways:remove-station-count-from-validator-and-data-sheet"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?