Skip to content

feat: durably v0.15.0 へアップグレード#271

Merged
coji merged 2 commits intomainfrom
feat/durably-v0.15.0-upgrade
Mar 31, 2026
Merged

feat: durably v0.15.0 へアップグレード#271
coji merged 2 commits intomainfrom
feat/durably-v0.15.0-upgrade

Conversation

@coji
Copy link
Copy Markdown
Owner

@coji coji commented Mar 31, 2026

Summary

Closes #254

  • @coji/durably, @coji/durably-react を v0.15.0 に更新
  • useRunActions() の breaking change(isLoading/error 削除)に対応: useTransition() + useState で置き換え
  • trigger() の返り値が TriggerResult に変更されたが、既存コードは返り値を使っていないため変更不要

Test plan

  • pnpm typecheck 通過
  • pnpm test 全294テスト通過
  • pnpm lint 通過
  • Data Management ページで Cancel / Retry ボタンの動作確認

🤖 Generated with Claude Code

Summary by CodeRabbit

リリースノート

  • バグ修正

    • ジョブのキャンセル・再実行操作中のエラーハンドリングと状態管理を改善しました。操作中の状態表示がより正確で信頼性の高いものになります。
  • その他

    • 依存ライブラリを更新しました。

- @coji/durably, @coji/durably-react を v0.15.0 に更新
- useRunActions() の isLoading/error 削除に対応: useTransition() + useState で置き換え
- trigger() の返り値変更は既存コードが返り値を使っていないため変更不要

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 31, 2026

Warning

Rate limit exceeded

@coji has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 9 minutes and 1 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 9 minutes and 1 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 31338797-fefa-405d-8f5d-b87925d57f53

📥 Commits

Reviewing files that changed from the base of the PR and between b888585 and fe56e5c.

📒 Files selected for processing (1)
  • app/routes/$orgSlug/settings/data-management/index.tsx
📝 Walkthrough

ウォークスルー

durableライブラリをv0.15.0にアップグレードし、それに伴いデータ管理設定ページをリファクタリング。useRunActions()の戻り値の変更に対応するため、useTransitionとローカル状態を用いた新しい状態管理パターンへ移行。

変更内容

コホート / ファイル 概要
パッケージ依存関係
package.json
@coji/durably@coji/durably-reactをv0.14.0からv0.15.0へアップグレード。
ホック利用パターンの変更
app/routes/$orgSlug/settings/data-management/index.tsx
useRunActions()からcancelretriggerのみを抽出。useTransitionを導入してisActingを管理し、actionErrorをローカル状態で処理。handleCancelhandleRetriggerラッパー関数を追加して、エラーハンドリングとトランジション制御を統一。

推定コードレビュー工数

🎯 3 (Moderate) | ⏱️ ~20 分

関連する可能性のあるPR

ポエム

🐰 フック から 遷移へ移ろい
エラーも 優雅に 手元に
durably v0.15.0
新しい流れ 快適に 🌟

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Linked Issues check ❓ Inconclusive PR は #254 の主要な要件(パッケージの v0.15.0 への更新と useRunActions() の breaking change への対応)を実装していますが、issue で言及されている新機能(coalesce、waitForRun、concurrencyKey)の活用は確認されません。 新機能(coalesce: 'skip'、waitForRun、concurrencyKey)の活用予定について明確化するか、issue の要件を更新してください。
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR タイトルは durably v0.15.0 へのアップグレードという主要な変更を明確に示しており、変更内容と一致しています。
Out of Scope Changes check ✅ Passed すべての変更が #254 の durably v0.15.0 へのアップグレード要件に関連しており、スコープ外の変更は認められません。
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/durably-v0.15.0-upgrade

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@app/routes/`$orgSlug/settings/data-management/index.tsx:
- Around line 263-265: Replace the ad-hoc error formatting used when calling
setActionError (currently using "e instanceof Error ? e.message : String(e)" at
the catch blocks) with the centralized helper getErrorMessage from
app/libs/error-message.ts; locate the two occurrences around setActionError and
replace them to call setActionError(getErrorMessage(e)) so unknown throws and
Error instances are normalized consistently.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a8d26aed-fd60-4fc6-8b96-881920ac9408

📥 Commits

Reviewing files that changed from the base of the PR and between febd5a8 and b888585.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • app/routes/$orgSlug/settings/data-management/index.tsx
  • package.json

@coji coji merged commit f741e2a into main Mar 31, 2026
6 checks passed
@coji coji deleted the feat/durably-v0.15.0-upgrade branch March 31, 2026 09:54
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.

durably v0.15.0 へアップグレード

1 participant