Skip to content

Date review thread wait age from comment creation time - #206

Open
trask wants to merge 1 commit into
open-telemetry:mainfrom
trask:thread-wait-age-from-creation-time
Open

Date review thread wait age from comment creation time#206
trask wants to merge 1 commit into
open-telemetry:mainfrom
trask:thread-wait-age-from-creation-time

Conversation

@trask

@trask trask commented Jul 30, 2026

Copy link
Copy Markdown
Member

Date an inline review thread's wait age and list position from its last comment's createdAt rather than its edit time, so a reviewer fixing a typo in their own comment no longer makes a weeks-old thread look freshly raised. Over the 441 pull request corpus, 208 of 355 live threads currently derive their age from an edit; the median edit lands 3 minutes after the comment so most ages are unchanged, but 3 threads were edited more than a day later and the worst understated its wait by 14 days. updatedAt is no longer requested for review thread comments.

Top-level feedback items still date from the edit time, and the difference is now stated in RATIONALE.md: a top-level item is closed by an explicit author reply that is only reused while it stays newer than the item's root, so editing the request has to invalidate the reply already given. An inline thread has no such reply ledger, so an edit has nothing to reset.

Fixes #195

@trask
trask requested a review from Copilot July 30, 2026 20:39

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

Note

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Adjusts inline review thread “wait age” and ordering to use the last comment’s createdAt (not edit time) so typo-fixes to old comments don’t make stale threads appear newly raised.

Changes:

  • Update group_review_threads to sort and timestamp comments by createdAt only.
  • Stop requesting updatedAt for review thread comment nodes in the GitHub GraphQL query.
  • Add/extend tests and documentation to codify the intended timestamp semantics.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
.github/scripts/pull-request-dashboard/dashboard.py Uses createdAt for ordering and timestamps in inline review threads.
.github/scripts/pull-request-dashboard/github_cli.py Removes updatedAt from GraphQL selections for review thread comments.
.github/scripts/pull-request-dashboard/test_dashboard.py Adds coverage ensuring edits don’t reset thread wait age.
.github/scripts/pull-request-dashboard/RATIONALE.md Documents the difference between inline thread vs top-level feedback timestamp behavior.

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

@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Jul 30, 2026

Copy link
Copy Markdown

Pull request dashboard status

Waiting on reviewers · refreshed 2026-07-30 22:24 UTC

Review the latest changes.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

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 4 out of 4 changed files in this pull request and generated no new comments.

@trask
trask marked this pull request as ready for review July 30, 2026 22:23
@trask
trask requested a review from a team as a code owner July 30, 2026 22:23
@trask
trask requested a review from mx-psi July 30, 2026 22:23
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.

pull-request-dashboard: editing a comment resets how long a thread has been waiting

2 participants