Download a single factsheet from its detail page
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 70/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- full-stack
Línea de trabajo
Start in modelview/urls.py with the existing download route and modelview/views.py (model_to_csv_view, printable), then the detail-page templates for models/frameworks where a toolbar action would sit beside Edit. Reuse the list export's CSV header for a one-row response, and read modelview/tests/test_read_path.py for the pinned tags column characterisation test before touching shared column code. Done looks like: a public <sheettype>/<pk>/download/ route serving one factsheet, plus a Download button on the detail page.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What
Let a reader download one model or framework factsheet from its detail page (/factsheets/models/<id>/, /factsheets/frameworks/<id>/).
Why
- Today the only export is the list page's "Download CSV" (
modelview:download→model_to_csv_view). It exports all factsheets of a type, or the tag-filtered set. - The detail page has never offered a download. Its templates' history back to 2016 has none.
- A reader who wants one factsheet has to download the whole set and find the row.
- The request is old: #886 asked for it (single factsheet, e.g. as PDF or JSON) and was closed in February 2025 without being built. #218 asked for it in 2017.
Where it would go
The stage-2 design work (homepage wayfinder map, WF-11 prototype) gives the detail page a toolbar: tags at the start, the record's actions at the end (Delete, Edit). A "Download" action belongs there, beside Edit.
Open questions for the effort
- Format(s):
- CSV, one row with the same columns as the list export, reusing
model_to_csv_view's header; - JSON;
- a formatted PDF, as #886 asked.
- CSV, one row with the same columns as the list export, reusing
- Route: e.g.
<sheettype>s/<pk>/download/?format=…, beside the existing list download. - Access: public, like the detail page and the list export.
Related defect, worth fixing in the same effort
The existing CSV's tags column is the constant dataedit.Tag.None in every row:
- the header code emits the many-to-many field, because it has an
attname; - the row code writes the related manager's
__str__.
It is pinned as a characterisation test in modelview/tests/test_read_path.py. A single-factsheet export that reuses those columns would inherit the defect.
Pointers
modelview/urls.py: thedownloadroutemodelview/views.py:model_to_csv_view,printablemodelview/templates/modelview/modellist.html: the existing "Download CSV" button
Not part of the homepage/design map. To be picked up as its own effort.
- Lenguaje dominante
- Python
- Estrellas
- 65
- Forks
- 28
- Merge medio
- 4 d 7 h
- PR fusionados (30 d)
- 25
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- 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 OpenEnergyPlatform/oeplatform
-
API bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
OpenEnergyPlatform/oeplatform#2580 ·
Los mantenedores suelen responder en 3 días
-
Redesign the database page to support dataset creationPosiblemente ocupada @bmlancien la tomó hace 4 días. Abiertodata-upload
OpenEnergyPlatform/oeplatform#2762 · 1 comentario · 3 asignados ·
Los mantenedores suelen responder en 3 días
-
Improve navigation links in Core Features and Integrated WorkflowsPosiblemente ocupada @tomi-rli la tomó hace 19 días. AbiertoHomepage
OpenEnergyPlatform/oeplatform#2746 · 1 asignado ·
Los mantenedores suelen responder en 3 días
-
Enhance the new OEP homepagePosiblemente ocupada @jh-RLI la tomó hace 19 días. AbiertoHomepage
OpenEnergyPlatform/oeplatform#2745 · 2 asignados ·
Los mantenedores suelen responder en 3 días
-
Display child nodes in the OEO Viewer Graph ViewPosiblemente ocupada @jh-RLI la tomó hace 23 días. Abiertooeo viewer
OpenEnergyPlatform/oeplatform#2739 · 1 asignado ·
Los mantenedores suelen responder en 3 días
Todos los issues de OpenEnergyPlatform/oeplatform
Issues similares
-
needs-triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
flashinfer-ai/flashinfer#9803 ·
Los mantenedores suelen responder en 1 día
-
bug frontend good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
oscarbol09/thesisforge#61 ·
-
api bug performance
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
oscarbol09/audiobard#159 ·
-
area:web p2 product:business triage:active type:bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 89/100
cuadrao-ai/argus#2328 ·
Los mantenedores suelen responder en 1 día
-
bug frontend good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
nikhilb2/simple_invoicing#907 ·