Skip to content

Comments

Backend-independent rendering#54

Merged
nickamzol merged 2 commits intomainfrom
backend-independent-rendering
Feb 23, 2026
Merged

Backend-independent rendering#54
nickamzol merged 2 commits intomainfrom
backend-independent-rendering

Conversation

@nickamzol
Copy link
Member

Rendering is no longer exclusive to the DIMSE backend and works across all backends now.

Existing implementations of WadoService::render have been changed to return an Unimplemented error, which causes the server to use the default render implementation as a fallback.
The default implementation retrieves instances using WadoService::retrieve and renders them on the fly using the existing rendering code. Future backends can override WadoService::render to bypass the default implementation and serve pre-rendered images or use a custom renderer.

@nickamzol nickamzol self-assigned this Feb 23, 2026
@nickamzol nickamzol added service:wado-rs This issue affects the WADO-RS service backend:dimse This issue affects the DIMSE backend backend:s3 This issues affects the S3 backend labels Feb 23, 2026
impl IntoResponse for RetrieveError {
fn into_response(self) -> Response {
match self {
RetrieveError::Backend { source } => {

Check warning

Code scanning / clippy

unnecessary structure name repetition Warning

unnecessary structure name repetition
impl IntoResponse for RetrieveError {
fn into_response(self) -> Response {
match self {
RetrieveError::Backend { source } => {

Check warning

Code scanning / clippy

unnecessary structure name repetition Warning

unnecessary structure name repetition
RetrieveError::Backend { source } => {
(StatusCode::INTERNAL_SERVER_ERROR, source.to_string()).into_response()
}
RetrieveError::Unimplemented => Response::builder()

Check warning

Code scanning / clippy

unnecessary structure name repetition Warning

unnecessary structure name repetition
RetrieveError::Backend { source } => {
(StatusCode::INTERNAL_SERVER_ERROR, source.to_string()).into_response()
}
RetrieveError::Unimplemented => Response::builder()

Check warning

Code scanning / clippy

unnecessary structure name repetition Warning

unnecessary structure name repetition
@nickamzol nickamzol merged commit a043c6b into main Feb 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend:dimse This issue affects the DIMSE backend backend:s3 This issues affects the S3 backend service:wado-rs This issue affects the WADO-RS service

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant