Skip to content

Conversation

barraguda
Copy link
Contributor

WIP

Comment on lines 19 to 25
record download-request {
package-id: package-id,
download-from: option<string>, // note, might be too much implicit complexity,
// but: download-from received locally, is an instruction where to download-from
// and if received from remote, is an instruction where to send, where the "download-from" came from.
desired-version-hash: string,
}
Copy link
Contributor

Choose a reason for hiding this comment

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

refactor into remote-download-request with no download-from field, and local-download-request with download-from: string


record download-response {
success: bool,
error: option<string>,
Copy link
Contributor

Choose a reason for hiding this comment

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

change error into an enum type that lists all possible download errors, change download-response into a Result at the top level, so like Result<(), DownloadError>

Copy link
Contributor

Choose a reason for hiding this comment

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

make sure to delete this from final PR

@barraguda
Copy link
Contributor Author

merging into develop now,

I'll tweak the UI slightly with a separate PR later, hiding some of the more advanced features from users by default to not overload the pages.

@barraguda barraguda merged commit 5e26398 into develop Aug 16, 2024
@barraguda barraguda deleted the bp/app-api branch August 16, 2024 20:29
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