Skip to content

fix(government_us): amendment text viewer opens on an amendment that has text - #7850

Open
artcashin wants to merge 1 commit into
openbq-org:developfrom
artcashin:fix/congress-amendment-text-default
Open

artcashin wants to merge 1 commit into
openbq-org:developfrom
artcashin:fix/congress-amendment-text-default

Conversation

@artcashin

Copy link
Copy Markdown
Contributor

Problem

The Congressional Amendment Viewer widget opens empty. Its default amendment is 119-hamdt-2, and House amendments carry no published text, so the file list for it has nothing to show.

Change

congress/congress_router.py: the widget's default (and the example in its description) is 119-samdt-2, a Senate amendment with text. Two strings.

Tests

  • New test_amendment_text_viewer_opens_on_an_amendment_with_text in test_widget_invariants.py, reading the built widget. It fails on develop.
  • openbb_platform/providers/government_us/tests: 3,261 passed (Python 3.12).

🤖 Generated with Claude Code

…has text

House amendments carry no published text, so the default 119-hamdt-2 opened an empty viewer. The default is now 119-samdt-2.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant