Is there an existing issue for this?
Current behavior
When I export analytics with a module segment, the CSV column headers for module segments show raw module UUIDs instead of module names. The code iterates over label_details instead of module_details when resolving module segment headers.
Code pattern:
if segmented == MODULE_ID:
module = next((mod for mod in label_details # wrong: should be module_details
if str(mod[MODULE_ID]) == str(segm)), None)
What I expect is that module segment columns in the exported CSV show readable module names.
File: apps/api/plane/bgtasks/analytic_plot_export.py, line 280
Steps to reproduce
- Go to Analytics
-
- Set any X-axis and set Segment to "Module"
-
- Export the chart as CSV
-
- Open the CSV and observe module segment column headers are raw UUIDs
Environment
Production
Browser
Google Chrome
Variant
Cloud
Version
v0.17.0-dev
Is there an existing issue for this?
Current behavior
When I export analytics with a module segment, the CSV column headers for module segments show raw module UUIDs instead of module names. The code iterates over label_details instead of module_details when resolving module segment headers.
Code pattern:
if segmented == MODULE_ID:
module = next((mod for mod in label_details # wrong: should be module_details
if str(mod[MODULE_ID]) == str(segm)), None)
What I expect is that module segment columns in the exported CSV show readable module names.
File: apps/api/plane/bgtasks/analytic_plot_export.py, line 280
Steps to reproduce
Environment
Production
Browser
Google Chrome
Variant
Cloud
Version
v0.17.0-dev