v4.1.0
Overview
Note: This version includes a change to the research_outputs table! We have added a new research_outputs.research_output_type
field that stores a string value. It is a replacement for the old research_outputs.output_type
integer field.
You will need to run: bin/rails db:migrate && bin/rails v4:upgrade_4_1_0
which will:
- Migrate your existing data from the
research_outputs.output_type
(Integer) field to the newresearch_outputs.research_ouput_type
(String) field. - Add a new 'OTHER' license to the
licenses
table. This new license is meant for scenarios where a user's institution or repository provides restricted access to the data the description is 'Custom Data Use Agreements/Terms of Use'. The option will appear for the user by default within the existing License select box - The enum that backs the Initial Access level of a research Output has changed from 'open (0)', 'embargoed (1)', 'restricted (2)' and 'closed (3)' to: 'unrestricted (0)', 'restricted (2)', 'other (3)'. The script migrates any research outputs that had an initial
research_outputs.access
level set to 'embargoed' (1) to 'other' (3). The enum was left intact to accommodate the migrations, it will be updated in the next release.
New Functionality
Template administrators now have the ability to enable/disable the 'Research Outputs' tab. If they disable the tab, a researcher will not see the research outputs tab when editing their plan. The new 'Preferences' tab is visible for admins when they edit their template. It also provides additional options to tailor the research outputs tab for their template.
![Screenshot 2023-05-10 at 7 35 47 AM](https://private-user-images.githubusercontent.com/1204467/237427457-37726274-4deb-4e3b-b805-19e6bb62297f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNzQ0MzIsIm5iZiI6MTczOTA3NDEzMiwicGF0aCI6Ii8xMjA0NDY3LzIzNzQyNzQ1Ny0zNzcyNjI3NC00ZGViLTRlM2ItYjgwNS0xOWU2YmI2MjI5N2YucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMDQwODUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YjQ4MjBjNTI5MjA3ZDE5MDVkZGE3NjQ1NDgwNWVjMzQ1NmRjNzAzNjZjNmZhNzI2NDhkZTIyMWQ0NDJhN2E3NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.4yRcN8U890lAo0XDxOU4l3Cf3VKG5IM-ftHEFLiUb4E)
![Screenshot 2023-05-10 at 7 37 16 AM](https://private-user-images.githubusercontent.com/1204467/237427626-e3f62a06-c216-428d-8e0e-198015dfbec7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNzQ0MzIsIm5iZiI6MTczOTA3NDEzMiwicGF0aCI6Ii8xMjA0NDY3LzIzNzQyNzYyNi1lM2Y2MmEwNi1jMjE2LTQyOGQtOGUwZS0xOTgwMTVkZmJlYzcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMDQwODUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzQ4OTJmODg3Y2VkMGY3ZWU0ZjQ0MjM2OWJhZTNiZWViZjA1YWQ1NGU1NWNjOWJmZjZhMTEzYmNiYjQ4MTEzYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.TeBXET3GOyvTHsFHQRjKWmKdlnT-BmWdGUXJHtsRyKY)
![Screenshot 2023-05-10 at 7 39 38 AM](https://private-user-images.githubusercontent.com/1204467/237428186-d15ddc9f-0e89-42c5-84a4-52390dbfc8e8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNzQ0MzIsIm5iZiI6MTczOTA3NDEzMiwicGF0aCI6Ii8xMjA0NDY3LzIzNzQyODE4Ni1kMTVkZGM5Zi0wZTg5LTQyYzUtODRhNC01MjM5MGRiZmM4ZTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMDQwODUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDBjNzNkMjZhYjMzNWFjYjNjM2Y0MWNlYzE1NzRjYjkyMzQ5MWQ3YTM2YmQyNjM4MWEwM2Y5NDc2MmUxNGJlOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.mZXZLh49l_hZUbquznD_GvasLomkg2cvcbK6iCQKQ_s)
![Screenshot 2023-05-10 at 7 40 17 AM](https://private-user-images.githubusercontent.com/1204467/237428874-090cda23-5ffa-4a90-9514-f69f05ad0634.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNzQ0MzIsIm5iZiI6MTczOTA3NDEzMiwicGF0aCI6Ii8xMjA0NDY3LzIzNzQyODg3NC0wOTBjZGEyMy01ZmZhLTRhOTAtOTUxNC1mNjlmMDVhZDA2MzQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMDQwODUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDI2M2RjOWFiY2YyYTRjMGExOThjZWE0YWRhN2MwMWVjNDIwOTY5OTgyN2Y3NTcxOWM3YWM5ODNiNjJmN2M1NSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.9fQDd9tQ09T0QmYtx-CmxJaAKDFrybxEP__Xkoei9n0)
![Screenshot 2023-05-10 at 7 40 59 AM](https://private-user-images.githubusercontent.com/1204467/237429371-d822816d-2c51-4c23-82de-f67861cfe1f5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNzQ0MzIsIm5iZiI6MTczOTA3NDEzMiwicGF0aCI6Ii8xMjA0NDY3LzIzNzQyOTM3MS1kODIyODE2ZC0yYzUxLTRjMjMtODJkZS1mNjc4NjFjZmUxZjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMDQwODUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MmIzZWY3YmM5ZTNiNzBiZDFiYzM1YTA4ODI5YWE3MDE0YTFkYTgyYzQ2NmNmNTFkYzFiZjY4MjNlOTViZTZlMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.V5g4QQcqctxXLjJ8JvIr_xD1Moc2BD5J1pMmFnTjErY)
Changes
Updated the Admin Template edit page with a new 'Preferences' tab. This new tab allows admins to specify whether or not the Research Outputs tab will be available to the researcher when filling out their plan. If enabled, the admin can specify preferred/recommended output types, licenses, metadata standards and repositories. They can also provide guidance to the research to help them with their selections of those items.
- Added the following columns to the
templates
tableenable_research_outputs
user_guidance_output_types
user_guidance_repositories
user_guidance_metadata_standards
user_guidance_licenses
customize_output_types
customize_repositories
customize_metadata_standards
customize_licenses
- Updated the Templates model (and RSpec factory and tests) to use new field
- Created the Template Preferences View
- Removed 'Embargoed' from the list of Research Output Type's initial access level and changed the names of the other options. (Left the enum intact on the model for now so that data can be migrated)
- Added a new 'OTHER' license type (does not appear in JSON output because it has no valid URI)
- Added column
research_output_type
to theresearch_outputs
table - Added
v4:upgrade_4_1_0
rake task to migrate data fromoutput_type
andoutput_type_description
to the newresearch_output_type
field. The task also adds a default 'OTHER' license and migratesresource_output.access
from embargoed to closed - Updated the ResearchOutput model (and RSpec factory and tests) to use new field
- Replaced the old
output_types
enum on the ResearchOutput model withDEFAULT_OUTPUT_TYPES
array - Updated presenters (and RSpec tests) and controller to work with the new field
- Created table template_licenses
- Created UI to save preferred Licenses for a Template
- Created table template_output_types
- Created UI to save preferred Output Types for a Template
- Created table template_repositories
- Customize modal search to populate this relation
- Created table template_metadata_standards
- Customize modal search to populate this relation
- Modify repositories table to allow for the definition of customized repositories for a template.
- UI to create customized repositories
- UI to select customized, preferred and/or standard repositories for a research output.
- Updated Gem and JS dependencies