systeminit / si

The System Initiative software
https://systeminit.com
Apache License 2.0
1.59k stars 261 forks source link

chore: refactor the way we send a force change set response #4783

Closed zacharyhamm closed 4 weeks ago

zacharyhamm commented 1 month ago

Instead of constructing an axum Response by hand and adding the force_change_set_id header manually, this introduces a new response type for our sdf routes that handles the header automatically in its implementation of the IntoResponse trait: ForceChangeSetResponse. Use it anywhere you need to notify the frontend that the change set has changed.