-
-
Notifications
You must be signed in to change notification settings - Fork 109
doorkeeperの近日開催イベント収集の問題を解消 #1733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
テストの確認をしていきます👀 |
@claude Investigate this Actions's log and suggest how to fix errors in CI? ultrathink. |
Claude finished @yasulab's task —— View job タスクリスト
🔍 分析結果CI の失敗原因を特定しました。 エラー内容
根本原因PR で Doorkeeper のイベントデータのキーを文字列からシンボルに変更しましたが、 問題のあるコード(23-32行目): # 現在のコード(文字列キーを使用)
next unless e['group'].to_s == dojo_event_service.group_id
EventHistory.create!(dojo_id: dojo.id,
dojo_name: dojo.name,
service_name: dojo_event_service.name,
service_group_id: dojo_event_service.group_id,
event_id: e['id'], # ← 文字列キー
event_url: e['public_url'], # ← 文字列キー
participants: e['participants'], # ← 文字列キー
evented_at: Time.zone.parse(e['starts_at'])) # ← 文字列キー 修正方法
# 修正後(シンボルキーを使用)
next unless e[:group].to_s == dojo_event_service.group_id
EventHistory.create!(dojo_id: dojo.id,
dojo_name: dojo.name,
service_name: dojo_event_service.name,
service_group_id: dojo_event_service.group_id,
event_id: e[:id], # ← シンボルキー
event_url: e[:public_url], # ← シンボルキー
participants: e[:participants], # ← シンボルキー
evented_at: Time.zone.parse(e[:starts_at])) # ← シンボルキー なぜこのエラーが発生したか
追加の修正が必要な可能性
|
Statistics::Tasks::Doorkeeperで文字列キーでアクセスしていたが、 EventService::Providers::Doorkeeperがシンボルキーで返すように 変更されたため、統計集計でDoorkeeperイベントが作成されない問題を修正。 また、テストスタブの日付を動的に生成するように変更し、 期間に応じた正しいイベント数が作成されるように調整した。
CI 通ったのでマージします!🚀✨ |
close: #1728
doorkeeperのイベント取得で、イベントデータのキーをシンボルに変更し、正常にイベントデータを収集できるようにしました🛠️
🔽 更新後表示例
