-
Notifications
You must be signed in to change notification settings - Fork 26
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
Observations of Names #2499
Comments
"other taxa, this taxon proposed (2)" is wrong even without adding the synonym since clicking on that link shows no observation. "any taxon, this name proposed (4)" is also wrong since clicking on it only shows 2 observations. |
The issue lies in a discrepancy between
It's not yet clear which method truly gets the correct results, only that they do not agree. I've just added explanatory notes to the |
Here is what's going on for each link for Lyomyces juniperi (62566). First is the count given by this name (2) this taxon, other names (2) this taxon, any name (4) other taxa, this taxon proposed (0) any taxon, this name proposed (2) subtaxa (525509) |
In the example given for Name 62566, in my db snapshot, the query seems to be in sync with the subset methods in I went back in blame on GitHub before my entire Query refactor, and I do not seem to have altered any of the relevant Query code in I did a few hours debugging last night. The query that returns the wrong results is this one, in @children_query = create_query(:Name,
names: @name.id,
include_immediate_subtaxa: true,
exclude_original_names: true) Seems the params are correctly registered by Query. It would be very surprising if they weren't! @params={:names=>["62566"], :include_immediate_subtaxa=>true, :exclude_original_names=>true} But that query generates the following SQL - an unfiltered index of all names:
I checked out I suspect it's in @JoeCohen Jason thinks you may have added the |
|
Thanks @JoeCohen. I may be able to handle the subtaxa thing, then. If you could write a failing test that reproduces the error you first described in this issue, it would help figure out whether this is some kind of caching issue (which would only show up in a system test) or a deeper issue with Query. |
I'll try writing a test this evening (probably after 7pm)
…On Fri, Jan 17, 2025 at 4:15 PM andrew nimmo ***@***.***> wrote:
Thanks @JoeCohen <https://github.com/JoeCohen>. I may be able to handle
the subtaxa thing, then.
If you could write a failing test that reproduces the error you first
described in this issue, it would help figure out whether this is some kind
of caching issue (which would only show up in a system test) or a deeper
issue with Query.
—
Reply to this email directly, view it on GitHub
<#2499 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAALDFEA327CYP2CP5FTWLD2LGMKRAVCNFSM6AAAAABQ36WO4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJZGQYDENJUG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Upon review:
|
See my Comment here
<#2499 (comment)>
…On Fri, Jan 17, 2025 at 4:40 PM Joseph Cohen ***@***.***> wrote:
I'll try writing a test this evening (probably after 7pm)
On Fri, Jan 17, 2025 at 4:15 PM andrew nimmo ***@***.***>
wrote:
> Thanks @JoeCohen <https://github.com/JoeCohen>. I may be able to handle
> the subtaxa thing, then.
>
> If you could write a failing test that reproduces the error you first
> described in this issue, it would help figure out whether this is some kind
> of caching issue (which would only show up in a system test) or a deeper
> issue with Query.
>
> —
> Reply to this email directly, view it on GitHub
> <#2499 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAALDFEA327CYP2CP5FTWLD2LGMKRAVCNFSM6AAAAABQ36WO4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJZGQYDENJUG4>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
The displayed count for at least the following are broken:
To replicate:
Result includes:
The text was updated successfully, but these errors were encountered: