Repository navigation
Merge Feature/pbs 26-22 to develop - #1111
Merged
Merged
Conversation
- Ticket: https://openscience.atlassian.net/browse/ENG-12622 - Feature flag: n/a ## Summary of Changes 1. Added logic to check relationships and use the API URL instead of a hardcoded value. 2. Updated error handling for relationships. 3. Updated unit tests.
…estions (#1095) - Ticket: https://openscience.atlassian.net/browse/ENG-12584 - Feature flag: n/a ## Summary of Changes 1. Fixed bug with radio button. 2. Clean up code. 3. Update unit tests.
…1091) - Ticket: https://openscience.atlassian.net/browse/ENG-12550 - Feature flag: n/a ## Summary of Changes 1. Centralized license fetching in shared `LicensesService` (project, registration, preprint, collection + by id). 2. Removed duplicate license fetch logic/mappers across features. 3. Unified shared `LicenseComponent` and metadata license dialog for projects and registrations. 4. Dialog now loads licenses by resource type/provider instead of a global list. 5. Fixed save/cancel/year defaults and rejected unsupported resource types. 6. Updated unit tests for the consolidated services, dialog, and components.
…ubmission (#1096) - Ticket: https://openscience.atlassian.net/browse/ENG-12565 - Feature flag: n/a ## Summary of Changes 1. Added delete button for primary file in preprint. 2. Updated tests.
- Ticket: https://openscience.atlassian.net/browse/ENG-12671 - Feature flag: n/a ## Summary of Changes 1. Removed collections image and link from dashboard. 2. Updated unit tests.
- Ticket: https://openscience.atlassian.net/browse/ENG-12605 - Feature flag: n/a ## Purpose Users couldn't submit a registration created from scratch when files were attached. Deleting a file from the file list only removed it from the question on the current page. If the same file was attached on another page, that answer kept pointing to the deleted file and submit failed with "All files attached to this form must be registered...". Re-uploading didn't help because the old file still showed up there with the same name. ## Summary of Changes 1. Deleting a file now removes it from every file question in the draft, not only the one on the current page. 2. Newly attached files are stored in the same shape as saved ones, so the duplicate check and removal work right after attaching. 3. Updated unit tests.
…Use text (#1101) - Ticket: https://openscience.atlassian.net/browse/ENG-12777 - Feature flag: n/a ## Summary of Changes 1. Fixed space for `A Contributing...`.
- Ticket: https://openscience.atlassian.net/browse/ENG-12665 - Feature flag: n/a ## Summary of Changes 1. Added migrated label component. 2. Updated my projects, my preprints and preprint details. 3. Clean up code. 4. Updated unit tests.
…any section (#1105) - Ticket: https://openscience.atlassian.net/browse/ENG-12678 - Feature flag: n/a ## Purpose Submitting a project to a collection with a CEDAR template failed with "Submitted object must have a published CEDAR metadata record..." after any section was edited. When the Collection Metadata step opened again, the saved answers were loaded with `instanceObject`, which doesn't rebuild the editor's validity report, so the record was saved as a draft and the submission was rejected. Update on an existing submission had the same issue and switched its published record back to draft. The CEDAR form on the project, registration and file metadata pages had the same problem: editing a published record and saving it, even without changes, turned it back to draft (ANG-630, ENG-11382). The draft button also showed a raw translation key (ENG-12424). ## Summary of Changes 1. The collection metadata step loads the template and saved answers together with `templateAndInstanceObject`, so the editor rechecks them. 2. The metadata page CEDAR form loads the template and saved answers the same way when editing a record, and checks the editor's report again on save. 3. Added the missing "Save draft" label. 4. Added `templateAndInstanceObject` to `CedarEditorElement`. 5. Updated unit tests. ## Side Effects None expected. Incomplete metadata is still saved as a draft and blocked on submit. ## QA Notes Only reproducible with a template that has required fields (test3's Selenium Collection has a required Type, uat1's doesn't). 1. Open https://test3.osf.io/collections/selenium/add, select a project and complete all steps. 2. Click "Click to edit" on any section and save the steps again without changing the collection metadata. 3. Add to Collection, it should go through. 4. Open an accepted submission with Update and save all steps without changes, its CEDAR record should stay published. 5. Open a published community metadata record (template with required fields) on a project, registration or file, click Edit and save without changes, it should stay published. 6. On Add community metadata record, after selecting a template with required fields, the button should say "Save draft".
#1109) - Ticket: https://openscience.atlassian.net/browse/ENG-12678 - Feature flag: n/a ## Purpose QA on test3 found that editing a published Human Cognitive Neuroscience Data record and saving it without changes turned it into a draft. Since #1105 the edit form loads the saved answers with `templateAndInstanceObject`, so the CEDAR editor rebuilds its validity report. But cedar-embeddable-editor 1.5.0 doesn't load checkbox answers this way. This template's required "Preprocessing status" is a checkbox, so it came up empty, the record was saved as a draft and that answer was cleared. Loading with `instanceObject` keeps checkbox answers but doesn't rebuild the report, which is what #1105 fixed for the Selenium "Type" field. ## Summary of Changes 1. The metadata page CEDAR form loads the saved answers with `templateAndInstanceObject` and then again with `instanceObject`, so the report is rebuilt and checkbox answers are kept. 2. The collection metadata step does the same. 3. Updated unit tests. ## Side Effects None expected. A record with a required field left empty is still saved as a draft. ## QA Notes Human Cognitive Neuroscience Data is the only template with a checkbox field on test3 and prod. 1. Open a published Human Cognitive Neuroscience Data record on a project or registration, click Edit and Publish without changes, it should stay published and "Preprocessing status" should keep its value. 2. Click Edit, uncheck "Preprocessing status" and save, it should be saved as a draft. 3. The #1105 steps should still pass: on https://test3.osf.io/collections/selenium/add, "Click to edit" on Collection Metadata and save without changes, Add to Collection should go through, and Update on an accepted submission should keep its record published.
brianjgeiger
approved these changes
Nov 30, 2026
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Summary of Changes
Screenshot(s)
Side Effects
QA Notes