Language Filter Dropdown Silently Truncates Languages
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 85/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript
- Domain
- frontend
Research direction
Open RepositoryPage.jsx and inspect how the language list is built from allRepos, especially the .slice(0, 10) call and the 'All Languages' entry. Verify the dropdown with an organization containing more than nine languages. Done means every distinct repository language is available for filtering, including languages encountered later in the repository list.
Written by the indexing model from the issue text.
Description
In RepositoryPage.jsx
What Exactly Goes Wrong?
- Only 9 Languages Can Ever Exist in the Dropdown:
- Index 0 of the array is 'All Languages'.
- The .slice(0, 10) restricts the total array length to 10 elements.
- That means only 9 unique programming languages are ever allowed into the dropdown.
- If an organization has 10, 15, or 25 languages across its repositories, every language after the 9th is silently dropped.
- Arbitrary Insertion Order (Not Even Popularity-Based):
- new Set(...) preserves the order in which items are first encountered in allRepos.
- So whichever 9 languages happened to appear first in the API response fill up the 9 slots.
- A repository with 5,000 stars written in Go or Rust might have its language completely omitted from the filter if it - appeared further down in the list!
Example
If you visit Adobe's Org
You will not Find "Python" although it was updated few hours ago
- Dominant language
- JavaScript
- Stars
- 42
- Forks
- 124
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 10
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AOSSIE-Org/OrgExplorer
-
[BUG]: respect granularity when limiting analytics time-series bucketsPossibly taken @Sparsh2105 claimed this 1 day ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
AOSSIE-Org/OrgExplorer#333 · 3 comments ·
Maintainers usually reply within 1 day
-
[BUG]: Loading skeletons use hardcoded dark colors and appear as dark blocks in light mode on every pagePossibly taken @g-k-s-03 claimed this 3 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/OrgExplorer#326 · 1 comment ·
Maintainers usually reply within 1 day
-
[FEATURE]: Pressing Enter after typing all orgs to search should hit explore.Possibly taken @Rajvardhan-Singh-Rathore claimed this 4 days ago. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
AOSSIE-Org/OrgExplorer#324 · 7 comments ·
Maintainers usually reply within 1 day
-
[BUG]: Navigating to a new page preserves the previous scroll positionPossibly taken @syedbarkath980 claimed this 6 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
AOSSIE-Org/OrgExplorer#314 ·
Maintainers usually reply within 1 day
-
[FEATURE]: Add Language column in Repository Explorer tableMay be free again @ProgrammerNesi claimed this 7 days ago, and no pull request is open. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
AOSSIE-Org/OrgExplorer#309 · 4 comments ·
Maintainers usually reply within 1 day
All issues in AOSSIE-Org/OrgExplorer
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 76/100
521xueweihan/HelloGitHub#3939 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
aemsites/author-kit#19 ·
-
needs-website-changes
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day