Update publish plan resolver for EZID registration
@jupiter007 がすでに取り組んでいます。
2026年7月7日 から。
評価
この issue はまだ評価されていません。
説明
The Apollo server's Plan model is already assigning a dmpID to the plan when it is created. We now need to make sure that the DMP id gets published to EZID. EZID then registers the DMP id (aka DOI) with DataCite.
For reference, here is an example of the entire workflow for a specific DMP:
- When the user clicks publish in the current Rails tool, the maDMP JSON record is generated in the DMP Hub
- A subset of the information from that maDMP JSON is sent to EZID for publication. See the EZID page
- EZID validates the JSON and registers the DOI with DataCite.
- Once the DOI is registered with DataCite the DOI Landing page becomes available (The DMP Hub currently hosts this in its CloudFront distribution)
For this ticket, we are only going to focus on step 2. What we will need to do:
- Add some new ENV parameters and a new
src/config/ezidConfig.ts- The necessary info (API URL, ID, Secret, etc.) to connect to EZID can be found in the AWS System Manager - Parameter Store. Search for
/uc3/dmp/hub/dev/Ez. - For now add them to your local dotenv file for testing, we will need to get them into the dmptool-infrastructure repo when we're ready to push the PR
- You can load them into the
- The necessary info (API URL, ID, Secret, etc.) to connect to EZID can be found in the AWS System Manager - Parameter Store. Search for
- Add a new datasource for the EZID API.
- Do NOT submit to EZID if the plan has a default temporary dmp id (meaning the system couldn't create a unique DMP id, see this code). Return an error instead.
- We want to use the "create" endpoint for the rebuild (the current Rails app is using the DMPHub lambda which is using "mint" endpoint)
- Use the
src/datasources/orcidAPI.tsas a reference. It has anAuthorizerstructure that we'll need to use. - Convert the existing DMPHub Ruby Lambda to determine how to construct the payload that EZID needs
- Check with Jing, I think we might be able send them JSON now instead of XML
- Make sure we use the EZID sandbox!!! https://ezid-stg.cdlib.org
- Update the
src/resolvers/plans.tsresolver to call the new EZID datasource to register the DMP id. If it is successful, call theplan.publishfunction on thePlanmodel.
Ping me when you get around to testing as well. I will get you the EZID credentials so you can login to their sandbox and review submissions.
- 主要言語
- JavaScript
- スター
- 0
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CDLUC3/dmsp_api_prototype のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
CDLUC3/dmsp_api_prototype#46 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
CDLUC3/dmsp_api_prototype#45 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
CDLUC3/dmsp_api_prototype#42 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
CDLUC3/dmsp_api_prototype#39 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
CDLUC3/dmsp_api_prototype#34 · コメント 1 件 ·
CDLUC3/dmsp_api_prototype の issue をすべて見る
似ている issue
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
andromarces/agent-loops#886 ·
メンテナーはふだん 1 日以内に返信
-
bug effort:low model:light plan planner:gpt-6-1-sol tests
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
B: visual
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
FreeTubeApp/FreeTube#9929 ·
メンテナーはふだん 1 日以内に返信
-
🐛 Bug: `--clear-screen` not very useful (at least not for dealing with large test/error output)オープンstatus: in triage type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
mochajs/mocha#6428 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
🔧 in development
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100