---
# System prepended metadata

title: Longboat Ticket Description

---

# Longboat Ticket Description

## Current ticket description
![](https://i.imgur.com/xxbDTZS.png)

## Ticket description issues

1. Is it related to v1, v2 or both? 
2. Does it need changes for UI?
3. If there are any views involved, they should be linked/screenshotted.
4. Since that sprint, most of the Tickets have their own UI/API subtask. It would be nice to provide it here too, with some description. 


## Ticket Improvement Idea

### Story / Summary 

The system needs to support new **StudyRolePermissionDefinition** with updated **Study#preferences** and updated Study preferences interface on both v1 and v2. 

### Requirements 

- The system needs to enable setting a new study preference that will add a Manage Training Modules function for Study from Study configurations preferences interface (v2/test/1admin/studies/:study_slug/edit) tab in a 10.Training card.
- The system needs to enable adding new permission for *StudyRole's* that will allow StudyRole users to have access to the new Manage Training Modules function

### Details 

Add new study_role_permission_definition to the database with this attributes:

- *StudyRolePermissionDefinition* fields:
- **Display Name**: Access Manage Training Modules
- **tag_name**: access_manage_training_modules
- **Category**: Study Team Admin Permissions
- **Description**: Will enable access to Study Administration - Manage Training Modules interface

Add new Study#preferences - :enable_manage_training_modules: Boolean flag (default = False)

- Update Study Edit Preferences Interface to enable Adding/Removing new Study#preference on both v1 and v2 interfaces.

### Related tasks

Linked related tasks if any 

### Screenshots

1. Screenshot1

![](https://i.imgur.com/A3J4Qhr.png)

---

### UI

### Requirements

Add a new checkbox on the Study Edit Preferences (`v2/test/1admin/studies/:study_slug/edit`) tab under **10. Training** card as on the screenshot below(`screenshot1`). The new **checkbox** should be described as below. The **checkbox** will enable Study to support the new Manage Training Modules function.

### Details

New **StudyEditPreferences** checkbox: 

- **Label**: Enable Manage Training Modules 
- **Description**: Will enable Study Adminitration - Manage Training Modules interface for study 

Should be implemented in both v1 and v2 views.

### Screenshots 

1. Screenshot1

![](https://i.imgur.com/A3J4Qhr.png)


---

### API 


### Requirements

Add a new **StudyRolePermissionDefinition** record to the database with attributes as described: 

### Details

- **Display Name**: Access Manage Training Modules
- **tag_name**: access_manage_training_modules
- **Category**: Study Team Admin Permissions
- **Description**: Will enable access to Study Administration - Manage Training Modules interface

Add a new study preference field in **Study#preferences** hash: :enable_manage_training_modules: Boolean flag (default = False) to support new Manage Training Modules function.

### Docs and resources

Any usefull resources for developer to look into. Wiki pages, similar tasks etc.

This wiki page could be usefull: [Add New Study Preferences](https://github.com/longboat/longboat_v2_api/wiki/Add-new-Studies%23preferences)