Countly / Countly/countly-server

An event with a name ending with a "." will not show its segmentation in a dashboard widget.

Open
#4,900 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.9k
Forks
981
Avg merge
18h 51m
Merged PRs (30d)
49

Description

Expected Behavior

When creating a widget for a dashboard, I can select an event, app and visualisation that supports segmentation, like bar chart.
Then I select an event from the dropdown and if that event have segmentation properties, I can selet one of those from the Breakdown list.

Current Behavior

When trying to select a segmentation property on an even where the name end with a period, ".", the breakdown list is empty.
Even if those events are visible in the All Events view, including their segmentations and option to display those elements with the segmentation. (as expected)

Screenshots (if appropriate):
Possible Solution

The workaround is of course removing the "." from the end of the Event name, but this might be a symtom of other, similar issues where the content of the event name (or segment name) might trigger other bugs like this.

Steps to Reproduce (for bugs)

Example: If I have an event called "User." with a segmentation like this: ["Country": ...]
In the All Events view I have "User." in the events list and I can select "Country" in the segmentation list and get the the graph rendered fine.
But in the Dashboard widget, after I select Events, my app, the Event "User." the Breakdown list shows up but is empty.

Your Environment
  • Operating System and version: Linux/Ubuntu 22.04.3 and Countly Lite v23.11.9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the dashboard widget flow with an event named "User." and a "Country" segmentation, then compare it with the working All Events view. The issue is done when the Dashboard widget's Breakdown list shows available segmentations for event names ending in a period.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
analytics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.