Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

bug: createsiteusers/deletesiteusers line counts and output format incorrect

未关闭
#431 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
技术栈
python
领域
cli

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
52
派生
17
平均合并
5 天 20 小时
30 天内合并 PR
2

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

tableau/tabcmd 的其他 Issue

查看 tableau/tabcmd 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。