question: are the old "What's new" slides (2.0.0, 2.3.0) still needed in the language files?

Abierto
#1,893 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
45/100
Tipo de issue
Refactorización
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
csharp, json

Línea de trabajo

Start with the SlideDeck.Newest and WhatsNewService.Decide code the issue cites, and check whether the old whats_new.2_0_0 and whats_new.2_3_0 keys are referenced anywhere outside the i18n files. The issue asks the maintainer to choose between three options, so confirm that intent before editing the 23 language files. Done means the agreed option is applied and the existing tests still pass.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Question

The i18n files still have the "What's new" strings for old versions (whats_new.2_0_0.* and whats_new.2_3_0.*), but the latest version is 2.5.0. Are they kept on purpose, or can they be removed?

What I found

  • WhatsNewService.Decide calls SlideDeck.Newest(decks, seen, current), which returns only the single newest deck that is newer than the version the user last saw and no newer than the running version.
  • About → "What's new" shows Latest, which is the newest deck up to the running version.
  • current is the version of the build that is running. In a 2.5.0 build, the 2.5.0 deck is always the newest one, so the 2.0.0 and 2.3.0 decks can't be shown by this code. Updating from an older version shows only the 2.5.0 deck.
  • The tests build their own small decks, so they don't depend on the real old ones.
  • Each old deck has many keys in each of the 23 language files, so they add translation work and file size.

I may be missing something. Maybe you keep them as a history, for translators, or for a future "all past slides" page.

Options

  1. Keep them as they are.
  2. Remove the old decks (2_0_0 and 2_3_0) from all language files and keep only the newest. Then each release would drop the previous deck.
  3. Keep them, but add a short note in the docs saying they are kept on purpose.

If you'd like option 2, I can open a PR for it.

Lenguaje dominante
C#
Estrellas
3.6k
Forks
192
Merge medio
14 h 23 min
PR fusionados (30 d)
458

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de KnifeLemon/Filee

Todos los issues de KnifeLemon/Filee

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.