Closed ldr2273 closed 3 years ago
Hi @ldr2273,
Thank you for reporting the issue. Analytics is being developed in another repository: woocommerce/woocommerce-admin
I am going to move your bug report there so that the right team could take a look further.
Hi @ldr2273, Thanks for creating an issue for this, this does appear to be a bug, although I haven't been able to reproduce it yet locally (still trying). From your video I noticed it caused white screen, this usually means an error happened on the browser side, which can help narrow down the issue.
If you can reproduce it again, could you share the screenshot of the error? Here are the steps to find the error output:
Hi @louwie17,
I was able to reproduce that as well.
Is it the following what you're looking for?
Ref: 4283280-zen
Hi @louwie17,
I was able to reproduce that as well.
Is it the following what you're looking for?
Yes that was quite helpful, thanks @felipelousantos.
I still haven't been able to reproduce it, although the error gave an idea of what the issue might be. It appears that we expect each variation to have a name
, which is what the indexOf
function is being called on:
https://github.com/woocommerce/woocommerce-admin/blob/main/client/lib/async-requests/index.js#L101-L103
It appears that name
could potentially be undefined, potentially mostly with older analytics data.
We will have to make sure name
is defined in this condition, and will deem this as a bug.
Prerequisites (mark completed items with an [x]):
Describe the bug When navigating to Analytics > Variations and trying to run a custom date range report, sometimes results yield blank pages. I can't hone in on exactly when this happens, as it's inconsistent, but it appears to have more issues with older data ranges. It has also been reported that this can happen when not using a custom date range but rather trying to view older data sets.
Expected behavior I would expect for results/data to be returned without error.
Actual behavior Here's a video of this in action: https://d.pr/v/375blG
Steps to reproduce the bug (We need to be able to reproduce the bug in order to fix it.) Steps to reproduce the bug:
Isolating the problem (mark completed items with an [x]):
WordPress Environment