Giter Club home page Giter Club logo

Comments (13)

ramonski avatar ramonski commented on June 25, 2024

Hi @erikking,
Can you share your ID Server configuration?
Thanks

from senaite.core.

erikking avatar erikking commented on June 25, 2024

Thanks for you response @ramonski ,

image

I used same ID server config for different version.

And for version 2.4.0 +, the ID server values referencesample-ECS always = 1 after add reference sample in worksheet.

from senaite.core.

ramonski avatar ramonski commented on June 25, 2024

Your split length must be 2, then it should work.

from senaite.core.

ramonski avatar ramonski commented on June 25, 2024

Ah, apologies, I was looking at the generated ID ECS-001-001 with the two dashes.
We will try to reproduce this issue according to your description to see what is going on there.
Thanks.

from senaite.core.

erikking avatar erikking commented on June 25, 2024

Thanks a lot for your quick response. My ultimate goal is to import lab result file for worksheet with reference sample. For version 2.3.0, I can use reference sample ID ECS-001-007 with lab value for worksheet WS-020 in imported csv file for the example above, then importing works well and the reference sample lab value will show in worksheet page, but when I upgrade to 2.4.0+, I cannot find a way to import reference sample lab value.

from senaite.core.

erikking avatar erikking commented on June 25, 2024

Hi @ramonski
I did further investigation in source code about the the issue, I found ReferenceAnalysesGroupID do not change when add new reference control in worksheet. And a potential cause may be related ReferenceAnalysesGroupID generation function nextRefAnalysesGroupID in worksheet.
Could you help to check with that?

from senaite.core.

erikking avatar erikking commented on June 25, 2024

Hi @ramonski
I thought I figured it out, there may two cause

  • in line 435 ids = [int(i.split(prefix)[1]) for i in ids if i and rr.match(i)] the ids always return emtpy
  • in line 415 ref_analysis.reindexObject(idxs=["getWorksheetUID", "getAnalyst"]) need add getReferenceAnalysesGroupID to build the index because nextRefAnalysesGroupID function call the index to get distinct count of reference analyses group

Hope it helps.

from senaite.core.

erikking avatar erikking commented on June 25, 2024

And also the ReferenceAnalysesGroupID is same for duplication as well in worksheet

from senaite.core.

ramonski avatar ramonski commented on June 25, 2024

Thanks @erikking for pointing out the code!
We will check this as soon as possible to find which fix is needed to make this work properly.
Best regards, Ramon

from senaite.core.

ramonski avatar ramonski commented on June 25, 2024

Fixed in #2388

from senaite.core.

erikking avatar erikking commented on June 25, 2024

Very nice to hear it got fixed. 👍

from senaite.core.

xispa avatar xispa commented on June 25, 2024

Please @erikking close this issue after you double check. Thanks

from senaite.core.

erikking avatar erikking commented on June 25, 2024

Sure, sorry for the late close.

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.