Repository navigation
add the algolia plugins - #113
Conversation
algolia-search, algolia-ingestion and algolia-recommend watch Algolia's REST API specs in algolia/api-clients-automation at its released-* tags, same-day releases ordered by commit date; an event's version is the release's date. They use vercel's and supabase's rule (operation deprecations, and removals of operations marked deprecated first) and skip entries that describe only an API client: x-helper helpers and the custom-request methods. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: brandonphelps1212 <bphelps1212@gmail.com>
|
Claude finished @brandonphelps1212's task in 1m 40s —— View job ✅ Ready to merge. The three Algolia plugins follow every rule in AGENTS.md, all the checks pass locally, and I found no bugs. Rules
BugsNone found. I checked these:
Verified
I didn't re-run the 186-release replay or the live GitHub check from the PR description. The numbers in the description come from the author. Non-blocking
Thanks for a careful, well-documented PR. |
| // history was deprecated first; 13 were the client-only entries above (the | ||
| // custom-request methods in all three specs on 2024-03-25, and /saveObjects). | ||
| func algoliaKeep(c diff.Change) bool { | ||
| op, _ := c.Node.(map[string]any) |
There was a problem hiding this comment.
Non-blocking. This works only because algoliaDiff sets QuoteDeprecatedOperation. With that option set, diff.go:294 passes the whole operation as Node for an OperationDeprecated. Without it, Node is just the true from deprecated (diff.go:296), so op is nil and clientOnly would quietly let a deprecated helper through.
TestAlgoliaClientOnlyEntriesMakeNoEvent builds the diff.Change by hand, so it wouldn't notice that. You could run that case through diff.Changes(old, new) with algoliaDiff instead, or add a comment here saying this depends on the option.
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 40s —— View job ✅ Ready to merge. The new commit ( Rules
Blocking bugsNone. Notes on the new commit
Non-blocking suggestions (optional)
TestsI can't run the tests in this review. CI_go covers Thanks for picking up the earlier suggestion so quickly. This is a clean, well-documented addition. |
What this changes
Adds
algolia-search,algolia-ingestionandalgolia-recommendon theopenapiformat plugin, one per Algolia REST API spec. Part of #72 (I11.4 · Watch Algolia), under #14.specs/bundled/<api>.ymlin algolia/api-clients-automation, the specs Algolia generates every API client from, pinned to itsreleased-*tags (186 since 2023-08-22).versionis the release's date (2025-04-01). The API has nothing beyond/1/, and each client has its own versions.vercelandsupabase, with the whole operation quoted (QuoteDeprecatedOperation) and path templates matched.deprecatedflag);x-helper: true(/saveObjects,/waitForTask, …);customGet/Post/Put/Deleteon/{path})./1/clustersmulti-cluster operations (2025-04-01)./1/tasksoperations (2025-01-22: "please usegetTasksinstead") andPUT /1/tasks/{taskID}/disable(2024-07-26).Checklist
docs/plugins.md: three rows, statuspausedlike the other new plugins. I compared the registered plugins with the table.git commit -s, DCO)golden/algolia-search.json(the 2025-04-01 deprecation) andgolden/algolia-ingestion.json(2025-01-22).testdata/README.mdlists each file: URL, date fetched, license, quote. The copies are trimmed by lines (openapi,info, the paths involved), with every line unchanged./1/transformations/models, removed without being deprecated (2024-09-18-cc190fae3→2024-09-19-a62c27d3b)./1{path}to/{path}(2024-03-25).providers/algolia.mdwritten fromproviders/_template.md, including Why this source. One page for the three plugin ids.env.Get/kit/: the adapter uses the shared fetch layer underadapter/, like the other openapi adapters.go build ./... && go vet ./... && gofmt -l . && go test -race ./...pass locally, and so doesscripts/leak_guard.py --all.Notes for the reviewer
/saveObjects), and 4 were Ingestion operations.released-2026-11-17-31c309fe2a), the three plugins ran, and the full-size Search replay gave the 9 events.cloudflareandsupabase, these events are versioned by date.🤖 Generated with Claude Code