Navigate between legislatures in Detail Page #153

Open
opened 2026-10-05 18:13:50 +00:00 by aniram · 0 comments
Owner

@aniram wrote in #143 (comment):

This will probably solve problems like this one

This problem here was not purely related to the fact that this deputy was from a different legislature but also due to the detail page using the SUM function which returns NULL in their case while the expected return type was float64.
I've set it to a float64 pointer for now but the best solution is for the detail page to be about the member's last legislature and MAYBE also show other legislatures if possible, currently it fetches data from the current legislature only except for the projects section since its data comes from across all legislatures.
This endpoint gives us all legislatures the deputy was elected for: https://dadosabertos.camara.leg.br/api/v2/deputados/<MEMBER_ID>/historico

We could also hide certain parts of the detail page according to the legislature.

Originally posted by @aniram in #143 (comment)

@aniram wrote in https://git.marinabsa.com/overdrives/chambersbr/issues/143#issuecomment-1204: > This will probably solve problems like this one This problem here was not purely related to the fact that this deputy was from a different legislature but also due to the detail page using the SUM function which returns NULL in their case while the expected return type was float64. I've set it to a float64 pointer for now **but the best solution is for the detail page to be about the member's last legislature and MAYBE also show other legislatures if possible, currently it fetches data from the current legislature only except for the projects section since its data comes from across all legislatures.** This endpoint gives us all legislatures the deputy was elected for: `https://dadosabertos.camara.leg.br/api/v2/deputados/<MEMBER_ID>/historico` We could also hide certain parts of the detail page according to the legislature. _Originally posted by @aniram in https://git.marinabsa.com/overdrives/chambersbr/issues/143#issuecomment-1216_
aniram added this to the 2027.1 milestone 2026-10-06 11:51:50 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
overdrives/chambersbr#153
No description provided.