名寄せデータ比較用の一時エンドポイントを追加#25
Merged
Merged
Conversation
coderdojo.jp PR #1747 の実装のため、Clubs API と Japan DB の 名前マッピングを比較するエンドポイントを追加 ## 変更内容 1. upsert_dojos_geojson.rb に名寄せデータ記録機能を追加 - Clubs API の名前 (name_earth) と Japan DB の名前 (name_japan) を記録 - _data/dojo2dojo.json として出力 2. Jekyll エンドポイント /dojo2dojo.json を追加 - _data/dojo2dojo.json のデータを JSON で提供 - japan.json と同じパターンで実装 ## 目的 - coderdojo-japan/coderdojo.jp#1747 の実装で name_japan と name_earth および ID の比較に使用 - global_club_id を使用した自動化により、手動管理の dojo2dojo.csv を 廃止するための準備 ## 記録データ - id: Dojo ID (global_club_id) - name_japan: Japan DB での名前(名寄せ後) - name_earth: Clubs API での名前(名寄せ前) - countryCode: JP - urlSlug: URL スラッグ - status: ステータス
3de95c3 to
54b8547
Compare
yasulab
added a commit
that referenced
this pull request
Dec 31, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
coderdojo.jp PR #1747 の実装のため、Clubs API と Japan DB の名前マッピングを比較するエンドポイントを追加します。
背景
dojo2dojo.csvを使用global_club_idを使用した自動化により、この手動プロセスを廃止したい変更内容
1. 名寄せデータ記録機能の追加
_tasks/upsert_dojos_geojson.rbに以下の機能を追加:_data/dojo2dojo.jsonとして保存2. Jekyll エンドポイントの追加
/dojo2dojo.jsonエンドポイントを追加_data/dojo2dojo.jsonのデータを JSON として提供japan.jsonと同じパターンで実装http://map.coderdojo.jp/dojo2dojo.json
提供されるデータ形式
[ { "global_club_id": 12345, "name_japan": "CoderDojo 札幌", "name_earth": "Sapporo", "countryCode": "JP", "urlSlug": "sapporo-jp", "status": "RUNNING_SESSIONS" }, ... ]目的
global_club_idを追加し、Clubs API とのデータ同期機能を実装 coderdojo.jp#1747 の実装global_club_idを使用した自動化により、手動管理のdojo2dojo.csvを廃止注記
これは PR #1747 の実装支援のための一時的なエンドポイントです。
global_club_idによる完全な自動化が実現した際には、より良い実装に置き換えられる可能性があります。