-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
enh: Migrate from custom webdav v4 handling to webdav v5 with @nextcloud/files
#2312
base: master
Are you sure you want to change the base?
Conversation
8731f8a
to
d2509b7
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.
Thanks for doing this 😍
I left a few questions/comments
Hello there, We hope that the reviewing process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR reviewing process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! |
d2509b7
to
0bacc16
Compare
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
0bacc16
to
b33af7d
Compare
@artonge I resolved the conflicts and merged in your suggestions, seems to work fine (did some testing). |
export default `<?xml version="1.0"?> | ||
import { getDavProperties, registerDavProperty } from '@nextcloud/files' | ||
|
||
const recoginzeDAVProps = [ |
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.
const recoginzeDAVProps = [ | |
const recognizeDAVProps = [ |
*/ | ||
export const getDefaultDavProps = () => { | ||
if (props === null) { | ||
recoginzeDAVProps.forEach(prop => registerDavProperty(prop)) |
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.
Why not register them on load?
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.
Or maybe they should be passed in extraProps
if they are recognize only
<d:order> | ||
<d:prop><nc:metadata-photos-original_date_time/></d:prop> | ||
<d:descending/> | ||
</d:order> |
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.
Why is this removed?
'nc:metadata-photos-size', | ||
'nc:metadata-files-live-photo', | ||
'nc:metadata-blurhash', | ||
'nc:metadata-photos-original_date_time', |
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.
Those are not bound to the sidebar, shouldn't we register them in main.js
instead ?
console.error('Failed to get tag content', id, error.response) | ||
logger.error(`Failed to get tag content, id: ${id}`, { error }) | ||
} else { | ||
logger.debug(error) |
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.
Still an error, no?
logger.debug(error) | |
logger.error(error) |
"allowSyntheticDefaultImports": true, | ||
"moduleResolution": "node", | ||
"moduleResolution": "Bundler", |
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.
IIRC, the Cypress error might be due to this change.
@@ -51,6 +52,12 @@ export default new Store({ | |||
|
|||
plugins: [ | |||
(store) => { | |||
// Initialize the `photosLocationFolder` state | |||
getFolder(store.state.userConfig.photosLocation) |
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.
Isn't this doing the same thing twice?
Lets use webdav v5 and helpers from
@nextcloud/files
instead of old webdav v4 with custom patching.