Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[installinator] convert artifact/progress API to a trait #6074

Conversation

sunshowers
Copy link
Contributor

To retain consistency with all of the other APIs, I've changed the name to just
installinator-api. artifact was the case at first but the same API is now
also used for progress reporting, so it's no longer quite accurate.

We had this indirection going on that's no longer necessary. We also don't need
to have the installinator-artifactd binary that generated the OpenAPI document,
since the manager takes care of all of that.

Created using spr 1.3.6-beta.1
/// Convert this status to an HTTP result.
///
/// Intended to be called by `report_progress` implementations.
pub fn to_http_result(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could have turned this logic into living on the trait, but in this case that extra work seems unnecessary.

Copy link
Contributor

@andrewjstone andrewjstone left a comment

Choose a reason for hiding this comment

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

Looks great!

Created using spr 1.3.6-beta.1
@sunshowers sunshowers enabled auto-merge (squash) July 15, 2024 19:10
@sunshowers sunshowers merged commit 413620a into main Jul 15, 2024
22 checks passed
@sunshowers sunshowers deleted the sunshowers/spr/installinator-convert-artifactprogress-api-to-a-trait branch July 15, 2024 20:13
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