Repository navigation
easy.list_representatives: a dataflow's countries as a table - #12
Merged
Merged
Conversation
One row per representative with the country code and name joined from the provider listing (one lookup per provider group, then per stray provider id). Lead reporter emails are personal data, so they are left out unless include_contacts=True. Checked live read-only on a sandbox dataflow with one representative (Bearer). Also in easy.guide(), the glossary, the representatives caveat and the changelog.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
easy.list_representatives(client, dataflow_id, *, include_contacts=False).representative_id,provider_id,code,label,lead_reporters(count),has_datasets,receipt_downloaded,receipt_outdated,restrict_from_public.data_providers(group)call per provider group, thendata_provider(id)for any provider not in its group's list.include_contacts=True, which adds alead_reporter_emailslist column.Also:
easy.guide()line, glossary entry, updated live-tested note onrepresentative.representatives, regenerated reference docs, CHANGELOG (Unreleased).Testing: 5 new mocked tests (full suite 521 passed, ruff and mypy clean). Checked live, read-only, with a Bearer token on a sandbox dataflow that has one representative: correct country, lead reporter count 1, no email in the default table, one address with
include_contacts=True.