[self-care:debug-logging] Log campaign route title link resolution gaps

オープン 初心者向け
#21,781 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
javascript
領域
observability

調査の方向性

まず dashboard/site/src/components/campaign-route-shell.js と既存の createDebug('campaign-route-shell') ロガーから始め、次に dashboard/site/test/campaign-route-shell-debug.test.js を確認します。何も変更する前に、そのファイル_parameterized dashboard/site テストを実行してください。完了条件は、リンクが解決された場合にロガーが出力せず、リンクが1つも解決されなかった場合にステータスとワークフロー数だけを含むイベントを1回出力し、URLとパスを含めないことです。

索引モデルが issue の本文から書いたものです。

説明

agentic-workflows self-care self-care:dashboard-debug-logging

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 typecheck passed.

  • npm --prefix dashboard/site run lint passed.

  • 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.js covers 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

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 agent artifact 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分
マージ済み PR(30日)
426

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

githubnext/gh-cao のほかの issue

githubnext/gh-cao の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。