feat(agencyclients): expose five nested *FieldNames on agencyclients get#419
Merged
Conversation
Add `--contract-field-names`, `--contragent-field-names`, `--contragent-tin-info-field-names`, `--organization-field-names`, and `--tin-info-field-names` to `direct agencyclients get` for the five nested WSDL `*FieldNames` request parameters declared by `AgencyClientsGetRequest` (`ContractInfoFieldEnum`, `ContragentInfoFieldEnum`, `TinInfoFieldEnum`, `OrgInfoFieldEnum`, `TinInfoFieldEnum`). Mirrors PR #418 (clients) which exposes the exact same five enums on the sibling `clients get` request. Also add `--dry-run` for parity with every other read-path command, and the matching rationale in DRY_RUN_PAYLOAD_EXCLUSIONS. Each flag parses CSV via `parse_csv_strings`, rejects empty input with `click.UsageError`, and only injects the WSDL key when non-empty. The five options share one selector loop. Removes the corresponding rows from `NESTED_FIELDNAMES_EXCLUSIONS` so `test_every_nested_fieldnames_param_has_cli_option` enforces all five flags. Adds parametrized dry-run tests for payload, default-omission, `--help` visibility, and empty-CSV rejection. Closes #407. Co-Authored-By: Claude Opus 4.7 <[email protected]>
Owner
Author
|
@claude review. Focus on critical issues: bugs, security vulnerabilities, logical errors, data loss risks, performance problems. Do NOT nitpick style, naming conventions, minor formatting, or subjective preferences — only flag issues that could break functionality or cause real harm in production. |
|
Claude finished @axisrow's task in 2m 33s —— View job Claude Code Review
No critical issues found. The five flags map 1:1 to the WSDL elements, the What I verified
Minor observations (non-blocking)
LGTM from a correctness/safety standpoint. |
axisrow
added a commit
that referenced
this pull request
May 28, 2026
axisrow
added a commit
that referenced
this pull request
May 28, 2026
Resolve conflicts with #415 #416 #417 #418 #419 #420: keep all six previously-merged CHANGELOG entries (feeds/keywords/creatives/clients/ agencyclients/adgroups) and place the campaigns BREAKING CHANGES block at the end of Unreleased. Drop the already-removed NESTED_FIELDNAMES_EXCLUSIONS rows. Update the surviving legacy `-fields` test fixtures to the new `-field-names` form, while keeping one explicit rejection test for `--text-campaign-fields` (the old name).
axisrow
added a commit
that referenced
this pull request
May 28, 2026
Resolve conflicts with #415 #416 #417 #418 #419 #420 #421: keep all six previously-merged CHANGELOG entries (feeds/keywords/creatives/clients/ agencyclients/adgroups), the campaigns BREAKING CHANGES block, and add the bidmodifiers entry as a separate 'Additional features' block. Drop already-removed NESTED_FIELDNAMES_EXCLUSIONS rows. Append bidmodifiers tests after the canonical campaigns block in test_dry_run.py.
This was referenced May 28, 2026
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.
Summary
--*-field-namesflags todirect agencyclients getfor the nested WSDL*FieldNamesparameters declared byAgencyClientsGetRequest:--contract-field-names(ContractInfoFieldEnum)--contragent-field-names(ContragentInfoFieldEnum)--contragent-tin-info-field-names(TinInfoFieldEnum)--organization-field-names(OrgInfoFieldEnum)--tin-info-field-names(TinInfoFieldEnum)--dry-runfor parity with every other read-path command (matching rationale added toDRY_RUN_PAYLOAD_EXCLUSIONS).AgencyClientsGetRequest WSDL.NESTED_FIELDNAMES_EXCLUSIONS.Closes #407. Fifth PR in Wave 2 milestone 0.3.14.
Test plan
pytest tests/test_api_coverage.py::test_every_nested_fieldnames_param_has_cli_option— passes after row removal.pytest tests/test_dry_run.py -k agencyclients_get— 8 new tests pass.pytest tests/test_api_coverage.py tests/test_cli.py tests/test_comprehensive.py— 247 tests pass.direct agencyclients get --help | grep field-names— 5 new flags + existing--fieldsvisible.🤖 Generated with Claude Code