Repository navigation
add the apichangelog format plugin and mongodb-atlas - #111
Conversation
apichangelog reads a vendor's machine-readable API changelog (JSON, per day, endpoint and API version, oasdiff change codes) at the commit that last changed it. It replays the days oldest first and emits only an endpoint version's life cycle: deprecated, unless reactivated later, and removed at its sunset. Its first log is MongoDB's Atlas Administration API changelog in mongodb/openapi. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: brandonphelps1212 <bphelps1212@gmail.com>
|
Claude finished @brandonphelps1212's task in 1m 35s —— View job ✅ Ready to merge. Every repo rule is met, all five checks pass locally, and I found no blocking bugs in the replay logic. Rules
BugsNone found. What I checked in
Verified
I couldn't download the real 10 MB file (the fetch wasn't approved here). So I didn't confirm the 81 findings against it myself; I relied on the fixture and the README's note on how it was made. Non-blocking
Thanks for the careful PR. The reactivation replay and the position-keeping fixture are both well done. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: brandonphelps1212 <bphelps1212@gmail.com>
|
@claude review |
|
Claude finished @brandonphelps1212's task in 49s —— View job ✅ Ready to merge. The new commit ( Rules
I couldn't run the commands here because they weren't approved in this run. CI_go covers build, vet, gofmt and Blocking bugsNone. I checked the new code in
Non-blocking suggestions
Thanks for the quick follow-up. Quoting changes as written and withdrawing a removal on a later day are both clean, well-scoped fixes. |
…precation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: brandonphelps1212 <bphelps1212@gmail.com>
|
@claude review |
|
Claude finished @brandonphelps1212's task in 26s —— View job ✅ Ready to merge. The new commit ( Rules
I couldn't run the commands in this run. CI_go covers build, vet, gofmt and Blocking bugsNone. I traced the new logic in
Non-blocking suggestions
Thanks for working through every round of feedback so carefully. The life-cycle replay is now consistent and well pinned by tests. |
What this changes
A new format plugin,
apichangelog, and its first source,mongodb-atlas. Part of #70 (I11.2 · Watch MongoDB), under #14.plugins/apichangelogreads a vendor's machine-readable API changelog: a JSON file listing, per day, each endpoint's changes per API version, with oasdiff change codes and abackwardCompatibleflag.env.Get. That URL never changes, so it's the provenance; no snapshot is needed.mongodb-atlasreads MongoDB's Atlas Administration API changelog,changelog/changelog.jsonin mongodb/openapi. MongoDB's CI releases it ("Release API Changelog"), and the API changelog docs page is built from it.deprecation:endpoint-deprecated,resource-version-deprecated, unless a laterendpoint-reactivatedwithdraws it.breaking:endpoint-removed, for example "endpoint with API Version '2023-01-01' was removed as it has reached its sunset date '2026-01-22'".version: the API version the change is about (2023-01-01), the one a caller'sAcceptheader names.Checklist
docs/plugins.md: newmongodb-atlasrow, statuspausedlike the other new plugins, andapichangelogadded to the Format plugin legend. Alsodocs/writing-a-plugin.md's table and AGENTS.md's layout. I compared the registered plugins with the table.git commit -s, DCO)plugins/apichangelog/testdata/golden/mongodb-atlas.json), with a historical change: the shared-tier ("tenant") backup endpoints removed at their 2026-01-22 sunset (TestTenantBackupSunset).testdata/README.mdlists each file: URL, date fetched, license, quote.providers/mongodb-atlas.mdwritten fromproviders/_template.md, including Why this sourceenv.Get/kit/go build ./... && go vet ./... && gofmt -l . && go test -race ./...pass locally, and so doesscripts/leak_guard.py --all.Notes for the reviewer
{}, so every pointer in the golden names the same change in the real file. The plugin reads exactly the same 81 findings from the copy as from the real file.GET /api/atlas/v2/groups/{groupId}/clustersat2024-05-30was deprecated on 2024-06-25 and reactivated the next day. An independent review caught that the first version ignored this and would have called live versions deprecated; the replay fixes it, andTestReactivationWithdrawsTheDeprecationpins it.api-path-removed-without-deprecation: its one entry comes withendpoint-addedthe same day, and the endpoint stayed.Acceptheader (application/vnd.atlas.2023-01-01+json). The patch-it client's version check doesn't know that scheme yet.🤖 Generated with Claude Code