Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Conversation

crazytonyli
Copy link
Contributor

Description

PluginDirectoryServiceRemote sends HTTP requests to api.wordpress.org, which we don't have a dedicated API client for. I used URLSession directly, instead of the customized URLSession.perform function, because the extra error handling implemented in the perform function is useless in PluginDirectoryServiceRemote.

The Endpoint abstraction is removed from this PR, because PluginDirectoryServiceRemote—the only type that implements Endpoint protocol—no longer uses it.

Testing Details

See updated and added unit tests.


  • Please check here if your pull request includes additional test coverage.
  • I have considered if this change warrants release notes and have added them to the appropriate section in the CHANGELOG.md if necessary.

@crazytonyli crazytonyli requested a review from mokagio February 15, 2024 22:14
@mokagio mokagio changed the title Decouple PluginDirectoryServiceRemote from Alamofire Decouple PluginDirectoryServiceRemote from Alamofire Feb 16, 2024
### Breaking Changes

_None._
- Decouple `PluginDirectoryServiceRemote` from Alamofire. [#725]
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- Decouple `PluginDirectoryServiceRemote` from Alamofire. [#725]
- Decouple `PluginDirectoryServiceRemote` from Alamofire. [#725]
- Remove `Endpoint`. [#725]

Endpoint might have been unused, but it was still a public type. Do you think it would be worth to track it in the changelog?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure thing. Added in dce3798.

@crazytonyli crazytonyli merged commit ae8f83e into trunk Feb 16, 2024
@crazytonyli crazytonyli deleted the refactor-plugin-directory-service branch February 16, 2024 08:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants