Open joashrajin opened 2 years ago
👋 @jaclync, I noticed that you recently made some Stats related PRs in the 9.3 release, pinging you here since you might have more insights and can help with this merchant issue.
It looks like the issue is that the merchant is having trouble loading Stats data.
Hello 👋 the recent dashboard updates just changed the timing of the stats API requests, and the requests stayed the same.
From the error message in the issue description:
"No value associated with key CodingKeys(stringValue: \"orders_count\", intValue: nil) (\"orders_count\")."
It sounds like the value for orders_count
field does not exist in the API response. It's most likely some other plugin altering the response for wc-analytics/reports/revenue/stats
requests.
I looked into adding a fallback to the app to handle this scenario, but if we don't have this data we can't show accurate stats for Orders or Conversions in the dashboard. I don't think we want to handle this silently, because it will make the stats look inaccurate and potentially damage merchant trust in the app's stats. In cases like this we should probably show something in the UI to alert the merchant that the stats aren't complete because of a third-party plugin conflict.
For now, I've added an analytics event (in https://github.com/woocommerce/woocommerce-ios/pull/9858) so we can track this and other decoding errors that we weren't tracking before. That way we can check how often this is occurring and prioritize work on any design/behavior decisions and changes accordingly.
Describe the bug
Reported in #5229716-zen
Similar to https://github.com/woocommerce/woocommerce-ios/issues/5512
The issue is that Products are not loading in the app
Logs mention:
We recommended conflict testing, but the user said it did not help. It looks like the data may already be altered on a DB Level.
Mobile Environment Please include:
WordPress Environment