Skip to content

Conversation

pcapriotti
Copy link
Contributor

@pcapriotti pcapriotti commented Dec 17, 2021

This PR implements the Cargohold federation API. There are only two endpoints:

  • get-asset, used to check if an asset exists
  • stream-asset, used to retrieve the asset contents.

The reason for having a separate get-asset RPC is that the federation API has no direct way of communicating that the asset does not exist, since non-success HTTP status codes are always interepreted as server errors by federator.

Tracked by https://wearezeta.atlassian.net/browse/FS-305.

Checklist

  • The PR Title explains the impact of the change.
  • The PR description provides context as to why the change should occur and what the code contributes to that effect. This could also be a link to a JIRA ticket or a Github issue, if there is one.
  • changelog.d contains the following bits of information (details):
    • A file with the changelog entry in one or more suitable sub-sections. The sub-sections are marked by directories inside changelog.d.

@pcapriotti pcapriotti changed the base branch from develop to cargohold-federated-api December 20, 2021 07:31
@supersven supersven force-pushed the pcapriotti/cargohold-remote-assets branch from 8d3ff09 to 669fd74 Compare December 20, 2021 09:16
@pcapriotti pcapriotti force-pushed the cargohold-federated-api branch from 900d2b1 to a810c76 Compare December 20, 2021 09:38
@pcapriotti pcapriotti force-pushed the pcapriotti/cargohold-remote-assets branch 3 times, most recently from 558eb31 to fe43f88 Compare December 22, 2021 15:17
@supersven supersven force-pushed the pcapriotti/cargohold-remote-assets branch 3 times, most recently from ac22bdf to 3862a1c Compare December 23, 2021 18:23
@supersven supersven force-pushed the cargohold-federated-api branch from a810c76 to 31f2de4 Compare December 23, 2021 18:29
Base automatically changed from cargohold-federated-api to develop December 28, 2021 12:13
@supersven supersven force-pushed the pcapriotti/cargohold-remote-assets branch from 3862a1c to 500838e Compare December 29, 2021 16:50
@pcapriotti pcapriotti force-pushed the pcapriotti/cargohold-remote-assets branch from 2a95ce6 to e62e332 Compare January 3, 2022 15:48
@pcapriotti pcapriotti marked this pull request as ready for review January 3, 2022 15:55
@pcapriotti pcapriotti force-pushed the pcapriotti/cargohold-remote-assets branch from d955ac8 to 2ba0351 Compare January 4, 2022 12:37
Copy link
Contributor

@mdimjasevic mdimjasevic left a comment

Choose a reason for hiding this comment

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

Overall, this is great!

I left some smaller comments and questions.

@pcapriotti pcapriotti force-pushed the pcapriotti/cargohold-remote-assets branch from e60c14c to 9eba8e4 Compare January 10, 2022 07:23
@pcapriotti pcapriotti force-pushed the pcapriotti/cargohold-remote-assets branch from 9eba8e4 to 17818c1 Compare January 10, 2022 10:23
@pcapriotti pcapriotti merged commit fd198b7 into develop Jan 10, 2022
@pcapriotti pcapriotti deleted the pcapriotti/cargohold-remote-assets branch January 10, 2022 12:38
@akshaymankar akshaymankar mentioned this pull request Jan 18, 2022
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.

3 participants