Skip to content

netiquette - Ignore bad data from API - #10045

Merged
fregante merged 5 commits into
refined-github:mainfrom
moraesc:fix-netiquette-null-close-date
Sep 11, 2026
Merged

fregante merged 5 commits into
refined-github:mainfrom
moraesc:fix-netiquette-null-close-date

Conversation

@moraesc

@moraesc moraesc commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Closes #10022

The page can identify a conversation as closed while the Issues API response still has closed_at: null, such as during a state transition. assertDefined permits null, so the value was passed to new Date(null) and became the Unix epoch. The twas formatter then displayed that date as "58 years ago."

Ignore the null API value instead of rendering a misleading banner, and cover both valid and null close dates with unit tests.

Test URLs

#10022

Screenshot

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 65c6c9b6-28e5-448a-a6cf-f4ac05df99c9
@github-actions github-actions Bot added the bug label Sep 4, 2026
@moraesc
moraesc marked this pull request as ready for review September 4, 2026 22:09
@moraesc moraesc mentioned this pull request Sep 4, 2026
1 task done
Comment thread source/github-helpers/netiquette.ts Resolved
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 65c6c9b6-28e5-448a-a6cf-f4ac05df99c9
@moraesc
moraesc requested a review from fregante September 5, 2026 23:36
Comment thread source/github-helpers/netiquette.ts Resolved
@moraesc
moraesc requested a review from fregante September 8, 2026 03:03
@moraesc

moraesc commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

@fregante are you able to merge this? looks like i don't have permission to do so

@fregante fregante changed the title netiquette - Ignore null close dates netiquette - Ignore bad data from API Sep 11, 2026
@fregante
fregante enabled auto-merge (squash) September 11, 2026 08:38
@fregante
fregante merged commit 2ed85bf into refined-github:main Sep 11, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

"This issue was closed 58 years ago"

2 participants