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

[Bug]: Task - CSD: Save and New copies attribute to next CSD record #3910

Closed
AntWeb-org opened this issue Apr 5, 2024 · 12 comments
Closed
Assignees
Labels
bug An existing function is broken.

Comments

@AntWeb-org
Copy link

Steps to reproduce the bug

1. Entering a record into the CSD task
2. In the Attributes panel, I added data to the LifeStageSex field and the SpecimenNotes field.
3. Save and New copied over the "SpecimenNotes" data but not the LifeStageSex data.


...

Screenshot

SpecimenNotes field should be blank:

image

Expected behavior

No response

Additional Screenshots

Save and New should not copy over attributes or data attributes to the next CSD record

Environment

Production

Sandbox Used

No response

Version

v0.40.1

Browser Used

Chrome Version 123.0.6312.105

@AntWeb-org AntWeb-org added the bug An existing function is broken. label Apr 5, 2024
@jlpereira jlpereira self-assigned this Apr 5, 2024
@AntWeb-org
Copy link
Author

Sorry, but the custom attributes from the previous CSD records are still carrying over after Save and New in new CSD records. This is in version v0.40.2

@AntWeb-org
Copy link
Author

I will have to keep you posted. It happened one one carry over record but not the next one.

@AntWeb-org
Copy link
Author

Still holds true. When I added a new trip code namespace, identifier and verbatim collection code, I clicked Save and the custom attributes filled in with data from a previous trip code. This is still within the CSD if that helps. Thanks

@jlpereira
Copy link
Member

Hello. Could you provide the exact steps of everything(fill input, click button, etc) you do to replicate it? Because I can't replicate this on my environment, I will need more details

@jlpereira jlpereira reopened this Apr 11, 2024
@AntWeb-org
Copy link
Author

Entering a new CSD

  1. Namespace, identifier number, repository, preparation - Save
  2. OTU, determiner, determined date - Save
  3. Attributes – custom attributes: lifestagesex, specimennotes - Save
  4. Collecting Event: verbatim trip identifier, tripcode namespace, identifier
  5. Custom attributes: verbatimcollection code – Save
    This seems to be when those attributes fill in with the previous tripcode data
    Hope this helps. Let me know if you need more information.

@jlpereira
Copy link
Member

jlpereira commented Apr 11, 2024

Did you enter/load other collection object before replicate it? You did't get this problem from the first record, right?

I can replicate this but after edit/create/load another record. Could you confirm your issue doesn't happen on the first time you open the interface and create the first record?

@AntWeb-org
Copy link
Author

It did not autofill on the very first record CSD I entered.

Only if I am entering multiple CSD records where I am also entering new collecting events in the CSD record, the issue persists. But it is intermittent. I can figure out consistencies as to when it happens.

I am not loading or editing other CEs while entering another CSD.

@AntWeb-org
Copy link
Author

Just to clarify, I am first entering the trip codes and identifiers, clicking Save, then entering the rest of the collecting event data all from within the CSD. Perhaps that is what you mean by editing or modifying the CE.

@AntWeb-org
Copy link
Author

It happened on the following CSD record again after entering the new verbatim trip code, namespace, identifier and verbatimcollectioncode in the custom attributes fields after Save. Here is a screenshot of the new trip code saved but before entering the rest of the verbatim and parsed collecting event data. You can see the data autofilled from the previous trip code into the custom attributes fields in the second screen shot.

Screenshot 2024-04-11 075216 Screenshot 2024-04-11 075310

@jlpereira
Copy link
Member

@AntWeb-org Ok, now that I was able to replicate it, I fixed it. Tested a lot and it seems to be working well now. You will see it on the next update.

@AntWeb-org
Copy link
Author

Thanks José!

@jlpereira
Copy link
Member

@AntWeb-org just to let you know, a new version was released today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An existing function is broken.
Projects
None yet
Development

No branches or pull requests

2 participants