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

Fix search context menu #6445

Merged
merged 5 commits into from
Feb 16, 2022
Merged

Fix search context menu #6445

merged 5 commits into from
Feb 16, 2022

Conversation

dschmidt
Copy link
Member

@dschmidt dschmidt commented Feb 16, 2022

Description

Enable/disable certain file actions outside of the file application.

Related Issue

Motivation and Context

Several file actions (currently) work or don't work outside the files app. In general anything that just interacts with the backend works fine, actions that rely on e.g., the sidebar, don't work in the search app for instance.

How Has This Been Tested?

  • needs oC 10

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

Decide whether we want to make the search results selectable in the ResourcesTable, to prepare for multi select and archive download.
Currently we have no search in oCIS and isDownloadAsArchiveAvailable is false on oC 10, so currently it's probably just confusing for no benefit... tying this to isDownloadAsArchiveAvailable would be possible, but feels weird as well ... happy to hear other opinions :)

Adding a check whether

@update-docs
Copy link

update-docs bot commented Feb 16, 2022

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.

@dschmidt dschmidt force-pushed the fix_search_context_menu branch 4 times, most recently from 00cedc3 to e3eb3d7 Compare February 16, 2022 22:10
Copy link
Member

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

Nice improvement 🥇

@sonarcloud
Copy link

sonarcloud bot commented Feb 16, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

27.3% 27.3% Coverage
4.2% 4.2% Duplication

@ownclouders
Copy link
Contributor

Results for oCISSharingAndUpload https://drone.owncloud.com/owncloud/web/22843/66/1
The following scenarios passed on retry:

  • webUIUpload/upload.feature:94

@kulmann kulmann merged commit f2d3047 into master Feb 16, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix_search_context_menu branch February 16, 2022 23:54
@dschmidt
Copy link
Member Author

🤩

dschmidt added a commit that referenced this pull request Feb 18, 2022
In #6445 we introduced a dependency on isFilesAppActive for the fileActions mixin. We added it to
ContextActions and BatchActions, but there are way more places where the mixin is used. That's why
we added a computed to the mixin itself. Because mixins belong to the options api we unfortunately
cannot use composables directly and extracted helper functions for that reason.
dschmidt added a commit that referenced this pull request Feb 18, 2022
In #6445 we introduced a dependency on isFilesAppActive for the fileActions mixin. We added it to
ContextActions and BatchActions, but there are way more places where the mixin is used. That's why
we add a computed to the mixin itself now. Because mixins belong to the options api we unfortunately
cannot use composables directly and extracted helper functions for that reason.
dschmidt added a commit that referenced this pull request Feb 18, 2022
In #6445 we introduced a dependency on isFilesAppActive for the fileActions mixin. We added it to
ContextActions and BatchActions, but there are way more places where the mixin is used. That's why
we add a computed to the mixin itself now. Because mixins belong to the options api we unfortunately
cannot use composables directly and extract helper functions for that reason.
dschmidt added a commit that referenced this pull request Feb 18, 2022
In #6445 we introduced a dependency on isFilesAppActive for the fileActions mixin. We added it to
ContextActions and BatchActions, but there are way more places where the mixin is used. That's why
we add a computed to the mixin itself now. Because mixins belong to the options api we unfortunately
cannot use composables directly and extract helper functions for that reason.
dschmidt added a commit that referenced this pull request Feb 18, 2022
In #6445 we introduced a dependency on isFilesAppActive for the fileActions mixin. We added it to
ContextActions and BatchActions, but there are way more places where the mixin is used. That's why
we add a computed to the mixin itself now. Because mixins belong to the options api we unfortunately
cannot use composables directly and extract helper functions for that reason.
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.

Search results: right or left click have no effect
3 participants