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

Initial implementation of the new OpenInApp API #1723

Merged
merged 1 commit into from
May 28, 2021

Conversation

glpatcern
Copy link
Member

@glpatcern glpatcern commented May 21, 2021

This PR implements the new OpenInApp API by moving the code previously created for OpenFileInAppProvider. The latter is deprecated.

For the time being, the implementation lacks the apps registry, where the app parameter would be used as key to get the returned URL. Instead, the app is just prepended to the returned URL. Of course, the current behavior is preserved, i.e. if no app is provided, the app URL is worked out from the (WOPI) registry.

TODO in a later PR:

  • App registry to map mime types to multiple app identifiers and URLs
  • Lookup of the app URL.

@glpatcern glpatcern requested a review from labkode as a code owner May 21, 2021 07:50
@update-docs
Copy link

update-docs bot commented May 21, 2021

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 glpatcern marked this pull request as draft May 21, 2021 07:50
@glpatcern glpatcern removed the request for review from labkode May 21, 2021 07:51
@glpatcern glpatcern force-pushed the openinapp branch 4 times, most recently from 4e2cd9d to fb418ac Compare May 21, 2021 08:51
@glpatcern glpatcern changed the title Draft: initial implementation of the new OpenInApp API Initial implementation of the new OpenInApp API May 21, 2021
@glpatcern glpatcern marked this pull request as ready for review May 21, 2021 15:25
@glpatcern glpatcern requested a review from ishank011 May 21, 2021 15:25
@glpatcern glpatcern force-pushed the openinapp branch 3 times, most recently from 0f7ec3a to 86d7e16 Compare May 27, 2021 10:41
@ishank011
Copy link
Contributor

@glpatcern can you update go.mod to the latest cs3apis version? go mod download should do it

@ishank011
Copy link
Contributor

But you'll need this to be merged #1719. Will ping @labkode

@labkode
Copy link
Member

labkode commented May 27, 2021

#1719 merged

@glpatcern
Copy link
Member Author

All right, rebasing plus one more "linting" made it. This is ready for merge.

@labkode labkode merged commit f367fb9 into cs3org:master May 28, 2021
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