Skip to content

BUG: Update to new SMDA endpoint#329

Merged
GibranAlfa merged 1 commit intoequinor:mainfrom
GibranAlfa:fix-smda
Mar 24, 2026
Merged

BUG: Update to new SMDA endpoint#329
GibranAlfa merged 1 commit intoequinor:mainfrom
GibranAlfa:fix-smda

Conversation

@GibranAlfa
Copy link
Copy Markdown
Collaborator

@GibranAlfa GibranAlfa commented Mar 23, 2026

Resolves #328

Adapt to new SMDA health endpoint (ref here) and their new response model. Have tried testing this from GUI and it works, but maybe you guys can check as well.

The new SMDA backend has:

  • New health endpoint /availability instead of actuator/health
  • No projected_coordinate_system attribute for the _projection in /discoveries/search endpoint
  • No identifier attribute for the _projection in /strat-column-areas/search endpoint

Checklist

  • Tests added (if not, comment why)
  • Test coverage equal or up from main (run pytest with --cov=src/ --cov-report term-missing)
  • If not squash merging, every commit passes tests
  • Appropriate commit prefix and precise commit message used
  • All debug prints and unnecessary comments removed
  • Docstrings are correct and updated
  • Documentation is updated, if necessary
  • Latest main rebased/merged into branch
  • Added comments on this PR where appropriate to help reviewers
  • Moved issue status on project board
  • Checked the boxes in this checklist ✅

discovery_res = await self._smda.discovery(
field_identifiers,
columns=[
"field_identifier",
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.

Why are these columns removed from the _get_discoveries() method? Is this related to the SMDA "/health" endpoint in any way?

@GibranAlfa
Copy link
Copy Markdown
Collaborator Author

I have updated the issue description and PR description

Copy link
Copy Markdown
Collaborator

@slangeveld slangeveld left a comment

Choose a reason for hiding this comment

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

Looks good now 👍
Health endpoint tested OK using the new availability endpoint in SMDA.

@GibranAlfa GibranAlfa merged commit 8b29285 into equinor:main Mar 24, 2026
5 checks passed
@GibranAlfa GibranAlfa deleted the fix-smda branch March 24, 2026 11:51
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.

Adapt to the new SMDA backend

2 participants