Context menu for files in case multiple (default-)actions apply#38132
Context menu for files in case multiple (default-)actions apply#38132AlexAndBear merged 1 commit intomasterfrom
Conversation
|
Tested on Damken-Cloud, it works! 👍 |
|
Feature wise this looks ok. We should add tests for this.
Depending Tasks
|
|
@phil-davis Can you help / give pointers how to create an acceptance test step? |
fd56cf4 to
7851fa5
Compare
Checked (fixed editors):
|
|
@phil-davis
Is this addressable with the current test framework? |
You mentioned some issues with your mobile device, can you recheck? |
Yes, in the sense that "almost anything" is computable. For example, we have some test scenarios in core that are run with the notifications app installed and enabled. Instead of installing 2 extra apps during core test CI, we could put the test into richdocuments CI, where it can install files_pdfviewer and then check that the 2 options are available and work. It will be even easier if there are 2 apps that can open text files. |
I think collabora/richdocuments can also open text files but I don't think there is another more handy reader in owncloud repos, however there is a simple third party app: I still think we need to ensure that the 2 apps are only concurrently installed during this specific test, because I don't know if other tests might fail ? |
Yes, the test scenarios would be put in a separate test suite that would run in its own pipeline. That stops it from effecting other tests. |
Great, do you think we could pair on this next week? |
|
When I checkout this branch and @JammingBen can you rebase and force-push? Or is it OK for me to do it? |
@phil-davis I could do it on Monday. Feel free to do it if you need it earlier though. |
27f7407 to
557f148
Compare
b51abaa to
ece19d6
Compare
|
@phil-davis The tests run fine on my local machine as I have both the Collabora and the Files Textviewer app installed. In Drone they still fail, I assume because those apps are not installed during the test run? Could you give us a hint how to achieve that? |
|
@JammingBen this should do something useful: fc36fe0 There was already a pipeline that runs with notifications app installed, and the starlark has "generic" code in it that "knows" how to clone an app from GitHub and... Let's see how CI goes. |
|
https://drone.owncloud.com/owncloud/core/27977/152/10 install-extra-apps worked. |
|
I did:
|
|
After this is merged, we can think if we want to add a test scenario in files_texteditor that has richdocuments also enabled, and actually clicks on "Open in Text Editor" and checks that the file content is actually visible in the text editor. The code here LGTM. Please get review from developers... |
|
@phil-davis Awesome, thanks for your support here!
Sounds good to me. We already put some work into this yesterday, so it shouldn't be a big deal. |
283e96c to
5fba365
Compare
mrow4a
left a comment
There was a problem hiding this comment.
@JammingBen @DeepDiver1975 in many cases having two editors allowed will cause everything go bananas, and is misconfiguration. Exception ofc are PDFs, and for this case it is valid dialog usecase
Having here collabora and files_texteditor and a third party textviewer works smooth so far for txt files |
|
@janackermann @JammingBen yes, but you need proper locking (that is not implemented in viewers), so editing concurrently from many editors works properly. You cannot safely edit the same document and the same time using two different editors |
|
@mrow4a Agree but this is not the point of this PR using different collaboration suites makes always trouble. |
|
Kudos, SonarCloud Quality Gate passed! |
|
Confirmed in 10.7.0RC1
|
|
@jnweiger |
Description
Show app drawer when requesting the default action for a file to which more than 1 action applies. The user can then select with which app the file should be opened (or edited).
Related Issue
Screenshots
Types of changes
Checklist: