Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

[full-ci] url stability. open file through Collabora - #10420

Merged
v-scharf merged 1 commit into
masterfrom
openFilethroughCollabora
Jan 30, 2024
Merged

v-scharf merged 1 commit into
masterfrom
openFilethroughCollabora

Conversation

@v-scharf

Copy link
Copy Markdown
Contributor

part of #9897

check that file can be open in Collabora via url. client feature:

Screenshot 2024-01-29 at 21 36 03

@update-docs

update-docs Bot commented Jan 29, 2024

Copy link
Copy Markdown

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.


export const openResourceViaUrl = async (args: openResourceViaUrlArgs) => {
const { page, resource, user, space } = args
const { page, resource, user, space, collabora } = args

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wouldn't it make sense to pass the editor name as variable instead of a boolean? When want to test the same for OnlyOffice, don't we? 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I just didn't find way how to open file in the OnlyOffice using url (wanted to ask about it tomorrow.)
Even if I set the app=OnlyOffice parameter, the file still opens in collabora

https://ocis.owncloud.test/external/open-with-web?app=OnlyOffice&fileId=fileuuId

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I spoke with @JammingBen. Looks like it's a bug

Wouldn't it make sense to pass the editor name as variable instead of a boolean? When want to test the same for OnlyOffice, don't we?

sure, I'll change it

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That would be another regression, right? Super important to have the test for both Collabora and OnlyOffice then 😁

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

created bug for that: #10422

@v-scharf
v-scharf force-pushed the openFilethroughCollabora branch from 10aa645 to c9e307a Compare January 30, 2024 09:28
@v-scharf
v-scharf force-pushed the openFilethroughCollabora branch from c9e307a to fbe7927 Compare January 30, 2024 10:56
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@v-scharf

Copy link
Copy Markdown
Contributor Author

while the tests are like this
.odt I open via Collabora
.docx I open via OnlyOffice

after fixing #10422 I'll add tests where I can open one file format in the different editor

@saw-jan saw-jan left a comment

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.

LGTM

@v-scharf
v-scharf merged commit 159ffb8 into master Jan 30, 2024
@delete-merged-branch
delete-merged-branch Bot deleted the openFilethroughCollabora branch January 30, 2024 12:37
S-Panta added a commit that referenced this pull request Feb 22, 2024
url stability. open file through Collabora (#10420)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants