Add bidmodifier operating system type flag (#254) - #310
Conversation
|
Claude finished @axisrow's task in 2m 38s —— View job Review
Verdict: LGTM — small, surgical, WSDL-correctCorrectness
Minor nits (non-blocking)
Tests
Nothing blocking. Clean implementation, WSDL-aligned payload, parity gate and audit kept in sync. |
There was a problem hiding this comment.
Pull request overview
This PR extends the bidmodifiers add CLI command to support the optional WSDL fields MobileAdjustment.OperatingSystemType and TabletAdjustment.OperatingSystemType by introducing a typed --operating-system-type flag, and updates the WSDL parity/audit artifacts and documentation accordingly.
Changes:
- Added
--operating-system-type (IOS|ANDROID)support forbidmodifiers addwhen--typeisMOBILE_ADJUSTMENTorTABLET_ADJUSTMENT, emitting the nestedOperatingSystemTypefield. - Added dry-run tests and parity-gate mappings to prevent silent data loss for these optional WSDL fields.
- Updated the optional-field audit classification and README usage examples.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| direct_cli/commands/bidmodifiers.py | Adds the new --operating-system-type flag, validates compatibility by modifier type, and emits OperatingSystemType in the nested adjustment object. |
| tests/test_dry_run.py | Adds dry-run coverage for mobile/tablet OS type emission and validates incompatible-flag rejection for non-mobile/tablet types. |
| tests/test_wsdl_parity_gate.py | Registers the new flag as the CLI option covering the corresponding optional WSDL paths. |
| tests/WSDL_OPTIONAL_FIELD_AUDIT.md | Moves the two audited OS type rows from missing_followup to supported and updates summary counts. |
| README.md | Adds a one-line example using --operating-system-type for bidmodifiers add. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
Official docs checked: https://yandex.ru/dev/direct/doc/en/bidmodifiers/add
Verification
Closes #254