-
Notifications
You must be signed in to change notification settings - Fork 38
Conversation
PLUGIN_NOT_ACTIVE, | ||
API_NOT_FOUND, |
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.
I was the one who introduced PLUGIN_NOT_ACTIVE
during the REST API project, it was to match the value emitted by the Order REST client, but I think that name was not the right choice, the error could happen for any non-existing endpoint, be it because the plugin is not active, or any other reason, so I renamed it to make it more clear, please let me know what you think?
And this is a breaking change for WCAndroid, so let's not merge this until the WCAndroid PR is ready.
|
||
NOT_FOUND -> { | ||
when (apiError) { | ||
"rest_no_route" -> WooErrorType.API_NOT_FOUND |
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.
We need this specific differentiation now, the new error type will help identify when the wc-analytics
endpoint is not available.
a48cb8c
to
2847b97
Compare
2847b97
to
52cd84a
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 👍
Closes woocommerce/woocommerce-android#11518
This PR adds the networking implementation needed for the coupons card in the dynamic dashboard.
Testing
Also check woocommerce/woocommerce-android#11531 for testing the other changes.