Skip to content

Rename thread to discussion in pull request dashboard scripts#84

Closed
trask wants to merge 1 commit into
open-telemetry:mainfrom
trask:rename-thread-to-discussion
Closed

Rename thread to discussion in pull request dashboard scripts#84
trask wants to merge 1 commit into
open-telemetry:mainfrom
trask:rename-thread-to-discussion

Conversation

@trask

@trask trask commented Jul 15, 2026

Copy link
Copy Markdown
Member

Mechanical, behavior-preserving rename of thread-oriented Python identifiers (functions and constants) to discussion in classification.py and dashboard.py. No logic changes.

The classification cache data keys (thread_action, thread_id, thread_kind, thread_facts) are intentionally left unchanged here, so the restored classification cache is not invalidated and no reclassification is triggered. Those data keys are renamed in the follow-up feature PR (#78), which changes the cache key anyway.

Split out from #78 to keep that PR's feature diff focused.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Renames internal pull-request dashboard classification terminology from “thread” to “discussion.”

Changes:

  • Renames classification functions, constants, and record keys.
  • Updates dashboard routing and diagnostics consumers.
  • Updates rendered classification diagnostics.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
classification.py Renames discussion classification APIs and schema.
dashboard.py Adopts renamed APIs and keys.
render.py Renders renamed diagnostic fields.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/scripts/pull-request-dashboard/classification.py
Mechanical, behavior-preserving rename of thread-oriented Python identifiers (functions and constants) to discussion in classification.py, dashboard.py, and render.py. No logic changes.

The classification cache keys thread_action, thread_id, thread_kind, and thread_facts are intentionally left unchanged so this rename does not invalidate the restored classification cache. Those data keys are renamed in the follow-up feature PR, which changes the cache key anyway.
@trask
trask force-pushed the rename-thread-to-discussion branch from c82457a to bff603f Compare July 15, 2026 23:43
@trask
trask requested a review from Copilot July 15, 2026 23:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment on lines +243 to +244
"prompt_template": DISCUSSION_PROMPT_TEMPLATE,
"thread": discussion_prompt_input(thread),
@trask

trask commented Jul 16, 2026

Copy link
Copy Markdown
Member Author

Folding this rename back into #78. The classification cache constraint meant the rename couldn't cleanly isolate here (cache-affecting renames — prompt text, data keys — still had to live in #78), so keeping it as one PR is clearer.

@trask trask closed this Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants