-
Notifications
You must be signed in to change notification settings - Fork 5
serverless: add support for pptx export #353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #353 +/- ##
==========================================
- Coverage 80.53% 80.43% -0.11%
==========================================
Files 25 25
Lines 7163 7190 +27
Branches 1347 1351 +4
==========================================
+ Hits 5769 5783 +14
- Misses 976 989 +13
Partials 418 418 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for exporting reports to PowerPoint (PPTX) format in the serverless dynamic reporting system. The implementation includes both template-level and ADR-level rendering methods for PPTX generation, along with comprehensive test coverage and documentation updates.
Key changes:
- Adds
render_pptx()
method toPPTXLayout
template class for direct PPTX rendering - Introduces
render_report_as_pptx()
method to the ADR singleton for convenient PPTX export - Updates dependency specification for python-pptx to ensure compatibility
Reviewed Changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
src/ansys/dynamicreporting/core/serverless/template.py | Adds render_pptx() method to PPTXLayout class and improves HTML rendering logic |
src/ansys/dynamicreporting/core/serverless/adr.py | Implements render_report_as_pptx() method and adds validation for template loading |
tests/serverless/test_adr.py | Adds comprehensive test coverage for PPTX rendering functionality |
tests/serverless/test_template.py | Updates test variable names and enables previously disabled test |
pyproject.toml | Pins python-pptx dependency to specific version for compatibility |
doc/source/serverless/templates.rst | Documents PPTX rendering capabilities and usage examples |
doc/source/serverless/instantiation.rst | Adds note about resource cleanup best practices |
Closes #326