I noticed when reproducing the initial issue (#1276) that the Sort function also does not work for Board Correspondence.
To Reproduce
Steps to reproduce the behavior:
- Go to Search
- Filter by Board Correspondence
- Sort by date
- Nothing happens, bills are in seemingly random order
- Notice there aren't any dates in the "last action" section of the results
Expected behavior
Bill should sort by when they came out.
Additional context
Investigation revealed that there is often no last action for Board Correspondence, and the scraper doesn't appear to store any of the relavant dates (MatterIntroDate, MatterAgendaDate). The fix probably involves storing one of those dates somewhere on Bill objects and referencing it when there is no last action date, so there will need to be a PR on the scraper side and one on the frontend.
I noticed when reproducing the initial issue (#1276) that the Sort function also does not work for Board Correspondence.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Bill should sort by when they came out.
Additional context
Investigation revealed that there is often no last action for Board Correspondence, and the scraper doesn't appear to store any of the relavant dates (MatterIntroDate, MatterAgendaDate). The fix probably involves storing one of those dates somewhere on Bill objects and referencing it when there is no last action date, so there will need to be a PR on the scraper side and one on the frontend.