名寄せデータ比較用の一時エンドポイントを追加 #25
Merged
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による完全な自動化が実現した際には、より良い実装に置き換えられる可能性があります。