Open manumoreira opened 4 years ago
This will require to enable edition for LabRecordImport it is critical to avoid enabling the deletion of LabRecordImports
tags
table and modelLabRecordImportTags
tableTags
section in ActiveAdmin with Index
, New
, Edit
and Delete
Edit
interaction for LabRecordImports
, which will allow only to add/remove tagsTags
tableid
integer
name
string
LabRecordImportsTags
tablelab_record_imports_tags
lab_record_id
integer
tag_id
integer
@mmuller changes are listed in https://github.com/instedd/maap-store/pull/88#issue-524219483
Let's test this by creating some tags, editing and deleting some few, and then going to the Lab Record Import list and adding tags to some imports.
Check permissions along the way: You should be able to perform any of the aforementioned actions as admin
, whereas you shouldn't be able neither to see nor perform any modifying action as viewer
.
Dropdown in Edit tags
view is a standard select multiple
HTML component with a pretty basic CSS and that's OK. We didn't want to spend much time styling it. However, what we should double check is the functionality. Tags that already belong to the LRI should start as selected, and you have to be able to select and deselect tags freely.
Add tags to categorize labrecord imports. This tags will only be viewed and edited in the context of the store, none of this will be synchronized to the collector