Skip to content

Comments

Federated Cargohold API#2002

Merged
supersven merged 10 commits intodevelopfrom
cargohold-federated-api
Dec 28, 2021
Merged

Federated Cargohold API#2002
supersven merged 10 commits intodevelopfrom
cargohold-federated-api

Conversation

@pcapriotti
Copy link
Contributor

@pcapriotti pcapriotti commented Dec 17, 2021

This PR makes the asset API federation-aware. This is accomplished by creating qualified endpoints for downloading and deleting assets, as well as returning the local domain as part of the response object on upload.

Federated behaviour is not yet implemented, but the new endpoints can already be used just like the old ones for local assets (i.e. when the domain is the local one).

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

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.
  • If HTTP endpoint paths have been added or renamed, the endpoint / config-flag checklist (see Wire-employee only backend wiki page) has been followed.
  • 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.
    • If public end-points have been changed or added: does nginz need un upgrade?

@pcapriotti pcapriotti force-pushed the cargohold-federated-api branch from 2ecba91 to bb56ba6 Compare December 17, 2021 12:45
@pcapriotti pcapriotti force-pushed the pcapriotti/cargohold-servant branch from 678ade3 to 64e0bf7 Compare December 17, 2021 13:32
@pcapriotti pcapriotti force-pushed the cargohold-federated-api branch from bb56ba6 to 7ee0ec9 Compare December 17, 2021 13:45
Base automatically changed from pcapriotti/cargohold-servant to develop December 20, 2021 09:19
@pcapriotti pcapriotti force-pushed the cargohold-federated-api branch from 900d2b1 to a810c76 Compare December 20, 2021 09:38
@pcapriotti pcapriotti marked this pull request as ready for review December 20, 2021 09:39
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.

I'll continue later with reviewing. Some smaller comments are inlined.

pcapriotti and others added 9 commits December 23, 2021 19:29
Note that streaming is not yet supported for the client. Therefore, when
a client for an endpoint that includes a streaming response is invoked,
and a streaming response is received, the client will just fail.
Also make `AssetLocation` type more high level.
@supersven supersven force-pushed the cargohold-federated-api branch from a810c76 to 31f2de4 Compare December 23, 2021 18:29
…constraint

The HasCallStack constraint leads to more descriptive stacktraces.
The new name reflects better, that this function may fail/throw.
@supersven supersven merged commit b568799 into develop Dec 28, 2021
@supersven supersven deleted the cargohold-federated-api branch December 28, 2021 12:13
@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