Skip to content

UFAL/Separate CLARIN license payload from sections.license#1292

Merged
milanmajchrak merged 3 commits into
dtq-devfrom
ufal/clarin-license-step-issue
May 27, 2026
Merged

UFAL/Separate CLARIN license payload from sections.license#1292
milanmajchrak merged 3 commits into
dtq-devfrom
ufal/clarin-license-step-issue

Conversation

@milanmajchrak
Copy link
Copy Markdown
Collaborator

Problem description

Issue: https://github.com/dataquest-dev/dspace-customers/issues/617

Analysis

(Write here, if there is needed describe some specific problem. Erase it, when it is not needed.)

Problems

(Write here, if some unexpected problems occur during solving issues. Erase it, when it is not needed.)

Sync verification

If en.json5 or cs.json5 translation files were updated:

  • Run yarn run sync-i18n -t src/assets/i18n/cs.json5 -i to synchronize messages, and changes are included in this PR.

Manual Testing (if applicable)

Copilot review

  • Requested review from Copilot

Copilot AI review requested due to automatic review settings May 21, 2026 11:37
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the CLARIN license submission step to persist the selected CLARIN license under its own section payload (sections.clarin-license) instead of using the legacy top-level /license field, aligning with the goal of keeping CLARIN and CC license data separate.

Changes:

  • Updated the JSON-PATCH operation to write the selected CLARIN license name to /sections/<sectionId>/name.
  • Added a unit test asserting the generated PATCH request targets /sections/clarin-license/name.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/app/submission/sections/clarin-license-resource/section-license.component.ts Routes license updates through the section-scoped PATCH path to keep CLARIN payload separate.
src/app/submission/sections/clarin-license-resource/section-license.component.spec.ts Adds regression test verifying the new PATCH path and value.

…cense to ClarinDataLicense, and clean up comments
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@milanmajchrak milanmajchrak merged commit 0645e7e into dtq-dev May 27, 2026
5 of 7 checks passed
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.

2 participants