Skip to content

DOC-7267 Fix the ioredis XGROUP and XINFO overloads and finish the bare container pages - #4515

Merged
andy-stark-redis merged 1 commit into
mainfrom
DOC-7267-ioredis-containers
Nov 10, 2026
Merged

andy-stark-redis merged 1 commit into
mainfrom
DOC-7267-ioredis-containers

Conversation

@andy-stark-redis

@andy-stark-redis andy-stark-redis commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two ioredis clean-ups. 9 command files and 9 status entries change.

  • Wrong subcommand overloads. Seven ioredis lists held other subcommands' overloads: XGROUP DESTROY, DELCONSUMER, CREATECONSUMER and SETID, and XINFO STREAM, GROUPS and CONSUMERS. They came from the whole xgroup or xinfo method, 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.
  • The 10 pages DOC-7267 Fill the missing ioredis entries from the 5.11.1 declarations #4512 left. DEBUG is one method with a free subcommand string, so it takes the three declared debug overloads. MONITOR is declared on the Redis class 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.

Review notes

  • Merge order: DOC-7267 Fill the missing ioredis entries from the 5.11.1 declarations #4512 also edits the status file. Please merge it first. If the status file then conflicts, I'll rebase this branch.
  • Only the ioredis key changes in each file, which the script asserted, and the merged data/command-api-mapping.json equals a regeneration. Built with content/develop/clients ignored (the full site only builds in CI). XGROUP DESTROY now shows subcommand: "DESTROY", DEBUG and MONITOR show signatures, and ACL says to use call.
  • My text: the two descriptions on the MONITOR entry are mine, because ioredis has none for them.
  • A limit of the status file: the nine bare pages say "send it with 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_only for ioredis in the status file.

XGROUP and XINFO subcommand pages previously listed the wrong ioredis overloads (mostly CREATE variants copied from the whole xgroup/xinfo method). Each subcommand page now only includes overloads whose subcommand literal matches that command—e.g. CREATECONSUMER, DELCONSUMER, DESTROY, and SETID for XGROUP, and the matching literals for XINFO—removing roughly two dozen misplaced entries.

DEBUG and MONITOR gain proper ioredis signatures (debug overloads and monitor(callback?) returning Promise<Redis>). ACL, CLIENT, CLUSTER, COMMAND, CONFIG, LATENCY, MEMORY, MODULE, and SLOWLOG top-level pages add ioredis: generic_only because ioredis has no dedicated method for the bare command (docs should point readers at subcommands or call).

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.

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

DOC-7267

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

Found 9 related items from repository history (2 new this commit):

Memory updated at 472657a

@andy-stark-redis
andy-stark-redis requested a review from a team November 9, 2026 11:34
@andy-stark-redis andy-stark-redis self-assigned this Nov 9, 2026
@andy-stark-redis andy-stark-redis added the clients Client library docs label Nov 9, 2026
@andy-stark-redis
andy-stark-redis force-pushed the DOC-7267-ioredis-containers branch from 04bdf2b to c46526f Compare November 9, 2026 15:26
…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
andy-stark-redis force-pushed the DOC-7267-ioredis-containers branch from c46526f to 472657a Compare November 10, 2026 09:37
@andy-stark-redis
andy-stark-redis merged commit cb6f24b into main Nov 10, 2026
110 checks passed
@andy-stark-redis
andy-stark-redis deleted the DOC-7267-ioredis-containers branch November 10, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clients Client library docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants