Rewrite sorry/unsorry in python

Aperta
#121 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
bash, python
Ambito
cli, tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
9
Fork
17
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ocf/utils

Tutte le issue di ocf/utils

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.