CollaboraOnline / collabora-drupal

Collabora Online Drupal module
Mozilla Public License 2.0
1 stars 1 forks source link

Refactor the discovery.xml fetching #56

Open donquixote opened 3 days ago

donquixote commented 3 days ago

We have the CoolRequest class which fetches the discovery.xml and extracts the WOPI client url from the xml. I would like to refactor this.

Refactoring:

Functional changes:

@hfiguiere some questions. In CoolRequest we have these error codes 101, 201 etc. Do these numbers have special meanings? Is there any external system that understands these number codes?

hfiguiere commented 5 hours ago

In CoolRequest we have these error codes 101, 201 etc. Do these numbers have special meanings? Is there any external system that understands these number codes?

They come from our PHP example (I didn't write that):

https://github.com/CollaboraOnline/collabora-online-sdk-examples/blob/master/webapp/php/load.php

I also reuse them in the WordPress plugin.

We could use different values if that's better.