-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added "Maximum holding time" setting to services and analyses (#2624)
* Added analytical holding time functionality * Typo * Redux * Trigger recalculate_records on sample date change * do not display the lock button if beyond holding time * Remove unnecessary bits Surprisingly, this snippet is not necessary because when a sample is created via add form, the uids of services (those assigned to profiles included) are passed on submit * Add warning icon when analysis is beyond holding time * Remove unnecessary bits * Clean import * Changelog * Improve texts * Better wording * CHangelog * better spelling * Fix TypeError: can't compare datetime.datetime to str * Added timezone parameter to `to_ansi` dtime function * Add now() function in api.dtime * Fix doctest * Fix inconsistency with Etc/GMT timezone when datetime is used * Rely on to_ansi with timezone for comparisons * Fix UnknownTimeZoneError when extracting the timezone from datetime ``` Traceback (innermost last): Module ZPublisher.WSGIPublisher, line 176, in transaction_pubevents Module ZPublisher.WSGIPublisher, line 385, in publish_module Module ZPublisher.WSGIPublisher, line 288, in publish Module ZPublisher.mapply, line 85, in mapply Module ZPublisher.WSGIPublisher, line 63, in call_object Module senaite.app.listing.view, line 246, in __call__ Module senaite.app.listing.ajax, line 113, in handle_subpath Module senaite.core.decorators, line 40, in decorator Module senaite.app.listing.decorators, line 63, in wrapper Module senaite.app.listing.decorators, line 50, in wrapper Module senaite.app.listing.decorators, line 100, in wrapper Module senaite.app.listing.ajax, line 383, in ajax_folderitems Module senaite.app.listing.decorators, line 88, in wrapper Module senaite.app.listing.ajax, line 259, in get_folderitems Module bika.lims.browser.analyses.view, line 808, in folderitems Module senaite.app.listing.view, line 982, in folderitems Module bika.lims.browser.analyses.view, line 797, in folderitem Module bika.lims.browser.analyses.view, line 1737, in _folder_item_holding_time Module senaite.core.api.dtime, line 262, in to_ansi Module senaite.core.api.dtime, line 382, in to_zone Module pytz, line 188, in timezone UnknownTimeZoneError: '+02' ``` * Do not raise error if timezone is not valid in to_ansi * Better wording * Proper comparison of dates in sample add form --------- Co-authored-by: Ramon Bartl <rb@ridingbytes.com>
- Loading branch information
Showing
10 changed files
with
407 additions
and
15 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
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.