Contributor login constructor crashes analytical model construction
Los mantenedores suelen responder en 1 día
@Shubham-Padkonde ya está trabajando en esto.
Desde el 26/10/2026.
- #418 de @Shubham-Padkonde — abierto
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, node.js
Línea de trabajo
Start in src/services/analytics.js at buildAnalyticalModel() and read the existing analytical-model tests. Reproduce with the supplied input containing the login constructor, then add coverage for inherited-property names and aggregation across repositories. Done when construction returns the contributor with the expected contribution and the existing output shape and sorting remain intact.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug Description
buildAnalyticalModel() crashes when a repository has a contributor whose login is constructor (a valid GitHub username). The contributor accumulator is a plain object, so contributorMap[login] finds an inherited property and skips initializing the contributor record. It then fails at entry.repos.push(...), aborting the analysis.
Steps to Reproduce
Run from the repository root with Node:
import { buildAnalyticalModel } from './src/services/analytics.js'
const repos = { demo: [{ name: 'repo', pushed_at: '2026-10-01T00:00:00Z', open_issues_count: 0 }] }
buildAnalyticalModel(
[{ login: 'demo' }],
repos,
{ 'demo/repo': [{ login: 'constructor', contributions: 1 }] },
repos,
)
Expected: one contributor named constructor with one contribution.
Actual: TypeError: Cannot read properties of undefined (reading 'push').
Proposed fix
I plan to use a null-prototype object for this accumulator and extend the existing analytical-model tests to cover inherited-property names, including aggregation across repositories. This keeps the existing output shape and sorting behavior.
Environment: Windows, Node 24.15.0, current main. No browser credentials or live repository writes are needed to reproduce this.
AI disclosure: Codex (GPT-6) investigated and reproduced this issue and drafted this report on my behalf. This text has not had prior human review.
- Lenguaje dominante
- JavaScript
- Estrellas
- 53
- Forks
- 187
- Merge medio
- 18 min
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AOSSIE-Org/OrgExplorer
-
[BUG]: Organization filter dropdown in AnalyticsPage renders empty list due to truthy evaluation of empty issuesDataPosiblemente ocupada @havyasreekuppam la tomó hace 5 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
AOSSIE-Org/OrgExplorer#476 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
Add Pat for 5000 req/hr button not visible when pat expiresPosiblemente ocupada @Rajvardhan-Singh-Rathore la tomó hace 6 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
AOSSIE-Org/OrgExplorer#473 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
-
[BUG]: PAT popup input lacks label association and visibility button lacks an accessible namePosiblemente ocupada @prasanm1423 la tomó hace 10 días. Abiertobug enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
AOSSIE-Org/OrgExplorer#466 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[FEATURE]: Set dynamic document.title based on active page routePosiblemente ocupada @23241a6749 la tomó hace 8 días. Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
AOSSIE-Org/OrgExplorer#462 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[BUG]: SocialShareButton logs unconditional console.warn when script is not loadedPosiblemente ocupada @vivekrajputofficial29-afk la tomó hace 8 días. Abiertobug enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 89/100
AOSSIE-Org/OrgExplorer#461 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de AOSSIE-Org/OrgExplorer
Issues similares
-
marketing
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Kanevry/session-orchestrator#108 ·
-
PHP 8.6: "Returning a value from a constructor is deprecated" in app/Common/Models/Model.phpAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
awesomemotive/all-in-one-seo-pack#3238 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
andromarces/agent-loops#2055 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días