-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Clarify number of references on Authorities Page vs. Search Results #4865
Comments
Fun, so this issue is indeed worse than we thought. I didn't realize that we're repeating the same case many times in the list of authorities. That's not great. The easiest thing is to aggregate on the depth and have it say something like:
We don't need to say which filings do that on this page, so we can spare ourselves that nested layout you describe. Aggregating the depth should be easy. I can't think offhand how to get the filing count, but I'm guessing it's not too hard either and can be done at the query-level as well. If we do the above, I think that fixes the confusion issue too, since it says the number of documents and then when you click on it, that's how many show up in the search results. One last thing: We're introducing a second count to this page. Currently, it's ordered by the citation depth, but I think if we make this change, we should order by the number of filings citing a document instead. I guess a later feature could be to allow users to choose which ordering they prefer. |
lol sup, i'm gonna look at this soon |
@tactipus, we're planning to fix this in our coming sprint, which starts Monday. Are you still thinking about helping with this one? |
yeah. just wanted to know if elisa still wanted to do paired programming so it can be scheduled. i'm looking at the Docket class rn |
Up to you guys. I'll get out of the way. :) @elisa-a-v? |
Oh I'd love to! @tactipus if you're down, let me know when would be a good time for you and I can probably adjust my schedule :) |
@elisa-a-v I am good after 17:00 EST, usually. i can also do 13:00 to 16:00 EST |
@tactipus that's great, 13:00 EST generally works for me as well, but I think we should probably move this discussion over to email so we don't keep cluttering up the issue thread 😅 my address is [email protected]—feel free to reach out! |
Good morning, This comment is more a record than anything. Per our conversation yesterday, we will focus on views.py & map out the implementation @mlissner discussed. That way, we can avoid tinkering too much with the models.py. The solution is to map out the references using an array or a query set IIRC. It was all @elisa-a-v's idea, I just took notes ;p async def docket_authorities(
request: HttpRequest,
docket_id: int,
slug: str,
) -> HttpResponse:
docket, context = await core_docket_data(request, docket_id)
if not await docket.ahas_authorities():
raise Http404("No authorities data for this docket at this time")
context.update(
{
# Needed to show/hide parties tab.
"parties": await docket.parties.aexists(),
"docket_entries": await docket.docket_entries.aexists(),
"authorities": docket.authorities_with_data,
}
)
return TemplateResponse(request, "docket_authorities.html", context) |
@mlissner I did notice a small thing when looking through the <a href="{{ authority.cited_opinion.cluster.get_absolute_url }}{% querystring %}" {% if authority.blocked %}rel="nofollow" {% endif %}> |
I just emailed @elisa-a-v about this. To recap that email, I suggested that we use |
That's certainly possible. The idea here is to tell crawlers not to waste their time crawling pages that we already know are blocked. Google and other crawlers give you a budget of links that they'll follow (called the "Crawl Budget"), so it's important not to send them to pages they can't index anyway. I think you can get all the information you need from the queryset with something like this:
That returns objects like:
And if you iterate over the entire thing you get results like:
Does this work as a solution (if you pick the fields carefully, do the prefetches, etc)? |
I understand, well from what I saw I don't think the
Yes that makes a lot of sense to me! |
Noticed after doing #4134
On the “Authorities” page for a given docket, we display the references to opinions in the docket's documents. However, each "authority" in the list is not actually an opinion, but an element of a
Docket
'sauthorities
:This means an opinion cited by multiple documents in the same docket will be listed multiple times, like the authorities in this docket. Notice
Norman v. United States, 429 F.3d 1081 (Fed. Cir. 2005)
being listed 14 times, where all links point to the same search which yields 14 docket entries.This also means the counts are confusing. Each "depth" represents only the number of times the opinion is cited in one citing document, not the total number of references across all documents in the docket. We could:
Make the counts less confusing by making the authorities list include the citing document and changing the text to something like
5 references to <CITED_OPINION> in <CITING_DOC>
, with a link to the citing doc.Group authorities by opinion, then aggregate the depth. This way we would get the summary of all references to a given opinion in a given docket, instead of having the same opinion repeated several times. This does sound like it could be a lot more work, but potentially more informative if we could also include a sub-list of all citing docs with their links.
So instead of:
It would be:
Update the search results to display the depth of treatment when a cites query is made, so that each result shown says something like, "22 references to case XYZ".
Whatever the option, we should make sure that the opinions' authorities page doesn't get broken since
authorities_list.html
is used in both docket and opinion authorities, which are notOpinionsCitedByRECAPDocument
butOpinionsCited
so we don't always have the same attributes available.The text was updated successfully, but these errors were encountered: