Skip to content

Conversation

@jakobpederson
Copy link
Collaborator

Summary

Fixes / Work for #6664

Changes proposed

Merge the two responses together for GetSubmissionListExpanded. Take the proxy response, and extract out the application byte data and inject that into a new mtom message with the simpler data added in too.

Context for reviewers

We want when people to hit the GetSubmissionListExpanded endpoint that they get a single response with data from both the proxy and the simpler db.

Validation steps

@jakobpederson jakobpederson self-assigned this Dec 29, 2025
@jakobpederson jakobpederson linked an issue Dec 29, 2025 that may be closed by this pull request
3 tasks
@jakobpederson jakobpederson requested a review from chouinar January 6, 2026 15:15
@jakobpederson jakobpederson requested a review from chouinar January 6, 2026 20:38
operation_method = getattr(
self, to_snake_case(self.operation_config.request_operation_name)
)
if self.operation_config.has_merge_list_response:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we still need this with how the approach was adjusted? I think a few of the file adjustments you made probably aren't needed anymore as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I took it out and it seems like it works fine, so I'll remove it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the has_merge_list_response param needed at all anymore? I don't think it is since that's now just built into the logic of making the response, I think you can remove all references of it / the config that was added.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My concern is

        if proxy_response.status_code != 500 and not self.operation_config.has_merge_list_response:
            return proxy_response

Because without that, the proxy_response would take priority and we'd never get to a merged response from what I can tell.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh wait, maybe you're right. I'm going to check.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've removed it. I don't think we need that 500 check since we've got the use_simpler on the config.

@jakobpederson jakobpederson requested a review from chouinar January 6, 2026 22:28
@jakobpederson jakobpederson merged commit 1a07309 into main Jan 7, 2026
3 checks passed
@jakobpederson jakobpederson deleted the jakobpederson/6664-merge-two-responses-from-getsubmissionlistexpanded branch January 7, 2026 21:20
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.

Merge the two responses together for GetSubmissionListExpanded

3 participants