bug: createsiteusers/deletesiteusers line counts and output format incorrect
还没有人认领这个 Issue。
评估
调研方向
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: 0even 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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tableau/tabcmd 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 84/100
-
feat: publish missing --description flag from tabcmd Classic可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
-
feat: creategroup missing --role flag from tabcmd Classic可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
相似的 Issue
-
documentation pkg: sphinx-needs
难度 1/5 1 小时以内 新手友好度 82/100
useblocks/sphinx-needs#2255 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 60/100
home-assistant/core#186538 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
btclib-org/btclib-secp256k1#1181 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
pyrite-wiki/pyrite#917 ·
维护者通常 1 天内回复