Repository navigation
DOC-7267 Fix the ioredis XGROUP and XINFO overloads and finish the bare container pages - #4515
Merged
Merged
Conversation
Contributor
Contributor
dwdougherty
approved these changes
Nov 9, 2026
andy-stark-redis
force-pushed
the
DOC-7267-ioredis-containers
branch
from
November 9, 2026 15:26
04bdf2b to
c46526f
Compare
…re container pages Seven ioredis lists held other subcommands' overloads: XGROUP DESTROY, DELCONSUMER, CREATECONSUMER and SETID, and XINFO STREAM, GROUPS and CONSUMERS. The ioredis cleanup in #4496 kept each command's existing overload selection, and these lists had been built from the whole xgroup or xinfo method, so XGROUP DESTROY listed five CREATE overloads and none of its own. The tab renders the ioredis subcommand as a plain param, so it showed xgroup( subcommand: "CREATE", ...) on the DESTROY page. Each list now holds only the overloads whose subcommand literal is its own, 24 entries dropped, and the four lists left with none take their overloads from the declaration. Every ioredis entry for a space-named container command now names that command's subcommand. The ten remaining empty ioredis pages from #4512 are settled. DEBUG is one method with a free subcommand string, so it takes the three declared debug overloads. MONITOR is a method of the Redis class, declared outside RedisCommander as monitor(callback?: Callback<Redis>): Promise<Redis>, so it gets that entry. The nine bare container pages (ACL, CLIENT, CLUSTER, COMMAND, CONFIG, LATENCY, MEMORY, MODULE, SLOWLOG) have no method that takes the command without a subcommand, so ioredis is generic_only for them. Learned: an ioredis container command is one method, so a subcommand entry has to be filtered by the subcommand literal, and a list that was split from a collapsed entry can hold the wrong ones Constraint: reference ioredis 5.11.1, DEBUG and MONITOR were checked in RedisCommander.d.ts and Redis.d.ts Directive: after building ioredis entries for a container subcommand, check that every signature names that subcommand Gaps: the two descriptions on the MONITOR entry are written by hand, ioredis has none for them Gaps: nine bare container pages say to use call although the bare command is not useful, the status file has no way to say that Ticket: DOC-7267 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
andy-stark-redis
force-pushed
the
DOC-7267-ioredis-containers
branch
from
November 10, 2026 09:37
c46526f to
472657a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two ioredis clean-ups. 9 command files and 9 status entries change.
xgrouporxinfomethod, which DOC-7267 Rebuild the ioredis entries from the declared overloads #4496 kept as the existing selection. XGROUP DESTROY listed five CREATE overloads and none of its own. Each list now holds only the overloads whose subcommand literal is its own (24 entries dropped), and the four that were left with none take their overloads from the declaration. After this, every ioredis entry for a space-named container command names that command's subcommand.debugoverloads. MONITOR is declared on theRedisclass asmonitor(callback?: Callback<Redis>): Promise<Redis>, so it gets that entry. The nine bare container pages (ACL, CLIENT, CLUSTER, COMMAND, CONFIG, LATENCY, MEMORY, MODULE, SLOWLOG) have no method that takes the command without a subcommand, so ioredis isgeneric_onlyfor them.Review notes
data/command-api-mapping.jsonequals a regeneration. Built withcontent/develop/clientsignored (the full site only builds in CI). XGROUP DESTROY now showssubcommand: "DESTROY", DEBUG and MONITOR show signatures, and ACL says to usecall.call", although the bare command isn't useful. The status file can't say "this page is a container for the subcommands below". I left it rather than leave them on the default message.🤖 Generated with Claude Code
Note
Low Risk
Documentation and generated mapping JSON only; no runtime client or server behavior changes.
Overview
This PR fixes ioredis client API documentation in the command mapping data and marks nine bare container commands as
generic_onlyfor ioredis in the status file.XGROUP and XINFO subcommand pages previously listed the wrong ioredis overloads (mostly
CREATEvariants copied from the wholexgroup/xinfomethod). Each subcommand page now only includes overloads whose subcommand literal matches that command—e.g.CREATECONSUMER,DELCONSUMER,DESTROY, andSETIDfor XGROUP, and the matching literals for XINFO—removing roughly two dozen misplaced entries.DEBUG and MONITOR gain proper ioredis signatures (
debugoverloads andmonitor(callback?)returningPromise<Redis>). ACL, CLIENT, CLUSTER, COMMAND, CONFIG, LATENCY, MEMORY, MODULE, and SLOWLOG top-level pages addioredis: generic_onlybecause ioredis has no dedicated method for the bare command (docs should point readers at subcommands orcall).Changes are confined to JSON mapping assets and the merged
command-api-mapping.json.Reviewed by Cursor Bugbot for commit 472657a. Bugbot is set up for automated code reviews on this repo. Configure here.