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

feat(nextcloud): add interceptors #2165

Closed
wants to merge 6 commits into from

Conversation

Leptopoda
Copy link
Member

I separated commits per package to make the changelogs cleaner.
I can do separate PRs if it helps for reviewability (although I think it's quite clean).

Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

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

LGTM, but can you also migrate the nextcloud_test part that records the fixtures to these new interceptors?
Also we just use our own custom solution instead of https://pub.dev/packages/http_interceptor?

@Leptopoda Leptopoda marked this pull request as draft June 12, 2024 15:20
@Leptopoda
Copy link
Member Author

Leptopoda commented Jun 12, 2024

Marking as draft as this interceptor implementation does not allow any caching interceptor.
I'll have to look more into this

@Leptopoda
Copy link
Member Author

I'd like to merge this as is (after fixing the tests and adding separate ones for the interceptors).
@provokateurin do you have anything against this? We'll probably have to find a different solution for the cache but you are already working on that.

Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

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

LGTM, but maybe you could also migrate the WebDavCsrfClient to be an interceptor? Can be done as a follow-up though.

packages/nextcloud/test/client_test.dart Show resolved Hide resolved
packages/nextcloud/test/client_test.dart Show resolved Hide resolved
@Leptopoda Leptopoda force-pushed the feat/nextcloud/http_interceptor branch from 1974b00 to d995854 Compare July 4, 2024 17:13
@Leptopoda Leptopoda marked this pull request as ready for review July 4, 2024 17:14
@provokateurin
Copy link
Member

The CI failure looks like the cookies are not applied

@provokateurin
Copy link
Member

@Leptopoda close this in favor of #2288?

@Leptopoda Leptopoda closed this Jul 21, 2024
@Leptopoda Leptopoda deleted the feat/nextcloud/http_interceptor branch July 21, 2024 09:49
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