Skip to content

maintner: record org-level issue field change history - #5

Closed
bcreane wants to merge 1 commit into
bradfitz:mainfrom
bcreane:bcreane/issue-field-event-history
Closed

bcreane wants to merge 1 commit into
bradfitz:mainfrom
bcreane:bcreane/issue-field-event-history

Conversation

@bcreane

@bcreane bcreane commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

The issue field values synced in 7e57545 are a snapshot of current state, so the value a field held at any past time is unrecoverable. Store GitHub's issue-field timeline events alongside them, keyed by node ID and accumulated rather than replaced wholesale, so callers can measure how long an issue sat at a given value. They ride along on the existing per-issue GraphQL query at no extra rate-limit cost.

@bcreane
bcreane force-pushed the bcreane/issue-field-event-history branch from e4b6f2a to 8f7584e Compare August 9, 2026 23:15
@bcreane

bcreane commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor Author

okay, did another round of reviews and stripped out 30% of the code and 40% of the tests. @bradfitz if you've already looked at this PR and <shuddered>, it may be worth another glance.

Comment thread maintner/github.go Outdated
Comment thread maintner/github.go Outdated
The issue field values synced in 7e57545 are a snapshot of current
state, so the value a field held at any past time is unrecoverable.
Store GitHub's issue-field timeline events alongside them, accumulated in
Created order and deduped by node ID rather than replaced wholesale, so
callers can measure how long an issue sat at a given value. They ride
along on the existing per-issue GraphQL query at no extra rate-limit
cost.

Signed-off-by: Brendan Creane <bcreane@gmail.com>
@bcreane
bcreane force-pushed the bcreane/issue-field-event-history branch from 8f7584e to 10bdbc6 Compare August 28, 2026 20:56
@bcreane
bcreane requested a review from bradfitz September 4, 2026 15:30
@bcreane bcreane closed this Sep 12, 2026
@bcreane bcreane reopened this Sep 12, 2026
@bcreane

bcreane commented Sep 12, 2026

Copy link
Copy Markdown
Contributor Author

@bradfitz if this fell off your list ...

@bcreane

bcreane commented Sep 21, 2026

Copy link
Copy Markdown
Contributor Author

Closing this in favor of #7.

@bcreane bcreane closed this Sep 21, 2026
@bcreane
bcreane deleted the bcreane/issue-field-event-history branch September 21, 2026 23:05
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