Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress bar column in Analysis Requests list and AnalysesNum revisited #236

Merged
merged 7 commits into from
Aug 30, 2017

Conversation

xispa
Copy link
Member

@xispa xispa commented Aug 29, 2017

Removed the ComputedField AnalysesNum from Analysis Request content type, cause it was only used for indexes and the counterpart function is enough. Added more indicators in getAnalysesNum function, so now the function returns an array as follows:

[ number of verified analyses, 
  total number of analyses,
  number of analyses with results not yet submitted,
  number of analyses to be verified ]

With this Pull Request, the Analysis Request object is reindexed (so getAnalysesNum is re-indexed) after a transition to any analysis is performed.

Although the "Number of Analyses" column hasn't been removed from Analysis Requests lists, this PR adds a new column that takes advantage of this information and makes easier for the user to know the current percentage of completeness of each Analysis Request:

progress

@xispa xispa requested a review from Espurna August 29, 2017 15:23
Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module bika.lims.browser.worksheet.workflow, line 100, in __call__
  Module bika.lims.browser.worksheet.workflow, line 263, in submit
  Module bika.lims.workflow, line 114, in doActionFor
  Module Products.CMFCore.WorkflowTool, line 241, in doActionFor
  Module Products.CMFCore.WorkflowTool, line 552, in _invokeWithNotification
  Module Products.DCWorkflow.DCWorkflow, line 282, in doActionFor
  Module Products.DCWorkflow.DCWorkflow, line 421, in _changeStateOf
  Module Products.DCWorkflow.DCWorkflow, line 531, in _executeTransition
  Module zope.event, line 31, in notify
  Module zope.component.event, line 24, in dispatch
  Module zope.component._api, line 136, in subscribers
  Module zope.component.registry, line 321, in subscribers
  Module zope.interface.adapter, line 585, in subscribers
  Module zope.component.event, line 32, in objectEventNotify
  Module zope.component._api, line 136, in subscribers
  Module zope.component.registry, line 321, in subscribers
  Module zope.interface.adapter, line 585, in subscribers
  Module bika.lims.workflow, line 252, in AfterTransitionEventHandler
  Module bika.lims, line 205, in wrapper
  Module bika.lims.content.referenceanalysis, line 175, in workflow_script_submit
  Module bika.lims, line 205, in wrapper
  Module bika.lims.content.abstractanalysis, line 1298, in workflow_script_submit
  Module bika.lims.workflow.analysis.events, line 26, in after_submit
AttributeError: getRequest
@Espurna Espurna merged commit dc0976c into wip Aug 30, 2017
@xispa xispa deleted the num-analyses-ar branch August 30, 2017 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants