[BUG]: Governance audit may miss older open issues and PRs due to pagination order
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- github, javascript
Hướng nghiên cứu
Start in src/services/github.js and trace how fetchIssues supplies data to the Dead Issues and Zombie PRs checks, while preserving the existing fetch used by analytics. Add focused unit tests for the governance request parameters and fetched open items. Done when those checks request open items oldest first and the tests verify the behavior; pull request #425 is already open for this issue.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug Description
The fetchIssues function in src/services/github.js fetches issues using state=all, per_page=100, and paginated requests without explicitly specifying a sort order or direction.
GitHub returns issues in descending creation order by default, meaning newer items appear first. However, the Governance checks for Dead Issues (open for more than 90 days) and Zombie PRs (open for more than 90 days) depend on older open items, which may be excluded when the number of fetched results is limited.
Without a personal access token (PAT), the implementation fetches only the first page (up to 100 items). With a PAT, it fetches at most 10 pages (up to 1,000 items). On repositories with substantial activity, older open issues and pull requests may therefore be missing from the dataset, causing governance metrics to under-report neglected work or report zero incorrectly.
Additionally, using state=all means closed items consume part of the limited result set, even though these governance checks focus on open items.
Expected behavior
The Governance audit should retrieve an appropriate dataset of open issues and pull requests, prioritizing older items so that neglected work is less likely to be missed.
Actual behavior
The limited dataset may contain mostly newer items and closed items, causing older open issues and pull requests to be omitted and governance counts to be under-reported.
Suggested solution
- Introduce a dedicated fetch strategy for governance checks using
state=open&sort=created&direction=ascto prioritize older items. - Preserve the existing
state=allfetch for analytics and time-series charts that require closed items. - Add unit tests to verify the request parameters and ensure the governance checks process the fetched open items correctly.
Oldest-first ordering will improve coverage of older items, although pagination limits may still prevent a complete audit of very large repositories.
Addition
I would like to start working on this issue.
Steps to Reproduce
- Open OrgExplorer and select an organization with a repository containing a large number of issues and pull requests.
- Navigate to the Governance page.
- Inspect the results returned by
fetchIssuesinsrc/services/github.js. - Compare the fetched dataset with the repository's oldest open issues and pull requests using an oldest-first GitHub API query.
- Check whether older open items are missing from the dataset used by the Dead Issues and Zombie PRs checks.
- Compare the reported governance counts with the older open items found.
Repository tested: https://github.com/facebook/react?utm_source=chatgpt.com
Note: The impact is most apparent in repositories where the number of issues and pull requests exceeds the configured pagination limit.
Logs and Screenshots
Environment Details
- OS: Windows 11
- Browser: Microsoft Edge
- Project: AOSSIE OrgExplorer
- Affected file:
src/services/github.js - Affected functionality: Governance — Dead Issues and Zombie PRs
- Authentication: Behavior depends on whether a GitHub personal access token is configured
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
- Ngôn ngữ chính
- JavaScript
- Star
- 53
- Fork
- 187
- Merge trung bình
- 18 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của AOSSIE-Org/OrgExplorer
-
[BUG]: Organization filter dropdown in AnalyticsPage renders empty list due to truthy evaluation of empty issuesDataCó thể đã có người làm @havyasreekuppam đã nhận 5 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
AOSSIE-Org/OrgExplorer#476 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add Pat for 5000 req/hr button not visible when pat expiresCó thể đã có người làm @Rajvardhan-Singh-Rathore đã nhận 6 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
AOSSIE-Org/OrgExplorer#473 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: PAT popup input lacks label association and visibility button lacks an accessible nameCó thể đã có người làm @prasanm1423 đã nhận 10 ngày trước. Đang mởbug enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AOSSIE-Org/OrgExplorer#466 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[FEATURE]: Set dynamic document.title based on active page routeCó thể đã có người làm @23241a6749 đã nhận 8 ngày trước. Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AOSSIE-Org/OrgExplorer#462 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: SocialShareButton logs unconditional console.warn when script is not loadedCó thể đã có người làm @vivekrajputofficial29-afk đã nhận 8 ngày trước. Đang mởbug enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 89/100
AOSSIE-Org/OrgExplorer#461 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của AOSSIE-Org/OrgExplorer
Issue tương tự
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Kanevry/session-orchestrator#108 ·
-
PHP 8.6: "Returning a value from a constructor is deprecated" in app/Common/Models/Model.phpĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
awesomemotive/all-in-one-seo-pack#3238 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
andromarces/agent-loops#2055 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày