Skip to content

feat(gooddata-sdk): [AUTO] add grand_totals_position to ExportSettings#1424

Closed
yenkins-admin wants to merge 1 commit intomasterfrom
feature/auto-P011-grand-total-position-export
Closed

feat(gooddata-sdk): [AUTO] add grand_totals_position to ExportSettings#1424
yenkins-admin wants to merge 1 commit intomasterfrom
feature/auto-P011-grand-total-position-export

Conversation

@yenkins-admin
Copy link
Copy Markdown
Contributor

Add grand_totals_position field to ExportSettings to support controlling grand total placement in PDF exports from Analytical Designer.

Problem: P011 | Workflow: https://github.com/gooddata/gdc-nas/actions/runs/23137028021

What changed in gdc-nas

  • Commit 36a823e: feat(tabular-exporter): respect grand-total-possition in PDFs in AD
    • Added grandTotalsPosition (enum: pinnedBottom, pinnedTop, bottom, top) to TabularExportRequest.Settings in three OpenAPI specs (automation, export-controller, metadata-api)
    • Added field 16 (GrandTotalsPosition) to TabularExportRequest.Settings in export.proto
    • Updated gRPC client ExportDefinition.kt with GrandTotalsPosition.toProto() mapping
    • Updated TabularExportService.kt and ResultMetadataBuilder.kt to pass the new field through
    • Updated Python tabular-exporter (csv_exporter.py, html_exporter.py, xlsx_exporter.py, result_table.py, request_handler.py) to honor grand_totals_position

What was implemented in SDK

  • Added GrandTotalsPosition TypeAlias (Literal['pinnedBottom', 'pinnedTop', 'bottom', 'top']) to request.py
  • Added optional field grand_totals_position: GrandTotalsPosition | None = None to ExportSettings attrs class
  • Exported GrandTotalsPosition from gooddata_sdk/__init__.py for user-facing API
  • Added unit test test_export_settings_grand_totals_position verifying all four enum values and None

Files modified

  • packages/gooddata-sdk/src/gooddata_sdk/catalog/export/request.py
  • packages/gooddata-sdk/src/gooddata_sdk/__init__.py
  • packages/gooddata-sdk/tests/export/test_export_service.py

JIRA: PENDING (Jira ticket will be created after review)
Risk: Low

Added GrandTotalsPosition TypeAlias and grand_totals_position field to
ExportSettings to expose the new grandTotalsPosition API field introduced
in TabularExportRequest.Settings for controlling PDF grand total placement.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.38%. Comparing base (b95ca11) to head (de7aca0).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1424      +/-   ##
==========================================
+ Coverage   77.36%   77.38%   +0.02%     
==========================================
  Files         228      228              
  Lines       14775    14789      +14     
==========================================
+ Hits        11430    11444      +14     
  Misses       3345     3345              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hkad98 hkad98 closed this Mar 17, 2026
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.

2 participants