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

NMRL-260 Instrument's getReferenceAnalyses. bika.lims.instrument_qc_failures_viewlet fails #99

Merged
merged 2 commits into from
May 23, 2017

Conversation

Espurna
Copy link

@Espurna Espurna commented May 23, 2017

  • Missing methods in ReferenceAnalysis added.
  • Cataloging tools in upgrade fodler have been improved, now the progress is shown.
  • upgrade/utils/refreshCatalogs only refresh catalogs with new columns, catalogs with new indexes are reindexed onyl.

Error:

rendering of plone.abovecontent in bika.lims.instrument_qc_failures_viewlet fails: -1755096285
Traceback (most recent call last):
  File "/home/lims/Plone/buildout-cache/eggs/plone.app.viewletmanager-2.0.9-py2.7.egg/plone/app/viewletmanager/manager.py", line 110, in render
    html.append(viewlet.render())
  File "/home/lims/Plone/zeocluster/src/bika.lims/bika/lims/browser/instrument.py", line 743, in render
    self.get_failed_instruments()
  File "/home/lims/Plone/zeocluster/src/bika.lims/bika/lims/browser/instrument.py", line 723, in get_failed_instruments
    elif not i.isQCValid():
  File "/home/lims/Plone/zeocluster/src/bika.lims/bika/lims/content/instrument.py", line 537, in isQCValid
    for last in self.getLatestReferenceAnalyses():
  File "/home/lims/Plone/zeocluster/src/bika.lims/bika/lims/content/instrument.py", line 520, in getLatestReferenceAnalyses
    for ref in self.getReferenceAnalyses():
  File "/home/lims/Plone/zeocluster/src/bika.lims/bika/lims/content/instrument.py", line 713, in getReferenceAnalyses
    return [analysis for analysis in self.getAnalyses() \
  File "/home/lims/Plone/buildout-cache/eggs/Products.Archetypes-1.9.11-py2.7.egg/Products/Archetypes/ClassGen.py", line 56, in generatedAccessor
    return schema[name].get(self, **kw)
  File "/home/lims/Plone/buildout-cache/eggs/Products.Archetypes-1.9.11-py2.7.egg/Products/Archetypes/Field.py", line 1877, in get
    res = instance.getRefs(relationship=self.relationship)
  File "/home/lims/Plone/buildout-cache/eggs/Products.Archetypes-1.9.11-py2.7.egg/Products/Archetypes/Referenceable.py", line 81, in getRefs
    return [self._optimizedGetObject(b.targetUID) for b in brains]
  File "/home/lims/Plone/buildout-cache/eggs/Products.ZCatalog-2.13.27-py2.7.egg/Products/ZCatalog/Lazy.py", line 190, in __getitem__
    value = data[index] = self._func(self._seq[index])
  File "/home/lims/Plone/buildout-cache/eggs/Products.ZCatalog-2.13.27-py2.7.egg/Products/ZCatalog/Catalog.py", line 121, in __getitem__
    r=self._v_result_class(self.data[index]).__of__(aq_parent(self))
KeyError: -1755096285

Espurna added 2 commits May 22, 2017 14:14
@xispa xispa merged commit c1ce36c into wip May 23, 2017
@xispa xispa deleted the bug/NMRL-260-bika.lims.instrument_qc_failures_viewlet branch August 24, 2017 08:06
@xispa xispa changed the title NMRL-260 bika.lims.instrument qc failures viewlet NMRL-260 Instrument's getReferenceAnalyses. bika.lims.instrument_qc_failures_viewlet fails Oct 9, 2017
Ruhanga pushed a commit to Ruhanga/senaite.core that referenced this pull request Mar 14, 2022
…e#99)

* Override publish view when publishing results from inside a client

* Update CHANGES.rst
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