-
Notifications
You must be signed in to change notification settings - Fork 159
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 "no selection" panel for root nodes in all files and public links #6505
Conversation
item: simpleOwnFolder, | ||
selectedItems: [simpleOwnFolder], | ||
mocks: { $client: { files: { fileInfo: mockFileInfo } } } | ||
describe('file info', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrapped the file info related test cases into its own describe
block, so the following lines are mostly indentation changes. Additional tests start in line 96.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed to make some adjustments though, because I'm mocking buildResource
now in this file.
Results for oCISSharingPublic1 https://drone.owncloud.com/owncloud/web/23156/67/1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested and works like a charm, just found one unused getter
c271131
to
db22aa5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎸
b6dea90
to
f33196e
Compare
Kudos, SonarCloud Quality Gate passed! |
Description
We recently introduced a bug that causes the "no selection" info panel to not be shown anymore in the root of
All files
(path ofAll files
root changed from `` to/
). This PR fixes it, also fixes it for public link roots (which have the public link token as first path segment) and adds unit tests for it.Also saw, that fetching the file info didn't work for public links (was using the fileInfo sdk method for authenticate files context). Fixed it as well. Didn't seem to hurt before, though, except for the console error about missing authentication.
Related Issue
Motivation and Context
Hardening.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: