[Analyze 11] Add pa and cdm config metadata to hana session variables#2840
Open
brandantck wants to merge 3 commits into
Open
[Analyze 11] Add pa and cdm config metadata to hana session variables#2840brandantck wants to merge 3 commits into
brandantck wants to merge 3 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds dataset-level PA/CDM configuration metadata retrieval and propagates it into SAP HANA session variables, so downstream analytics execution can access these values via SESSION_CONTEXT.
Changes:
- Extend
IMRIRequestwith optional PA/CDM config ID/version fields and introduce a typedPABackendConfigResponse. - Fetch PA backend config metadata from Portal Server during credential middleware execution and attach it to the request.
- Inject PA/CDM config metadata into HANA connection session variables when establishing DB connections.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| plugins/functions/analytics-svc/src/types.ts | Adds request fields for PA/CDM metadata and defines the PA backend config response type. |
| plugins/functions/analytics-svc/src/middleware/StudyDbCredential.ts | Fetches PA/CDM config metadata from Portal Server and attaches it to the request for later use. |
| plugins/functions/analytics-svc/src/main.ts | Passes PA/CDM metadata into DB connection setup and sets corresponding HANA SESSIONVARIABLE:* values. |
| plugins/functions/analytics-svc/src/api/PortalServerAPI.ts | Adds the Portal API call for PA backend config and refactors some request builders. |
maggie-li-yd
approved these changes
Jul 2, 2026
…ig_to_hana_session_variables
…ig_to_hana_session_variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PA and CDM config metadata now appears in hana session context.

Merge Checklist
Please cross check this list if additions / modifications needs to be done on top of your core changes and tick them off. Reviewer can as well glance through and help the developer if something is missed out.
developbranch)