Skip to content

added a product property product_name to the app provider info - #237

Merged
micbar merged 1 commit into
cs3org:mainfrom
2403905:app-provider-product-name
Nov 5, 2024
Merged

micbar merged 1 commit into
cs3org:mainfrom
2403905:app-provider-product-name

Conversation

@2403905

@2403905 2403905 commented Nov 4, 2024

Copy link
Copy Markdown
Contributor

We added a product property product_name to the app provider info, that could be used to handle product-specific differences. For example Collabora, OnlyOffice, Microsoft365 or MicrosoftOfficeOnline

…could be used to handle product-specific differences
@micbar
micbar merged commit f869434 into cs3org:main Nov 5, 2024
// The action to be displayed to the user on the context menu.
// By default this is "Open with".
string action = 9;
// OPTIONAL.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if already merged, I see this is de facto a breaking change, as you're going to use the product_name to identify the application "type": as such, this field should be REQUIRED.

Incidentally, Reva master does not take decisions based on the type (we just set all language headers for every app), and the CS3 wopiserver only has a few extra properties if the application is "Collabora". Nevertheless the new field makes perfect sense, to not risk inconsistencies with an admin-configurable (and user-display-oriented) field.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. That makes sense. It means that we already had some hidden differences for the different products (collabora, codiMD and so on). Now we are making that official. IMHO we can keep it optional to avoid the breaking change on Reva master.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I prefer to break Reva master now :) (those comments are anyhow advisory - unfortunately - meaning that the compilation goes through). At least to keep the API consistent, where I expect the HTTP app provider endpoint and the WOPI /iop/open one to change as well.

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.

4 participants