Skip to content

Conversation

@NXXR
Copy link
Collaborator

@NXXR NXXR commented Sep 15, 2025

this adds an endpoint where a csv case data file can be uploaded.
It is then validated and forwarded to the rest of the memilio infrastructure.

Also adds IAM endpoints to the .env.template instead of hard-coding them.

remove leftover debug code, and linter fixes that don"t belong to this PR
@NXXR NXXR requested a review from Kanakanajm September 15, 2025 11:27
# Validation successful, upload to minio bucket
lha_id: str = request_state.realm
# Get lha display name
lha_name = next((realm['displayName'] for realm in get_realms() if realm['realm'] == lha_id), '')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The realm field is explicit enough because it contains the region name (e.g. lha-koeln). The id field consists of the actual UUID used in Keycloak instead. Is it really necessary to include the full name of the LHA?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm
I'm not sure.

I'll check with Mariama to figure out if the realm field is sufficient.

If they need the exact name they probably could look it up themselves from the api 🤔

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.

3 participants