coyote3

Admin Creation Playbooks (User/Operator)

This chapter is the step-by-step operational guide for creating:

This document is designed so experienced operators can perform these tasks without developer assistance.

Sensitive schema/permission design internals remain in:

Related discovery/search guide:

Standard terms used in this chapter

1. Critical prerequisites

  1. You must be able to open /admin/.
  2. Your user must have create rights for the target area.
  3. At least one active schema must exist for the target entity.
  4. Keep one smoke-test sample ready for immediate validation.

If no active schema exists, create pages will block with messages like:

2. Shared form behavior (all create pages)

  1. Schema selector at top-right controls which form version is used.
  2. Values marked with * in form labels are schema-required.
  3. Read-only fields are auto-filled by the system (typically audit fields).
  4. On save, the system writes version metadata and audit metadata.
  5. A green flash message indicates create success.

3. Create ISGL in detail

Entry points:

3.1 Required fields (active production schema ISGL-Config v5)

3.2 What each field/feature does

3.3 What happens on save

  1. _id is set from name.
  2. genes are parsed, cleaned, deduplicated, sorted.
  3. gene_count is computed.
  4. schema_name and schema_version are stored.
  5. Version history is initialized.

3.4 Mandatory operator checks after create

  1. Open /admin/genelists and verify row is present.
  2. Open /samples/<sample_id>/edit and confirm list appears in ISGL choices.
  3. Apply list and verify effective genes change.

4. Create User in detail

Entry points:

4.1 Required fields (active production schema User-Schema v1)

Optional but available:

4.2 What each feature does

4.3 What happens on save

  1. _id is set to username.
  2. username and email are lowercased.
  3. Password is hashed only when auth_type = coyote3.
  4. If not coyote3, password is stored as None.
  5. schema_name, schema_version, and version-history metadata are stored.

4.4 Mandatory operator checks after create

  1. User appears in /admin/users.
  2. New user can log in.
  3. New user can access expected pages.
  4. New user cannot access restricted admin pages.
  5. Worklist visibility matches assay/environment assignments.

5. Create ASP in detail

Entry points:

5.1 Required fields (active production schema ASP-Schema v1)

5.2 What each field/feature does

5.3 What happens on save

  1. _id is set from assay_name.
  2. covered_genes_count and germline_genes_count are computed.
  3. schema_name, schema_version, version are stored.
  4. Version history is initialized.

5.4 Mandatory operator checks after create

  1. Panel visible in /admin/asp/manage.
  2. Panel view page renders all metadata and gene counts.
  3. Panel can be selected in ASPC create flow for matching category.

6. Create ASPC in detail

Entry points:

6.1 Common create behavior

  1. Select assay_name first.
  2. UI pre-fills display_name, asp_group, asp_category, platform.
  3. environment options are constrained to valid remaining envs for the chosen assay.
  4. _id is generated as <assay_name>:<environment>.
  5. Duplicate <assay_name>:<environment> is rejected with flash error.

6.2 Required fields (DNA schema DNA-ASP-Config v1)

6.3 Required fields (RNA schema RNA-ASP-Config v1)

6.4 Checkbox and list behavior that affects runtime

6.5 JSON fields rules

6.6 What happens on save

  1. Config is normalized through schema-driven casting.
  2. _id is composed as <assay_name>:<environment>.
  3. schema_name, schema_version, version are stored.
  4. Version history is initialized.

6.7 Mandatory operator checks after create

  1. Config appears in /admin/aspc.
  2. Open test sample for same assay+environment.
  3. Confirm expected filters and sections in DNA/RNA pages.
  4. Confirm report preview uses expected sections and header content.
  1. ASP
  2. ASPC
  3. ISGL
  4. User assignments

This order minimizes broken references and makes validation faster.

8. Fast troubleshooting

  1. Save button disabled on user create:
    • check permission conflict (same permission in allow and deny)
  2. No selectable options in create forms:
    • likely no active schema or no active upstream panels
  3. ASPC create blocked as duplicate:
    • config for assay+environment already exists (<assay>:<env>)
  4. ISGL/ASP gene content missing after save:
    • file may have overridden pasted text
    • validate uploaded file content and delimiter format