-
Notifications
You must be signed in to change notification settings - Fork 113
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
Refactor AppProvider workflow and protocol #1035
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
@glpatcern cs3apis merged, remember changelog |
@glpatcern looks already pretty good |
7d4baf2
to
9592157
Compare
612baf8
to
fc72ce3
Compare
fc72ce3
to
f2cd667
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Giuseppe. Mostly looks good. Just one comment.
78c2b14
to
498b612
Compare
This included changing the gRPC protocol and removing storageID and UIURL from config. En passant, this fixes cs3org#991 and includes other minor changes concerning error handling and logging.
Also cleared some TODOs and reduced HTTP timeout to 5s
This is now in its own function, as it does not need to be executed at each incoming request. Added a TODO for implementing a refresh every day or so.
8d2ffa9
to
d4d4d35
Compare
TODO for a future PR: refresh the map of apps URLs every day or week, and cache it at the service level (protected by a multi-reader Lock).
d4d4d35
to
454d635
Compare
This PR uses cs3org/cs3apis#85 to implement a simpler protocol from the client to the Reva gateway, and a more enriched one from the gateway to the appprovider. For now, WOPI is still the only "driver" implementing the appprovider logic.
Also,
storageID
andUIURL
are removed from the app-provider's config:StorageID
is auto-resolved in the gateway service, whereas theUIURL
's doc was misleading: we need to decide whether to drop it entirely (and surely it won't stay in the config).En passant, this fixes #991 and includes a few other changes and fixes concerning error handling, logging and documentation.