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

refactor(nextcloud,neon_files): Introduce PathUri for WebDAV path handling #1103

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

provokateurin
Copy link
Member

Based on #1096

I still need to test everything and I'm pretty sure I broke some stuff.

@provokateurin provokateurin marked this pull request as draft November 3, 2023 23:43
@provokateurin provokateurin changed the title fix(nextcloud): Fix WebDAV path construction refactor(nextcloud,neon_files): Introduce PathUri for WebDAV path handling Nov 3, 2023
packages/nextcloud/lib/src/webdav/path_uri.dart Outdated Show resolved Hide resolved
packages/nextcloud/test/webdav_test.dart Outdated Show resolved Hide resolved
packages/neon/neon_files/lib/widgets/actions.dart Outdated Show resolved Hide resolved
packages/nextcloud/lib/src/webdav/path_uri.dart Outdated Show resolved Hide resolved
@provokateurin provokateurin force-pushed the feature/nextcloud/webdav-pathuri branch from dd5ed6e to 1093edc Compare November 5, 2023 12:42
@provokateurin provokateurin marked this pull request as ready for review November 5, 2023 12:42
@provokateurin
Copy link
Member Author

I will do the testing once you are satisfied with the changes in the nextcloud package. Otherwise I might need to re-do the tedious testing if there is a behavioral change.

@provokateurin provokateurin force-pushed the feature/nextcloud/webdav-pathuri branch from 1093edc to de8b9ed Compare November 5, 2023 14:07
Copy link
Member

@Leptopoda Leptopoda left a comment

Choose a reason for hiding this comment

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

I hope I didn't miss anything obvious.
I mainly reviewed the logic and haven't looked at the docs yet. We might also want to rename some parts of the interface as path.path is just garbage.

packages/neon/neon_files/lib/blocs/files.dart Outdated Show resolved Hide resolved
packages/neon/neon_files/lib/blocs/files.dart Outdated Show resolved Hide resolved
packages/neon/neon_files/lib/widgets/browser_view.dart Outdated Show resolved Hide resolved
packages/nextcloud/lib/src/webdav/path_uri.dart Outdated Show resolved Hide resolved
packages/nextcloud/lib/src/webdav/path_uri.dart Outdated Show resolved Hide resolved
packages/nextcloud/lib/src/webdav/path_uri.dart Outdated Show resolved Hide resolved
packages/nextcloud/lib/src/webdav/path_uri.dart Outdated Show resolved Hide resolved
packages/nextcloud/lib/src/webdav/path_uri.dart Outdated Show resolved Hide resolved
packages/neon/neon_files/lib/widgets/browser_view.dart Outdated Show resolved Hide resolved
packages/neon/neon_files/lib/blocs/files.dart Show resolved Hide resolved
@provokateurin provokateurin force-pushed the feature/nextcloud/webdav-pathuri branch 2 times, most recently from 61c8c89 to 50f5553 Compare November 9, 2023 21:03
@provokateurin
Copy link
Member Author

I think it is much cleaner now. I reviewed the changes in neon_files and tested most of it and found no problems (but please also test).

packages/nextcloud/lib/src/webdav/file.dart Outdated Show resolved Hide resolved
packages/nextcloud/lib/src/webdav/path_uri.dart Outdated Show resolved Hide resolved
packages/nextcloud/lib/src/webdav/path_uri.dart Outdated Show resolved Hide resolved
packages/nextcloud/lib/src/webdav/path_uri.dart Outdated Show resolved Hide resolved
packages/nextcloud/lib/src/webdav/path_uri.dart Outdated Show resolved Hide resolved
packages/nextcloud/lib/src/webdav/path_uri.dart Outdated Show resolved Hide resolved
packages/nextcloud/test/webdav_test.dart Show resolved Hide resolved
packages/nextcloud/lib/src/webdav/path_uri.dart Outdated Show resolved Hide resolved
packages/nextcloud/test/webdav_test.dart Show resolved Hide resolved
@Leptopoda
Copy link
Member

I didn't find any noticeable performance regressions

@provokateurin provokateurin force-pushed the feature/nextcloud/webdav-pathuri branch from 50f5553 to c026f98 Compare November 11, 2023 12:29
Copy link
Member

@Leptopoda Leptopoda left a comment

Choose a reason for hiding this comment

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

some final changes.

packages/nextcloud/test/webdav_test.dart Show resolved Hide resolved
packages/neon/neon_files/lib/models/file_details.dart Outdated Show resolved Hide resolved
packages/neon/neon_files/lib/blocs/browser.dart Outdated Show resolved Hide resolved
packages/nextcloud/lib/src/webdav/path_uri.dart Outdated Show resolved Hide resolved
packages/nextcloud/lib/src/webdav/path_uri.dart Outdated Show resolved Hide resolved
@provokateurin provokateurin force-pushed the feature/nextcloud/webdav-pathuri branch from c026f98 to eade429 Compare November 13, 2023 09:43
@provokateurin provokateurin merged commit d720dc8 into main Nov 13, 2023
9 checks passed
@provokateurin provokateurin deleted the feature/nextcloud/webdav-pathuri branch November 13, 2023 10:33
@provokateurin
Copy link
Member Author

🎉

@Leptopoda Leptopoda removed this from the Nextcloud package release milestone May 3, 2024
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.

2 participants