Commit 6f929f98 authored by Ryan Herbert's avatar Ryan Herbert
Browse files add default tags to db init

See #3577
parent cd9fb014
Pipeline #44673 failed with stages
in 20 minutes and 24 seconds
......@@ -696,3 +696,29 @@ def init_db_helper(db, auth, force=False, admin_email="", admin_pas
auth.add_permission(id_public_group, PermissionEnum.read_pre_process.value, db.pre_process, 0)
for pre_process in db( > 0).select():
auth.add_permission(id_public_group, PermissionEnum.access.value, db.pre_process,
tags = ['ALL', 'T-ALL', 'B-ALL',
'pre-B-ALL','pro-B-ALL', 'mature-B-ALL',
'CML', 'HCL', 'MZL', 'T-PLL',
'CLL', 'LGL',
'MCL', 'NHL', 'HL', 'FL', 'DLBCL',
'WM', 'MAG',
'diagnosis', 'MRD', 'relapse', 'CR', 'deceased',
'pre-BMT', 'post-BMT', 'pre-SCT', 'post-SCT',
'dilution', 'standard',
'QC', 'EuroMRD',
'marrow', 'blood',
'TIL', 'CAR-T', 'scFv',
'FR1', 'FR2', 'FR3',
'TRA', 'TRB', 'TRG', 'TRD',
'IGH', 'IGK', 'KDE', 'IGL',
for tag in tags:
tid = db.tag.insert(name=tag)
db.group_tag.insert(group_id=public_group, tag_id=tid)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment