Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

bug: createsiteusers/deletesiteusers line counts and output format incorrect

Đang mở
#431 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
52
Fork
17
Merge trung bình
5 ngày 20 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của tableau/tabcmd

Tất cả issue của tableau/tabcmd

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.