-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored and fixed inconsistencies with Analysis Turnaround Time lo…
…gic (#1032) * Earliness of analysis is not expressed as minutes Erliness is the remaining time *in minutes* for an analysis to be completed based on its maximum turn around time. The function was not returning the value in minutes. * Simplify a bit * Added to_minutes function to api * Simplify getDuration() and getEarliness() functions * Make Analysis' due date to be based on start process date It was using the date the sample partition was received instead. * getLate function from Analysis Request was inconsistent * Added test for TAT and CHANGES.rst update * Some cleaning in late analyses portlet (not in use) * Return setup's default TAT if analysis has no TAT set * Added to_dhm_format function in API * First late analysis is enough for the ar to be late too * Move getMaxTimeAllowed to base class with schema field * Test updated (default TAT from setup) * Do not force to choose an analyst in productivity reports * Change TAT is not displayed correctly. Add days * Refactor report Analysis turnaround time over time * Update CHANGES.rst * utils.formatDuration deprecated in favor of api.to_dhm_format * Remove function no longer used * Added upgrade step to refresh getDueDate of Analyses * Param to_int -> round_to_int in api.to_minutes() * PEP8 * Return None to be more explicit * Fix API's get_minutes test
- Loading branch information
Showing
16 changed files
with
574 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.