Skip to content

Conversation

@rand-honda
Copy link

@rand-honda rand-honda commented Mar 29, 2025

Purpose

OA加速化ワークフロー_デモ版(RCOS)
デプロイ対象環境:rcos-release
デプロイ希望日:なるべく早めにお願いいたします

以下3つをセットでお願いいたします
#588
RCOSDP/RDM-ember-osf-web#148
RCOSDP/RDM-waterbutler#74

#578
の修正内容も含みます

Changes

■R-OA-01_WEKO連携機能への論文データおよび書誌情報登録フローの追加
・G-M-1 査読付き論文最終稿 と 根拠データのメタデータ登録
・G-M-4 査読付き論文最終稿 と 根拠データをWEKOに送出する
※以下のソースを使用
https://redmine.devops.rcos.nii.ac.jp/issues/49044#note-14

■R-OA-02_WEKO連携機能への研究データ付随メタデータと書誌情報の登録の統合化
1.管理責任者承認ワークフローの準備
・G-4 ワークフロー操作画面
・G-4-1 ワークフロー管理画面

2.管理責任者承認ワークフローの実行
・G-2 プロジェクトダッシュボード画面
・G-3 ファイルビュー画面
・G-4 ワークフロー操作画面
・G-4-3 ワークフロータスク管理画面
・G-U-7 ワークフロータスク入力画面

・ワークフロー開始時に該当のファイルをロックする機能を追加
https://redmine.devops.rcos.nii.ac.jp/issues/49826
から必要項目を取得した

3.管理責任者の進行状況確認
・G-4-2 ワークフロープロセス管理画面
・G-4-3 ワークフロータスク管理画面

QA Notes

  • Does this change require a data migration? If so, what data will we migrate?
  • What is the level of risk?
    • Any permissions code touched?
    • Is this an additive or subtractive change, other?
  • How can QA verify? (Through UI, API, AdminApp or AdminAdminApp?)
    • If verifying through API, what's the new version? Please include the endpoints in PR notes or Dev docs.
  • What features or workflows might this change impact?
  • How will this impact performance?
    -->

Documentation

Side Effects

Ticket

@rand-honda rand-honda force-pushed the rcos-release_20250328 branch 2 times, most recently from 09c0af0 to 9bf323d Compare April 3, 2025 23:03
return None, None

def download_file(url, cookies):
response = requests.get(url, cookies=cookies).content
Copy link

Choose a reason for hiding this comment

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

ダウンロードされるファイルサイズへの配慮は必要ありませんか?

Copy link
Author

Choose a reason for hiding this comment

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

download_fileの呼び元でファイルサイズチェックを実施しておりますので、
問題ないかと思います。

Comment on lines 27 to 28
max_file_size = 128 # MB
# max_file_size = 128 # MB

# MAX_UPLOAD_SIZE is defined in bytes, but max_file_size must be defined in MB
max_file_size = MAX_UPLOAD_SIZE // (1024 ** 2)

Copy link

Choose a reason for hiding this comment

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

これはdefaults.py の記述が間違っているのですから、defaults.pyの方が修正されるべきです。
また、これは既存のバグなので別途課題として起票されるのがより適切だと考えます。

Copy link
Author

Choose a reason for hiding this comment

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

マージ元のプロトタイプソースをそのまま適用しておりました。
修正意図や仕様を把握していませんので。
取り急ぎ修正前にもどしました。

Copy link

Choose a reason for hiding this comment

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

locked の実装について、テストを拡充してください。
既存の機能に対して悪影響はありませんか。

Copy link
Author

Choose a reason for hiding this comment

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

該当箇所のテストコードを追加しました。

Copy link

Choose a reason for hiding this comment

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

動作を変更(拡張)した箇所についてのテストを拡充してください。

Copy link
Author

Choose a reason for hiding this comment

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

該当箇所のテストコードを追加しました。

Comment on lines 460 to 461
TIME_STAMP_AUTHORITY_URL = 'https://www.langedge.jp/tsa'
TIME_STAMP_AUTHORITY_URL = 'http://eswg.jnsa.org/freetsa'
Copy link

Choose a reason for hiding this comment

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

逆更新がかかっています。

Copy link
Author

Choose a reason for hiding this comment

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

逆更新する前の状態に戻しました

Copy link

Choose a reason for hiding this comment

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

これは本件開発に関連した更新ですか?
別件の更新が混入しているように見えます。

Copy link
Author

Choose a reason for hiding this comment

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

混入した箇所をもとに戻しました

Copy link

Choose a reason for hiding this comment

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

以前にあったフィールド名の命名規則についての指摘が反映されていないようです。(get_の件)
他の関連ファイルを含めて確認ください。

Copy link
Author

Choose a reason for hiding this comment

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

変数、関数名修正いたしました。

@rand-honda rand-honda force-pushed the rcos-release_20250328 branch 4 times, most recently from e69b776 to bfbce2f Compare April 28, 2025 07:01
@rand-honda rand-honda force-pushed the rcos-release_20250328 branch from bfbce2f to e040f0a Compare April 28, 2025 12:30
@rand-honda rand-honda marked this pull request as ready for review April 29, 2025 00:43
@hide24 hide24 merged commit 0aa01e6 into RCOSDP:rcos-release May 19, 2025
1 check failed
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.

3 participants