[BUG]: Contributor metrics remain combined across organizations when filtering

未关闭
#454 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@Aniruddh1702 已经在做这个了。

开始于 2026年11月27日。

  • #479 来自 @Aniruddh1702 —— 未关闭

评估

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

调研方向

Start by reading src/services/analytics.js and src/pages/ContributorsPage.jsx to trace how contributor metrics are aggregated and how the organization filter is applied. Compare the metric values for one contributor across All Organizations and a single organization; done means the two metrics reflect the selected organization while the CROSS-ORG signal still reflects contributions across loaded organizations.

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

描述

bug
Bug Description

Description -:
On the Contributors page, selecting a specific organization filters the contributor list, but the Total Contributions and Repos Contributed To values still appear to represent data across all loaded organizations.
This is particularly noticeable when a contributor belongs to multiple organizations and has the CROSS-ORG signal.

Actual Behaviour -:
The contributor list is filtered according to the selected organization, but the Total Contributions and Repos Contributed To values remain unchanged and appear to reflect the combined data from all loaded organizations.

Expected Behaviour -:

  • When a specific organization is selected, the Total Contributions and Repos Contributed To values should ideally reflect only that organization's repositories.
  • When All Organizations is selected, the existing combined values should remain.
  • The CROSS-ORG signal should continue to represent whether the contributor has contributed across multiple loaded organizations.

Additional Context -:

  • The Contributors page appears to aggregate contributor metrics across loaded repositories and subsequently filter the displayed contributors by organization.
  • It may be worth reviewing whether these individual metrics should also be scoped to the selected organization.
  • I'm raising this for review to confirm whether the current behaviour is intentional or should be addressed.

Relevant Files -:

  • src/services/analytics.js
  • src/pages/ContributorsPage.jsx
Steps to Reproduce
  1. Load multiple GitHub organizations in OrgExplorer.
  2. Navigate to the Contributors page.
  3. Find a contributor who appears in more than one loaded organization. (CROSS-ORG)
  4. Note their Total Contributions and Repos Contributed To values.
  5. Change the organization filter from All Organizations to one specific organization.
  6. Observe the same contributor's metrics.
Logs and Screenshots
Screenshot 2026-11-12 224428 Screenshot 2026-11-12 224458 Screenshot 2026-11-12 224537 Screenshot 2026-11-12 225233 Screenshot 2026-11-12 225309
Environment Details

No response

Impact

Medium - Feature works but has issues

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
主要语言
JavaScript
星标
53
派生
187
平均合并
18 分钟
30 天内合并 PR
2

环境准备

从这里开始

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

AOSSIE-Org/OrgExplorer 的其他 Issue

查看 AOSSIE-Org/OrgExplorer 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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