Skip to content

W2026-31 weko-workflow 単体テスト修正 - #1218

Open
ivis-kondo wants to merge 2 commits into
ivis-weko3-dev:feature/W2026-31from
ivis-kondo:fix/ut-weko-workflow-W2026-31
Open

W2026-31 weko-workflow 単体テスト修正#1218
ivis-kondo wants to merge 2 commits into
ivis-weko3-dev:feature/W2026-31from
ivis-kondo:fix/ut-weko-workflow-W2026-31

Conversation

@ivis-kondo

Copy link
Copy Markdown
  • 参照エラーの発生を防ぐため、FlowSettingView 内で actions 変数の宣言・初期化を追加
  • 有効期限が切れたアクティビティ ID をより効率的に処理できるよう、cancel_expired_usage_reports を更新
  • next_actionget_request_maillist、および get_item_application におけるエラー処理を改善し、.data にアクセスする代わりに、レスポンスのペイロードを直接返すよう変更
  • get_data_init におけるロールの取得機能を設定に基づいてスーパーユーザーロールを除外するよう修正
  • 以前の仕様に合わせるため、 ヘッダの Location を絶対パスに変換するような設定、処理を追加
    • Werkzeug のライブラリ更新に伴う、仕様変更の影響差異吸収

- Added initialization of `actions` variable in `FlowSettingView` to avoid potential reference errors.
- Updated `cancel_expired_usage_reports` to handle expired activity IDs more efficiently.
- Improved error handling in `next_action`, `get_request_maillist`, and `get_item_application` by directly returning the response payload instead of accessing `.data`.
- Enhanced role retrieval in `get_data_init` to exclude superuser roles based on configuration, ensuring better access control.
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.

1 participant