Changes between Version 2 and Version 3 of Modules/Batches


Ignore:
Timestamp:
2011-01-12T11:50:45+01:00 (14 years ago)
Author:
Erik Roos
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Modules/Batches

    v2 v3  
    11== Idea ==
    22
    3 Several applications have a need for the idea of working in Batches. That is to say, executing some sort of function on multiple molgenis entities at one time.  An example is choosing multiple samples in a LIMS system to simultaneously perform protocols on. The idea is to create a generic plugin that can serve multiple molgenis applications.
     3Several applications have a need for the idea of working in Batches. That is to say, executing some sort of function on multiple Molgenis entities at one time. Examples are choosing multiple samples in a LIMS system to simultaneously perform protocols on, and selecting multiple animals to apply an event (wean, feed, draw blood sample, etc.) to. The idea is to create a generic plugin that can serve all Molgenis GCC applications.
     4
     5== Requirements ==
     6
     7 * User must be able to add entities to a Batch in the UI in an intuitive way, e.g. by clicking on one or more entities in a lst/matrix or by dragging them into a designated part of the screen.
     8 * User must be able to always inspect the contents of their current Batch, e.g. by clicking a "shopping cart" icon in a corner of the UI.
     9 * User must be able to edit or clear the Batch.
     10 * Batch must be accessible from all parts (form screens, plugins) of the application.
     11 * It would be nice if there were two kinds of batches:
     12  * Static batch, a fixed list of entities
     13  * Dynamic batch, a list based on a query that is evaluated anew every time
    414
    515== Technical Implementation ==
    616
    7 The idea is to have a singleton class, say "Batches" that contains a map, which is composed of a Molgenis User (from the auth package) as the key, and a list as the value. The list would contain molgenis entities currently in the "batch". When the application requests the batch information, the map would be queried with the id of the current molgenis user, and the list would be returned.
     17The idea is to have a singleton class, say "Batches" that contains a map, which is composed of a Molgenis User's ID (from the auth package) as the key, and a list as the value. The list would contain Molgenis entities currently in the "batch". When the application requests the batch information, the map would be queried with the ID of the current Molgenis User, and the list would be returned.
    818
    919Future ideas include a query being executed at runtime to create a dynamic list based on certain parameters (Erik can expand? esp. with how this would work technically with regards to the above implementation idea).