Skip to content

[codex] Swap Joban Local and Disney Resort line IDs#1478

Merged
TinyKitten merged 1 commit intodevfrom
data/joban-line
Apr 11, 2026
Merged

[codex] Swap Joban Local and Disney Resort line IDs#1478
TinyKitten merged 1 commit intodevfrom
data/joban-line

Conversation

@TinyKitten
Copy link
Copy Markdown
Member

What changed

  • swapped the line_cd assignments for 11344 and 11345 in data/2!lines.csv
  • updated data/3!stations.csv so station codes and line_cd references stay aligned with the swapped line IDs
  • updated data/5!station_station_types.csv to point at the new station codes for the Joban Local Line records

Why

  • the IDs for 11345 (常磐緩行線) and 11344 (ディズニーリゾートライン) needed to be exchanged in the canonical data set
  • because station codes are line-prefixed in this dataset, the swap also required downstream reference updates to avoid broken foreign-key style relationships

Impact

  • callers that consume these canonical CSVs will now see 11344 as 常磐緩行線 and 11345 as ディズニーリゾートライン
  • station and train-type association records remain internally consistent after the swap

Root cause

  • the source data had the two line IDs assigned to the opposite lines

Validation

  • cargo run -p data_validator
  • verified there were no duplicate primary IDs in data/2!lines.csv and data/3!stations.csv after the swap

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 11, 2026

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (3)
  • data/2!lines.csv is excluded by !**/*.csv
  • data/3!stations.csv is excluded by !**/*.csv
  • data/5!station_station_types.csv is excluded by !**/*.csv

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 679af145-465f-4f0a-93ca-98d4525c4b89

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch data/joban-line

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot added the data label Apr 11, 2026
@TinyKitten TinyKitten marked this pull request as ready for review April 11, 2026 11:25
@github-actions
Copy link
Copy Markdown

🚉 停車駅の変更

8 件の変更された停車パターン

● 停車 / ○ 通過 / △ 一部通過 / ◆ 平日停車 / ◇ 休日停車 / ▲ 一部停車

✏️ 各駅停車 (Local) - 常磐緩行線 / 東京メトロ千代田線 / 小田急線 / 小田急多摩線

type_cd=101, line_group_cd=165

変更内容: 14 駅追加 | 14 駅削除

全駅リスト (60駅)
# 駅名 Station 停車
1 取手 Toride
2 天王台 Tennodai
3 我孫子 Abiko
4 北柏 Kita-Kashiwa
5 Kashiwa
6 南柏 Minami-Kashiwa
7 北小金 Kita-Kogane
8 新松戸 Shim-Matsudo
9 馬橋 Mabashi
10 北松戸 Kita-Matsudo
11 松戸 Matsudo
12 金町 Kanamachi
13 亀有 Kameari
14 綾瀬 Ayase
15 綾瀬 Ayase
16 北千住 Kita-senju
17 町屋 Machiya
18 西日暮里 Nishi-nippori
19 千駄木 Sendagi
20 根津 Nezu
21 湯島 Yushima
22 新御茶ノ水 Shin-ochanomizu
23 大手町 Otemachi
24 二重橋前 Nijubashimae
25 日比谷 Hibiya
26 霞ケ関 Kasumigaseki
27 国会議事堂前 Kokkai-gijidomae
28 赤坂 Akasaka
29 乃木坂 Nogizaka
30 表参道 Omote-sando
31 明治神宮前〈原宿〉 Meiji-jingumae Harajuku
32 代々木公園 Yoyogi-koen
33 代々木上原 Yoyogi-uehara
34 代々木上原 Yoyogi-Uehara
35 東北沢 Higashi-Kitazawa
36 下北沢 Shimo-Kitazawa
37 世田谷代田 Setagaya-Daita
38 梅ヶ丘 Umegaoka
39 豪徳寺 Gotokuji
40 経堂 Kyodo
41 千歳船橋 Chitose-Funabashi
42 祖師ヶ谷大蔵 Soshigaya-Okura
43 成城学園前 Seijogakuen-mae
44 喜多見 Kitami
45 狛江 Komae
46 和泉多摩川 Izumi-Tamagawa
47 登戸 Noborito
48 向ヶ丘遊園 Mukogaoka-yuen
49 生田 Ikuta
50 読売ランド前 Yomiuriland-mae
51 百合ヶ丘 Yurigaoka
52 新百合ヶ丘 Shin-Yurigaoka
53 新百合ヶ丘 Shin-Yurigaoka
54 五月台 Satsukidai
55 栗平 Kurihira
56 黒川 Kurokawa
57 はるひ野 Haruhino
58 小田急永山 Odakyu-Nagayama
59 小田急多摩センター Odakyu Tama Center
60 唐木田 Karakida

✏️ 各駅停車 (Local) - 常磐緩行線 / 東京メトロ千代田線 / 小田急線

type_cd=101, line_group_cd=166

変更内容: 14 駅追加 | 14 駅削除

全駅リスト (64駅)
# 駅名 Station 停車
1 取手 Toride
2 天王台 Tennodai
3 我孫子 Abiko
4 北柏 Kita-Kashiwa
5 Kashiwa
6 南柏 Minami-Kashiwa
7 北小金 Kita-Kogane
8 新松戸 Shim-Matsudo
9 馬橋 Mabashi
10 北松戸 Kita-Matsudo
11 松戸 Matsudo
12 金町 Kanamachi
13 亀有 Kameari
14 綾瀬 Ayase
15 綾瀬 Ayase
16 北千住 Kita-senju
17 町屋 Machiya
18 西日暮里 Nishi-nippori
19 千駄木 Sendagi
20 根津 Nezu
21 湯島 Yushima
22 新御茶ノ水 Shin-ochanomizu
23 大手町 Otemachi
24 二重橋前 Nijubashimae
25 日比谷 Hibiya
26 霞ケ関 Kasumigaseki
27 国会議事堂前 Kokkai-gijidomae
28 赤坂 Akasaka
29 乃木坂 Nogizaka
30 表参道 Omote-sando
31 明治神宮前〈原宿〉 Meiji-jingumae Harajuku
32 代々木公園 Yoyogi-koen
33 代々木上原 Yoyogi-Uehara
34 東北沢 Higashi-Kitazawa
35 下北沢 Shimo-Kitazawa
36 世田谷代田 Setagaya-Daita
37 梅ヶ丘 Umegaoka
38 豪徳寺 Gotokuji
39 経堂 Kyodo
40 千歳船橋 Chitose-Funabashi
41 祖師ヶ谷大蔵 Soshigaya-Okura
42 成城学園前 Seijogakuen-mae
43 喜多見 Kitami
44 狛江 Komae
45 和泉多摩川 Izumi-Tamagawa
46 登戸 Noborito
47 向ヶ丘遊園 Mukogaoka-yuen
48 生田 Ikuta
49 読売ランド前 Yomiuriland-mae
50 百合ヶ丘 Yurigaoka
51 新百合ヶ丘 Shin-Yurigaoka
52 柿生 Kakio
53 鶴川 Tsurukawa
54 玉川学園前 Tamagawagakuen-mae
55 町田 Machida
56 相模大野 Sagami-Ono
57 小田急相模原 Odakyu-Sagamihara
58 相武台前 Sobudaimae
59 座間 Zama
60 海老名 Ebina
61 厚木 Atsugi
62 本厚木 Hon-Atsugi
63 愛甲石田 Aiko-Ishida
64 伊勢原 Isehara

✏️ 各駅停車 (Local) - 常磐緩行線

type_cd=301, line_group_cd=162

変更内容: 14 駅追加 | 14 駅削除

全駅リスト (14駅)
# 駅名 Station 停車
1 取手 Toride
2 天王台 Tennodai
3 我孫子 Abiko
4 北柏 Kita-Kashiwa
5 Kashiwa
6 南柏 Minami-Kashiwa
7 北小金 Kita-Kogane
8 新松戸 Shim-Matsudo
9 馬橋 Mabashi
10 北松戸 Kita-Matsudo
11 松戸 Matsudo
12 金町 Kanamachi
13 亀有 Kameari
14 綾瀬 Ayase

✏️ 各駅停車 (Local) - 常磐緩行線

type_cd=301, line_group_cd=163

変更内容: 14 駅追加 | 14 駅削除

全駅リスト (14駅)
# 駅名 Station 停車
1 取手 Toride
2 天王台 Tennodai
3 我孫子 Abiko
4 北柏 Kita-Kashiwa
5 Kashiwa
6 南柏 Minami-Kashiwa
7 北小金 Kita-Kogane
8 新松戸 Shim-Matsudo
9 馬橋 Mabashi
10 北松戸 Kita-Matsudo
11 松戸 Matsudo
12 金町 Kanamachi
13 亀有 Kameari
14 綾瀬 Ayase

✏️ 各駅停車 (Local) - 常磐緩行線

type_cd=301, line_group_cd=164

変更内容: 14 駅追加 | 14 駅削除

全駅リスト (14駅)
# 駅名 Station 停車
1 取手 Toride
2 天王台 Tennodai
3 我孫子 Abiko
4 北柏 Kita-Kashiwa
5 Kashiwa
6 南柏 Minami-Kashiwa
7 北小金 Kita-Kogane
8 新松戸 Shim-Matsudo
9 馬橋 Mabashi
10 北松戸 Kita-Matsudo
11 松戸 Matsudo
12 金町 Kanamachi
13 亀有 Kameari
14 綾瀬 Ayase

✏️ 各駅停車 (Local) - 常磐緩行線

type_cd=301, line_group_cd=167

変更内容: 14 駅追加 | 14 駅削除

全駅リスト (14駅)
# 駅名 Station 停車
1 取手 Toride
2 天王台 Tennodai
3 我孫子 Abiko
4 北柏 Kita-Kashiwa
5 Kashiwa
6 南柏 Minami-Kashiwa
7 北小金 Kita-Kogane
8 新松戸 Shim-Matsudo
9 馬橋 Mabashi
10 北松戸 Kita-Matsudo
11 松戸 Matsudo
12 金町 Kanamachi
13 亀有 Kameari
14 綾瀬 Ayase

✏️ 各駅停車 (Local) - 常磐緩行線

type_cd=301, line_group_cd=168

変更内容: 14 駅追加 | 14 駅削除

全駅リスト (14駅)
# 駅名 Station 停車
1 取手 Toride
2 天王台 Tennodai
3 我孫子 Abiko
4 北柏 Kita-Kashiwa
5 Kashiwa
6 南柏 Minami-Kashiwa
7 北小金 Kita-Kogane
8 新松戸 Shim-Matsudo
9 馬橋 Mabashi
10 北松戸 Kita-Matsudo
11 松戸 Matsudo
12 金町 Kanamachi
13 亀有 Kameari
14 綾瀬 Ayase

✏️ 各駅停車 (Local) - 常磐緩行線

type_cd=301, line_group_cd=169

変更内容: 14 駅追加 | 14 駅削除

全駅リスト (14駅)
# 駅名 Station 停車
1 取手 Toride
2 天王台 Tennodai
3 我孫子 Abiko
4 北柏 Kita-Kashiwa
5 Kashiwa
6 南柏 Minami-Kashiwa
7 北小金 Kita-Kogane
8 新松戸 Shim-Matsudo
9 馬橋 Mabashi
10 北松戸 Kita-Matsudo
11 松戸 Matsudo
12 金町 Kanamachi
13 亀有 Kameari
14 綾瀬 Ayase

@TinyKitten TinyKitten merged commit 07c56a5 into dev Apr 11, 2026
6 checks passed
@TinyKitten TinyKitten deleted the data/joban-line branch April 11, 2026 11:26
@TinyKitten TinyKitten self-assigned this Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant