Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

bug: createsiteusers/deletesiteusers line counts and output format incorrect

Abierto
#431 0 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
68/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Tranquilo
Stack tecnológico
python
Área
cli

Línea de trabajo

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.

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

Descripción

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.

Lenguaje dominante
Python
Estrellas
52
Forks
17
Merge medio
5 d 20 h
PR fusionados (30 d)
2

Preparar el entorno

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

Todos los issues de tableau/tabcmd

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.