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

Refactor AppProvider workflow and protocol #1035

Merged
merged 8 commits into from
Aug 4, 2020

Conversation

glpatcern
Copy link
Member

@glpatcern glpatcern commented Jul 30, 2020

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 and UIURL are removed from the app-provider's config: StorageID is auto-resolved in the gateway service, whereas the UIURL'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.

@glpatcern glpatcern requested a review from labkode July 30, 2020 10:32
@update-docs
Copy link

update-docs bot commented Jul 30, 2020

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.

@labkode
Copy link
Member

labkode commented Jul 30, 2020

@glpatcern cs3apis merged, remember changelog

@labkode
Copy link
Member

labkode commented Jul 30, 2020

@glpatcern looks already pretty good

@glpatcern glpatcern changed the title WIP: Removed storageID and UIURL from the app-provider's config Refactor AppProvider workflow and protocol Jul 30, 2020
@glpatcern glpatcern force-pushed the appprovider-fixes branch 2 times, most recently from 7d4baf2 to 9592157 Compare July 31, 2020 08:33
@glpatcern glpatcern changed the title Refactor AppProvider workflow and protocol WIP: Refactor AppProvider workflow and protocol Jul 31, 2020
@glpatcern glpatcern force-pushed the appprovider-fixes branch 4 times, most recently from 612baf8 to fc72ce3 Compare August 3, 2020 13:33
@glpatcern glpatcern changed the title WIP: Refactor AppProvider workflow and protocol Refactor AppProvider workflow and protocol Aug 3, 2020
Copy link
Contributor

@ishank011 ishank011 left a 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.

internal/grpc/services/appprovider/appprovider.go Outdated Show resolved Hide resolved
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.
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).
@glpatcern glpatcern merged commit 95e8788 into cs3org:master Aug 4, 2020
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.

UIURL not parsed in parseConfig of appprovider
3 participants