[self-care:debug-logging] Log campaign route title link resolution gaps
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 88/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript
调研方向
从 dashboard/site/src/components/campaign-route-shell.js 和现有的 createDebug('campaign-route-shell') logger 开始,然后检查 dashboard/site/test/campaign-route-shell-debug.test.js。在进行任何更改之前,针对该文件运行聚焦的 dashboard/site 测试。完成的标准是:当一个链接解析成功时,logger 保持静默;当没有任何链接解析成功时,只发出一个仅包含状态和工作流数量的事件;并且排除 URL 和路径。
由索引模型根据 Issue 内容生成。
描述
Adds one debug log to dashboard/site/src/components/campaign-route-shell.js, with a focused test.
Diagnostic gap: when no workflow in a campaign yields a repository source link, the campaign page silently omits its title link. Nothing says whether the link was resolved or skipped.
Change: campaignTitleLink now emits { event: 'title-link', status: 'unavailable', workflowCount } when no link resolves. It reuses the module's existing createDebug('campaign-route-shell') logger. No new logger or abstraction was added.
Enable: ?debug=campaign-route-shell or ?debug=1. Exclude with ?debug=*,-campaign-route-shell.
Privacy and side effects: the log contains one event name, a status string and a count. It never includes repository URLs, README paths, campaign names or row data. It only observes the existing return path and does not change control flow, state or events. It adds no I/O and no timers. It is not in a loop and runs once per route render when no link resolves. workflows.length is already available. The ?debug=1 DOM provenance and custom events are untouched.
Normal-runtime cost: disabled logging uses the shared no-op function, so the cost is one empty call per resolution failure.
Validation:
-
npm --prefix dashboard/site run typecheckpassed. -
npm --prefix dashboard/site run lintpassed. -
npm --prefix dashboard/site test: 4122 passed, 1 timed out under full-suite load (dashboard-current-status.test.js). That file passes 21/21 when run alone and is unrelated to this change. -
The new test in
campaign-route-shell-debug.test.jscovers three things:- the log stays silent when a link resolves;
- it fires only when none resolves;
- it excludes URLs and paths.
-
The existing disabled-by-default test still passes.
Control Plane
- Correlation ID:
46191389849-5037 - Central repository:
githubnext/gh-cao - Control plane run: https://github.com/githubnext/gh-cao/actions/runs/46191389849
cao: githubnext/gh-cao, correlation: 46191389849-5037
[!NOTE]
This was originally intended as a pull request, but the git push operation failed.Original error: ERR_VALIDATION: pushSignedCommits: refusing unsigned push for branch 'self-care/debug-logging-campaign-route-shell-title-link-e6895bcaca406f01': GitHub did not verify the initial commit signature; refusing to publish branch 'self-care/debug-logging-campaign-route-shell-title-link-e6895bcaca406f01'
Workflow Run: View run details and download bundle artifact
The bundle file is available in the
agentartifact in the workflow run linked above.
Create the pull request manually
# Download the artifact from the workflow run
gh run download '46191834428' -n agent -D '/tmp/agent-46191834428'
# Resolve the bundle source ref, fetch it into a temporary ref, then create the local branch
bundle_path='/tmp/agent-46191834428/aw-githubnext-gh-cao-self-care-debug-logging-campaign-route-shell-title-link.bundle'
temp_ref='refs/bundles/create-pr-self-care-debug-logging-campaign-route-shell-title-link-e6895bcaca406f01-c99c95ce'
target_ref='refs/heads/self-care/debug-logging-campaign-route-shell-title-link-e6895bcaca406f01'
bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 ~ /^refs\/heads\// { print $2 }')
if [ -z "$bundle_source_ref" ]; then
bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 == "HEAD" { print $2 }')
fi
if [ "$(printf '%s\n' "$bundle_source_ref" | sed '/^$/d' | wc -l | tr -d ' ')" != "1" ]; then
echo "Expected exactly one bundle source ref, found: $bundle_source_ref" >&2
exit 1
fi
git fetch "$bundle_path" "${bundle_source_ref}:${temp_ref}"
git update-ref "$target_ref" "$temp_ref"
git checkout 'self-care/debug-logging-campaign-route-shell-title-link-e6895bcaca406f01'
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d "$temp_ref"
# Push the branch to the target remote
git push 'origin' 'self-care/debug-logging-campaign-route-shell-title-link-e6895bcaca406f01'
# Create the pull request
gh pr create --title '[self-care:debug-logging] Log campaign route title link resolution gaps' --base 'main' --head 'self-care/debug-logging-campaign-route-shell-title-link-e6895bcaca406f01' --repo 'githubnext/gh-cao'
Generated by SelfCare / Dashboard Debug Logging · copilot · routed: sonnet55 high · ~146 AIC · ⌖ ~2 AIC · ⊞ 9.3K · history
- expires on Dec 5, 2026, 9:47 PM UTC
- 主要语言
- JavaScript
- 星标
- 23
- 派生
- 8
- 平均合并
- 7 小时 18 分钟
- 30 天内合并 PR
- 426
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
githubnext/gh-cao 的其他 Issue
-
agentic-workflows self-care self-care:dashboard-debug-logging
难度 2/5 1-3 小时 新手友好度 90/100
githubnext/gh-cao#21768 ·
维护者通常 1 天内回复
-
repo-assist repo-assist:maintenance
难度 1/5 1 小时以内 新手友好度 90/100
githubnext/gh-cao#21758 ·
维护者通常 1 天内回复
-
agentic-workflows pull-request-fallback self-care self-care:reactive-ui-expert
难度 2/5 1-3 小时 新手友好度 72/100
githubnext/gh-cao#21740 ·
维护者通常 1 天内回复
-
agentic-workflows pull-request-fallback self-care self-care:reactive-ui-expert
难度 2/5 1-3 小时 新手友好度 78/100
githubnext/gh-cao#21728 ·
维护者通常 1 天内回复
-
agentic-workflows self-care self-care:server-go-logging
难度 2/5 1-3 小时 新手友好度 62/100
githubnext/gh-cao#21725 ·
维护者通常 1 天内回复
查看 githubnext/gh-cao 的全部 Issue
相似的 Issue
-
Bug Nethernet Tests
难度 2/5 1-3 小时 新手友好度 78/100
JSPrismarine/JSPrismarine#3949 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
Jason-Vaughan/TangleClaw#3360 · 2 条评论 ·
维护者通常 1 天内回复
-
documentation good first issue
难度 1/5 1 小时以内 新手友好度 92/100
OWASP/cve-lite-cli#1880 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
MetaMask/eth-phishing-detect#317371 ·
维护者通常 1 天内回复
-
Docs: explain the Human Eval YAML export and connect viewer ratings to the LLM judge calibration guide可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复