Closed lparsons closed 10 months ago
@lparsons - Could you look in the log and append the output of this warning to the issue?:
f"WARNING: Failed search to display field {fmt} search conversion of query object for field=value: [{fld}='{val}']. No records found matching {mdl}."
@hepcat72 Sorry, it was there, but if formatted the comment poorly. Fixed it in the issue.
Thanks. Yeah, I had already reproduced it on the website. This search_basic
link reproduces the error:
https://tracebase-dev.princeton.edu/DataRepo/search_basic/Study/id/iexact/12/fcirc/
I suspect a dataformat
config issue. I should have it worked out soon.
Thanks. Yeah, I had already reproduced it on the website. This
search_basic
link reproduces the error:https://tracebase-dev.princeton.edu/DataRepo/search_basic/Study/id/iexact/12/fcirc/
I suspect a
dataformat
config issue. I should have it worked out soon.
Nice! Thanks Rob. Please fix it on the release_2.0.x
branch.
OK. No. I think this is a data issue. You were right. This is the root of the problem (I did this in the shell on tracebase-dev):
In [33]: FCirc.objects.filter(serum_sample__animal__studies__id__exact=12)
Out[33]: <QuerySet []>
It's an edge case.
My immediate guess (though I haven't looked) is that there is no FCirc data available for that study. Looking now.
And yes, that appears to be the case...
So my next question is... was there any accucor data loaded for that study? If so, were there serum samples included?
The error comes from the conversion of the Study ID to the study name via FCirc.serum_sample.animal.study
. If there are no serum sample, the ID to name conversion fails with that exception. So... This case where there are no serum sample records should be accounted for, because the error makes it seem like the study doesn't exist... which is true in the context of coming from the FCirc table.
Here is the study data: https://github.com/PrincetonUniversity/tracebase-rabinowitz-data/tree/main/tca_flux_healthy_tissues
Yes, and in that entire table, there are no serum samples. That's the edge case.
Merge both in the release and main branches
BUG DESCRIPTION
Problem
This might be a data issue, since I ran into it running this on
tracebase-dev
, but I figured I'd record it here now while I investigate.Steps to reproduce
Current behavior
Expected behavior
Expected all data to be exported to output directory.
Suggested Change
None provided
Comment
None
ISSUE OWNER SECTION
Assumptions
Limitations
Affected Components
Requirements
DESIGN
GUI Change description
None provided
Code Change Description
None provided
Tests