Skip to content

INS-1515#48

Merged
JoonLeeNIH merged 2 commits into3.3.0from
INS-1515
Feb 13, 2026
Merged

INS-1515#48
JoonLeeNIH merged 2 commits into3.3.0from
INS-1515

Conversation

@JoonLeeNIH
Copy link

Overview

Fix crash

Change Details (Specifics)

Crash happened if no source or highlight object came back from Opensearch. This PR makes sure the backend catches that.

Related Ticket(s)

https://tracker.nci.nih.gov/browse/INS-1515

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a backend crash in dataset search result processing when OpenSearch returns hits missing _source and/or highlight, by defensively skipping missing fields during mapping.

Changes:

  • Add guards when building content to handle missing _source keys.
  • Add guards when building highlight to handle missing highlight keys.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@huuaho huuaho left a comment

Choose a reason for hiding this comment

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

LGTM

@JoonLeeNIH JoonLeeNIH merged commit 3892946 into 3.3.0 Feb 13, 2026
6 of 7 checks passed
@JoonLeeNIH JoonLeeNIH deleted the INS-1515 branch February 13, 2026 18: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.

2 participants