Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

bug: createsiteusers/deletesiteusers line counts and output format incorrect

Aperta
#431 0 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
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Start with the summary block in tabcmd/commands/user/create_site_users.py and the output handling in tabcmd/commands/user/delete_site_users_command.py. Compare both commands with the expected tabcmd 1 output described here, including processed and skipped counts, error counts, duplicate lines, and error details. Done means both commands produce consistent summaries with accurate counts and formatted errors.

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

Descrizione

Summary

createsiteusers and deletesiteusers show incorrect line counts and inconsistent output format, discovered during live server output comparison testing (2026-07).


createsiteusers — "Lines skipped" shows error count, not skipped count; output inconsistent with tabcmd 1

Current output (error case):

Lines processed: 1
Lines skipped: 1
Number of users added: 0
Error details:
['ServerResponseError']

Expected (tabcmd 1):

===== Lines processed: 1
Lines skipped: 0
Number of users added: 1
Number of errors: 0

Lines skipped is being populated with number_of_errors instead of a genuine skip count. There is no separate "Number of errors" line. The error_list is logged as a raw Python list rather than formatted per-line.

Location: tabcmd/commands/user/create_site_users.py — summary block at the end of run_command.


deletesiteusers — "Lines processed" shows 0 even when a user was attempted

Current output:

Lines processed: 0


    404: Item not found
        Item not found: [Users] [email protected]
Lines processed: 0
Number of errors: 1
Error details:

Issues:

  • Lines processed: 0 even though 1 user was attempted
  • "Lines processed" appears twice
  • Empty "Error details:" section despite an error being shown above it
  • Blank lines and indented error text mixed into the summary block

Location: tabcmd/commands/user/delete_site_users_command.py


Relationship to #429

Issue #429 item 4 fixes the createsiteusers error message format (str(e) instead of e.__class__.__name__). The counting and structural output issues are tracked here separately.

Lingua principale
Python
Stelle
52
Fork
17
Merge medio
5g 20h
PR unite (30g)
2

Preparare l'ambiente

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 tableau/tabcmd

Tutte le issue di tableau/tabcmd

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.