Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
✅ Files skipped from review due to trivial changes (3)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthroughAdds TermVariant model and sync/async services, exposes .variants(term_id) on TermService/AsyncTermService, updates E2E config with a variant id, and introduces unit and E2E tests covering variant lifecycle and publish/unpublish behavior. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
f763bef to
4fde121
Compare
|



This pull request introduces support for managing program term variants in the API client, including both synchronous and asynchronous services, comprehensive unit and end-to-end tests, and updates to test configurations. The changes add the ability to create, update, delete, retrieve, publish, and unpublish term variants, as well as to handle file uploads and online asset URLs.
Program Term Variant Service Implementation:
TermVariantmodel and bothTermVariantService(sync) andAsyncTermVariantService(async) classes inprograms_terms_variant.py, supporting CRUD, file upload/download, and publish/unpublish operations for program term variants.TermServiceandAsyncTermServicevia a.variants(term_id)method, enabling access to term variants from the term services. [1] [2]Testing Enhancements:
test_programs_terms_variant.py, verifying endpoints, methods, and model fields.Configuration and Integration:
e2e_config.test.jsonto include aprogram.terms.variant.idfor use in E2E tests.test_programs_terms.py, ensuring correct service instantiation and endpoint parameter handling. [1] [2]These changes collectively provide a robust foundation for managing program term variants through the API client, with thorough test coverage and seamless integration into existing service structures.
Closes MPT-20330