Skip to content

Conversation

FaizaJibril
Copy link
Contributor

Added branchIds: Optional[Iterable[int]] = None parameter
Updated method signature and request data
Added tests for the new parameter
Resolved validation error when calling apply_pre_translation

…lation

- Added branchIds: Optional[Iterable[int]] = None parameter
- Updated method signature and request data
- Added comprehensive tests for the new parameter
- Maintains backward compatibility
- Resolves validation error when calling apply_pre_translation

Closes crowdin#211
- Added test for branchIds parameter handling
- Added edge case tests for empty lists and parameter combinations
- Improved test coverage from 47% to 98%
- Tests would have caught the missing branchIds bug
@FaizaJibril FaizaJibril changed the title Fix 211 add branchids parameter fix: 211 add branchids parameter Aug 26, 2025
@FaizaJibril FaizaJibril reopened this Aug 26, 2025
@andrii-bodnar andrii-bodnar linked an issue Aug 26, 2025 that may be closed by this pull request
@andrii-bodnar andrii-bodnar changed the title fix: 211 add branchids parameter feat: add branchIds parameter to apply_pre_translation Aug 26, 2025
@andrii-bodnar andrii-bodnar changed the title feat: add branchIds parameter to apply_pre_translation fix: add branchIds parameter to apply_pre_translation Aug 26, 2025
@andrii-bodnar
Copy link
Member

@FaizaJibril thank you for the contribution! The pipeline has failed, please take a look - https://github.com/crowdin/crowdin-api-client-python/actions/runs/17236411573/job/48908026609

- Fixed line length (E501) by breaking long import
- Removed trailing whitespace (W293)
- Fixed whitespace before parenthesis (E202)
- All flake8 checks now pass
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.

apply_pre_translations is missing a required argument
2 participants