Conversation
|
""" Walkthroughこの変更は、イベントのブロードキャストとサブスクライブの仕組みを Changes
Sequence Diagram(s)sequenceDiagram
participant Controller as Controller (Product/Check)
participant ActiveSupport as ActiveSupport::Notifications
participant Updater as LearningStatusUpdater
Controller->>ActiveSupport: instrument('product.save' / 'check.create' / 'check.cancel', payload)
ActiveSupport-->>Updater: 通知イベントを購読者に送信
Updater->>Updater: call(_name, _started, _finished, _id, payload)
Updater->>Updater: payloadに応じて update_after_submission / update_after_check を実行
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Possibly related issues
Possibly related PRs
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 RuboCop (1.76.1)app/models/learning_status_updater.rbrubocop-minitest extension supports plugin, specify app/controllers/api/checks_controller.rbrubocop-minitest extension supports plugin, specify app/controllers/products_controller.rbrubocop-minitest extension supports plugin, specify
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (5)
💤 Files with no reviewable changes (1)
🚧 Files skipped from review as they are similar to previous changes (4)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@thmz337 |
|
お疲れ様です!レビュー承知しました。 |
|
@thmz337 |
e9cd100 to
c3b4c3d
Compare
|
お疲れ様です。問題なさそうですので、approveさせていただきます。 |
|
@matuaya conflictの修正をお願いします〜 |
c3b4c3d to
87f9c83
Compare
|
@komagata |
|
@matuaya 本番環境で確認してOKでした〜 |
Issue
概要
LearningStatusUpdaterクラスをnewspaperからActiveSupport::Notificationsのsubscribeの仕組みに移行しました。
AnswererWatcherをnewspaperからActiveSupport::Notificationsに移行のPRを参考にしました。
変更確認方法
chore/replace-newspaper-with-activesupport-nofitications-for-learning-status-updaterをローカルに取り込むforeman start -f Procfile.devでローカル環境を立ち上げるbin/rails test test/system/products_test.rb:105bin/rails test test/system/products_test.rb:133(「着手」や「提出」)
Screenshot
UIに変化がなかったためスクリーンショットは省略しています。
Summary by CodeRabbit
Summary by CodeRabbit
新機能
リファクタ
その他