Giter Club home page Giter Club logo

Comments (12)

grulisco avatar grulisco commented on July 20, 2024

Proper description. Calculations seem to be not triggered by result entry.
But calculations within an AS triggered by interim fields are working correctly.

from senaite.core.

grulisco avatar grulisco commented on July 20, 2024

The demo at senaite.ridingbytes.com also shows a defective calculation currently.
See simple Total Hardness Calc (e.g. H2O-0004-R01).

from senaite.core.

grulisco avatar grulisco commented on July 20, 2024

Maybe a duplicate of bikalims/bika.lims#2202?

from senaite.core.

Espurna avatar Espurna commented on July 20, 2024

I tried to reproduce this issue but it seems to me that it is working as expected. I am attaching two images to demonstrate that, one image was taken using senaite.lims, and the other one using bika.lims alone. I also reproduced the same steps uing both browsers, firefox and chrome.

selection_019

selection_020

@ramonski Should we close this issue, or am I missing some steps you did?

from senaite.core.

ramonski avatar ramonski commented on July 20, 2024

Thanks @Espurna, please don't close it yet until we got the feedback from @grulisco.

It seems that this also happens on https://senaite.ridingbytes.com/clients/client-6/H2O-0004-R01/manage_results (labman1:labman1).

@grulisco could you please check if this setup I described in this issue actually reproduce the behavior on your server or did I miss something?

from senaite.core.

grulisco avatar grulisco commented on July 20, 2024

Please keep it open.
See https://senaite.ridingbytes.com/clients/client-6/H2O-0004-R01/manage_results:
spectacle hz8132
Simple addition does not work.

The testcase (length, width, ...) described is translated from my setup correctly, and still does not work properly.

from senaite.core.

grulisco avatar grulisco commented on July 20, 2024

still a problem with senaite 1.1.6

from senaite.core.

xispa avatar xispa commented on July 20, 2024

Although the problem persists in old Analysis Requests, it works as expected when creating new Analysis Requests. I've tested the instance after the upgrade 1.6.6. @grulisco can you confirm that if you create a new Analysis Request and select the same analyses, this issue does not happen?

Technical overview
To obtain the analyses to which a given analysis depends on to calculate its result, ultimately relies on calculation.getDependentServices function. And here is the problem: DependentServices field from Calculation was changed from a HistoryAwareReferenceField to an UIDReferenceField on Nov 2. The instance you are using was probably updated after this commit and this relationship was lost.

from senaite.core.

grulisco avatar grulisco commented on July 20, 2024

@xispa I'm still on 1.1.6 :) But, in my instance calculations still are not triggered even with new ARs.
(same in senaite.ridingbytes...)
Expecting latest update by @ramonski tomorrow...

from senaite.core.

xispa avatar xispa commented on July 20, 2024

@grulisco can you try to go to Kantenlaengen's calculation view and press the save button first. After that, try to create a new AR

from senaite.core.

grulisco avatar grulisco commented on July 20, 2024

@xispa Yes it does work, after updating the calculations!
So it seems, that this issue affects not only old ARs but old calcultations too...

from senaite.core.

xispa avatar xispa commented on July 20, 2024

I've done some modifs to the upgrade step 1.1.6 to deal with those broken calcs in Analyses from old Analysis Requests that were not using the latest version of Calculation in #403 , so rerunning 1.1.6 will make the calculations work in old ARs too.

from senaite.core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.