Skip to content

Add status="lent" to staff() - #2

Merged
milkway merged 1 commit into
mainfrom
staff-lent-status
Sep 29, 2026
Merged

milkway merged 1 commit into
mainfrom
staff-lent-status

Conversation

@milkway

@milkway milkway commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Mirrors StrategicProjects/alepe (R, D22).

/servidores documents a fourth vinculo value, efetivo-cedido: the Assembly's own permanent staff lent to other bodies (6 people on 2026-09-29). They are published with VINCULO = "Efetivo", so only the server-side filter can single them out. staff() now accepts "lent" / "efetivo-cedido".

/cargos ignores the value and returns every status, so positions() raises ValueError instead of pretending to filter.

The R package's other bug (invalid status reported as a network failure) does not exist here: Python resolves the status before fetching and already raises ValueError.

42 tests pass, ruff clean. Verified live: staff(status="lent") returns 6 rows.

🤖 Generated with Claude Code

The /servidores endpoint accepts vinculo=efetivo-cedido: the Assembly's
own permanent staff lent to other bodies. They are published with
VINCULO "Efetivo", so only the server-side filter can single them out.
/cargos ignores the value and returns every status, so positions()
refuses it instead of pretending to filter. Mirrors the R package (D22).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@milkway
milkway merged commit 471834e into main Sep 29, 2026
9 checks passed
@milkway
milkway deleted the staff-lent-status branch September 29, 2026 22:26
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