Skip to content

Conversation

@yasulab
Copy link
Member

@yasulab yasulab commented Apr 2, 2025

起こったこと

2025/03/29 に Clubs API は (また) 予告なく破壊的な変更がされた 😱 💦

📝 財団が予告なく破壊的な変更を加えるのは過去に複数回あったことから、データは事前にキャッシュ化されています。このため 🗺️ DojoMap のユーザーにはほとんど影響はなく、今後も緊急で対応する必要はない仕組みになっています。(厳密には「次回開催日」の更新がされない部分のみ影響がありますが、数週間週間〜数ヶ月程度先のデータであるため十分に余裕を持って対応できます)

Run bundle exec rake get_data_from_earth
/opt/hostedtoolcache/Ruby/3.4.1/x64/bin/ruby get_data_from_earth.rb
 JP_DOJOS_QUERY: 1..Error: {errors: [{message: "Field 'stage' doesn't exist on type 'Club'", locations: [{line: 20, column: 7}], path: ["query", "clubs", "nodes", "stage"], extensions: {code: "undefinedField", typeName: "Club", fieldName: "stage"}}]}
 (JP: 0)
ALL_DOJOS_QUERY: 1..Error: {errors: [{message: "Field 'stage' doesn't exist on type 'Club'", locations: [{line: 20, column: 7}], path: ["query", "clubs", "nodes", "stage"], extensions: {code: "undefinedField", typeName: "Club", fieldName: "stage"}}]}
 (Total: 0)

Fetched number of dojos: 0

Check out its details by:
$ cat dojos_earth.json

ERROR: NUMBER_OF_DOJOS=0
This number should be 1000+. Something went wrong.
Error: Process completed with exit code 1.

image

本 PR でやること

📸 スクショ (Actions のログは一定期間後に削除されるため)

image

@yasulab yasulab force-pushed the fix-broken-data-structure-due-to-clubs-api-break branch from b9fe19e to b38799b Compare April 2, 2025 08:56
@yasulab yasulab merged commit 82f81c3 into main Apr 2, 2025
@yasulab yasulab deleted the fix-broken-data-structure-due-to-clubs-api-break branch April 2, 2025 08:56
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