Repository navigation
Conversation
…o search GovInfo's link route for the table of reports answers 500, which read as an empty list. Without a resultSet the reports now come from the keyless search; it carries no deadline dates, so is_on_time is optional. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
GovInfo no longer serves /link/cmr/tableOfReports (500 "No static resource"), while its other link routes still answer. The link request, parse_cmr and the fallback are replaced by one path: fetch_cmr reads the keyless search. The search carries no submission date, deadline or MODS link, so date_submitted_to_congress, date_required, is_on_time and mods_link are removed from CongressMandatedReportsData instead of staying always empty. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
CongressMandatedReportsreturns nothing. GovInfo's link route for the table of reports answers HTTP 500 withfetch_cmrreads any response without aresultSetas an empty list, so the command reports no data rather than an error. Seen 2026-11-17 and 2026-11-18. GovInfo's other link routes (/link/bills/...,/link/plaw/...) answer normally, so the route itself is gone, not the service.Change
One path:
fetch_cmrreads the keyless GovInfo search (collection:CMR AND congress:N) through the existingwssearchhelper, newest first. Each hit maps to package id, title, submitting agency and publication date (both parsed from the hit's summary line), and the PDF and details links. The link request andparse_cmrare removed.The search carries no submission date, statutory deadline or MODS link.
date_submitted_to_congress,date_required,is_on_timeandmods_linkare therefore removed fromCongressMandatedReportsData, since nothing can fill them.The search pages by index, so
offsetis rounded down to a whole page oflimit.Behaviour change
The four fields above are no longer in the output. Before this PR the command returned no rows at all.
Tests
test_fetch_cmrnow feeds a search hit in GovInfo's current shape and checks the query, the page index and the full record.test_fetch_cmr_search_item_without_agency_or_datecovers a hit with an empty summary line. Both fail ondevelop.test_parse_cmris removed with the function.openbb_platform/providers/government_us/tests: 3,259 passed (Python 3.12).congress=119, limit=3returned three reports with agency, date and title.History
The first commit kept the link request and used the search as a fallback. The second makes the search the only path.
🤖 Generated with Claude Code