Skip to content

Explore: add case description, timestamp and model metadata, and a whoami endpoint - #8

Merged
magnesj merged 7 commits into
mainfrom
feature/case-metadata
Dec 3, 2026
Merged

magnesj merged 7 commits into
mainfrom
feature/case-metadata

Conversation

@magnesj

@magnesj magnesj commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Adds metadata needed by the ResInsight SUMO ensemble management dialog (magnesj/ResInsight#1206, PR magnesj/ResInsight#1207).

  • Explore: include case description, timestamp and model metadata in the case inventory
  • New whoami endpoint, used for the "Only my cases" filter
  • Tests in tests/test_explore.py

@magnesj
magnesj requested a review from jorgenherje December 1, 2026 09:43

@jorgenherje jorgenherje left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Some minor comments from my side.

We should ensure that metadata for a case is accesses correct, and that we clarify what type of details we pass on to users.

@jorgenherje

Copy link
Copy Markdown
Collaborator

…estamp

The timestamp is the newest _sumo.timestamp of all documents of the case, including the case metadata and excluding aggregated documents. The creation time is no longer used.
Document the case timestamp as the latest change, move user_name_from_token to routers/explore/_utils.py and remove the unused ensemble_names field from CaseInfo.
@magnesj
magnesj requested a review from jorgenherje December 2, 2026 06:33
Use latest_date consistently from the Sumo access layer to the /cases response.
Count the distinct ensemble names per case in the same aggregation that finds the latest date.
@magnesj
magnesj merged commit 3959440 into main Dec 3, 2026
2 checks passed
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