Merged
Conversation
Add opt-in support for 303 See Other redirects on completed async jobs, following the SQL on FHIR unify-async specification. When enabled via @AsyncSupported(redirectOnComplete = true), completed jobs return a 303 redirect to the new $job-result endpoint instead of inline results. Changes: - Add redirectOnComplete attribute to @AsyncSupported annotation - Add redirectOnComplete field to Job class - Update AsyncAspect to capture redirect flag from annotation - Update JobProvider to return 303 with Location header when enabled - Create new JobResultProvider for $job-result endpoint - Enable redirect pattern on $viewdefinition-export operation Bulk export operations continue using the legacy 200 OK inline pattern.
Adds tests for error handling, job cancellation, and edge cases in JobProvider and JobResultProvider. Improves branch coverage from 36% to 50% for JobProvider and from 72% to 81% for JobResultProvider.
Build native JSON first in ExportResponse, avoiding lossy Parameters-to-JSON conversion. The manifest now always includes output and error as arrays, with native JSON attached via userData for direct extraction by the interceptor. Invert default in ParametersToJsonInterceptor to return plain JSON unless client explicitly requests application/fhir+json.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.