Rewrite sorry/unsorry in python

Abierto
#121 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Refactorización
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
bash, python
Área
cli, tooling

Línea de trabajo

Examine the existing bash scripts at staff/acct/sorry/sorry and unsorry to understand their current logic, especially file permission handling and any commented sections. The goal is to rewrite them into a single Python script or two scripts sharing common functions, improving error handling and ensuring actions in sorry are properly undone in unsorry. Start by running the existing scripts in a test environment to see their behavior, then design the Python functions to replicate and clean up the logic.

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

Descripción

enhancement

Currently sorry and unsorry are pretty complicated scripts to be written in bash and have commented out sections, shellcheck-ignored warnings, etc. It's also tough to know if things done in the sorry script are undone properly in the unsorry script (setting file permissions for instance), so rewriting these two to use common functions and better error handling (maybe even be in the same script file) would be useful.

Lenguaje dominante
Python
Estrellas
9
Forks
17
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Aún no hemos revisado los archivos de configuración de este proyecto. 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 ocf/utils

Todos los issues de ocf/utils

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.