Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • GRIN-Global CE Client GRIN-Global CE Client
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 31
    • Issues 31
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GG-CE
  • GRIN-Global CE ClientGRIN-Global CE Client
  • Issues
  • #249

Closed
Open
Created May 05, 2021 by Matija Obreza@mobrezaOwner

Viability: Prepare for testing

Add a menu "Prepare order" at /viability/order that displays a Table of inventories that have a pending VIABILITYTEST action.
The table also includes details from inventory.accession: taxonomySpecies, improvementStatusCode, lifeFormCode, initialReceivedDate, statusCode. (API call listScheduledInventories at /viability/scheduled)

The user selects items in the table and clicks "Prepare order" action. This opens (a dialog?) a list of selected items where the user can select InventoryViabilityRule from a dropdown for each Inventory.

User also selects a recipient Cooperator and clicks the Create order button. This makes an API call orderViabilityTest at /viability/order to the server with:

{
 "inventories": { "10": 3, "11", 3 },
 "site": { "id": site.id },
 "cooperator": { "id": viabilityCooperator.id }
}

inventories is a Map<number, number> where the key is inventory.id and value is inventoryViabilityRule.id.

The Server:

  • Creates a new OrderRequest with GR for Germination test and the selected recipientCooperator.
  • For each selected Inventory and its InventoryViabilityRule:
    • a new InventoryViability record is registered
    • a new OrderRequestItem with quantity from InventoryViabilityRule is registered with the OrderRequest
Edited May 06, 2021 by Matija Obreza
Assignee
Assign to
Time tracking