Skip to content

dataflow docstrings: cross-check against the current backend source - #13

Merged
nikolaos-paximadakis-eea merged 1 commit into
mainfrom
docs/dataflow-cross-check
Nov 21, 2026
Merged

nikolaos-paximadakis-eea merged 1 commit into
mainfrom
docs/dataflow-cross-check

Conversation

@nikolaos-paximadakis-eea

Copy link
Copy Markdown
Collaborator

Re-read the dataflow resource's routes against the backend branch closest to live. Behaviour matches the client; this PR fixes and extends the docstrings only.

  • dataflow_datasets: an unknown dataflow id answers 500 (ServerError). The access check fails before the lookup, as seen live. The docstring previously said this case gave an empty 200 / None. It now also lists the admin and national coordinator access, and says a requester sees all representatives.
  • dataflows: documents the filters keys the backend reads, including role, which keeps only dataflows where the user holds that role.
  • delete_dataflow: a Business dataflow needs an admin (403 otherwise).
  • New mocked test for the unknown-id 500; regenerated docs/reference/dataflow.md; CHANGELOG entry.

ruff, mypy and pytest (522) pass locally.

Re-read the dataflow routes on the backend branch closest to live. The
listings, paging, create and delete behave as before. Corrections:
dataflow_datasets now says an unknown dataflow id answers 500 (the
access check fails first, seen live), not an empty 200, and lists the
admin and national coordinator access; dataflows lists the filters
keys the backend reads; delete_dataflow notes that a Business dataflow
needs an admin. Adds a mocked test for the 500 and regenerates the
reference page.
@nikolaos-paximadakis-eea
nikolaos-paximadakis-eea merged commit 36cb77f into main Nov 21, 2026
6 checks passed
@nikolaos-paximadakis-eea
nikolaos-paximadakis-eea deleted the docs/dataflow-cross-check branch November 21, 2026 23:13
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