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

未关闭
#4,900 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript
领域
analytics

调研方向

首先,使用名为 "User." 的事件和 "Country" 分段复现 Dashboard widget 的流程,然后将其与正常工作的 All Events 视图进行比较。当 Dashboard widget 的 Breakdown 列表显示以句点结尾的事件名称可用的分段时,该 issue 即完成。

由索引模型根据 Issue 内容生成。

描述

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
主要语言
JavaScript
星标
5.9k
派生
985
平均合并
1 天 3 分钟
30 天内合并 PR
104

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Countly/countly-server 的其他 Issue

查看 Countly/countly-server 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。