feat(dpi_ng/consent): add Data Privacy Integration NextGen Consent service integration to sdk - #199
feat(dpi_ng/consent): add Data Privacy Integration NextGen Consent service integration to sdk#199Ashwith-N wants to merge 47 commits into
Conversation
…est auth option headings
…d expand operation details
…ar name in integration tests doc
…to resolve CodeQL alert
…y, and mutation headers
…client to dpi_ng base level
PR Review: #199 feat(dpi_ng/consent): add Data Privacy Integration NextGen Consent service integration to sdkAuthor: Ashwith-N Branch: A: Process & Compliance
B: Security & Sensitive Data
C: Code Quality
D: API & Design
E: Tests & Documentation
|
Conflicts resolved: - pyproject.toml: set version to 0.40.0 (one minor above upstream 0.39.0 for open PR) - tests/core/unit/telemetry/test_operation.py: update operation count to 249 (upstream adds BOOTSTRAP operation; fork retains 94 dpi_ng operations)
…ded runtime_context module
- pyproject.toml: version 0.44.0 (minor bump above upstream 0.43.0 for new dpi_ng module); keep python-odata (dpi_ng dep) and add cryptography (upstream added) - test_operation.py: count 252 (249 + 3 new output_management ops from upstream) - test_module.py: count 16 (upstream added OUTPUT_MANAGEMENT module)
|
Could you add |
|
Question: Does it supports multi-tenancy? I believe that regardless of the answer we could add a section about it to the |
|
We believe that, for now, this contribution shouldn't be on Core. Would you mind moving it? |
This has been addressed by adding the py.typed file.
The multi-tenancy aspects have been added in the user-guide.
We have moved the module outside of core. |
Description
To introduce the sap_cloud_sdk.core.dpi_ng.consent capability to the SAP Cloud SDK for Python. It provides a unified API for managing consents, purposes, templates, retention rules, and configuration reference data exposed by the DPI NextGen Consent Repository OData V4 service.
Key components included:
tests/core/unit/dpi_ngandtests/core/integration/dpi_ng/consentRelated Issue
No pre-existing issue - this is a new feature contribution.
Type of Change
Please check the relevant option:
How to Test
uv sync --all-extrasdocs/INTEGRATION_TESTS.mduv run pytest tests/dpi_ng/unit/ -vuv run pytest tests/dpi_ng/integration/consent/ -vChecklist
Before submitting your PR, please review and check the following:
Breaking Changes
If this PR introduces breaking changes, please describe:
None.
No migration required.
N/A
Additional Notes
This feature follows the existing SDK module structure described in CONTRIBUTING.md and aligns with the integration test setup documented in INTEGRATION_TESTS.md. It is intended as an additive capability and does not change existing public APIs.
AI-assisted code: The
logger.info("Invoked …")/logger.info("Exiting …")instrumentation lines throughout thedpi_ngmodule were written with the assistance of Claude (Anthropic). Disclosure per the SAP AI contribution guideline.Dependency note:
python-odata>=0.7.0was added as a runtime dependency. The package was checked against the OSV vulnerability database prior to inclusion - no known CVEs found as of the time of this PR.