Repository navigation
DOC-7267 Add ioredis and Ruby to the API Methods tab dropdown - #4498
Merged
Merged
Conversation
The ioredis entries rebuilt in #4496 were never shown: the API Methods tab builds its dropdown from a fixed client order in api-methods-tab.html, and that list named every client with a mappingClientId except ioredis (RedisVL and Ruby are also absent and are left alone here). ioredis now sits after Node.js in both the dropdown order and the localStorage tab-sync order. It also gets genericCall="call", which ioredis defines in RedisCommander.d.ts, so a command listed generic_only in the status file would say how to send it. Coverage is thin: 159 of 527 commands have an ioredis list, 62 are empty and 306 have no ioredis key, against about 470 for redis-py, Jedis and go-redis. Those commands show the default "No method signature available for this client." No ioredis status entries were added, because most of the gap is typed methods that were never mapped (EVAL, HGET), not commands ioredis cannot call. Learned: a client with a mappingClientId in config.toml still does not appear in the tab unless it is in both clientOrder lists in api-methods-tab.html Directive: add a client to the tab in both $clientOrder and $jsClientOrder, and give it a genericCall Gaps: 306 commands have no ioredis entry, so the new option shows the default message for most of the command set Gaps: built with content/develop/clients ignored, checked SET, EVAL and ACL in the output Ticket: DOC-7267 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
Contributor
🧠 Redis MemoryFound 7 related items from repository history (2 new this commit):
Memory updated at 7232633 |
dwdougherty
approved these changes
Nov 6, 2026
Ruby has a mappingClientId (redis_rb) in config.toml and 217 of 527 commands have a redis_rb list, but the tab's fixed client order omitted it, so that data was never shown. Ruby now sits after PHP in both the dropdown order and the localStorage tab-sync order, and gets genericCall="call", which redis-rb v6.0.0 documents as the public way to send any command (Redis::Commands#call, which delegates to send_command). The other 310 commands have no redis_rb key and show the default message. RedisVL stays out of the dropdown on purpose, because it is handled differently from the other clients. Directive: do not add RedisVL to the API Methods tab client order, the docs team decided it is handled differently Gaps: built with content/develop/clients ignored, checked SET, EVAL and ACL in the output Ticket: DOC-7267 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
Author
|
Thanks @dwdougherty ! |
andy-stark-redis
added a commit
that referenced
this pull request
Nov 9, 2026
The Ruby entries were added to the API Methods tab dropdown in #4498, but 310 of the 527 commands had no redis_rb list. Each is now accounted for against the redis-rb v6.0.0 source, the current release. 89 command files get an entry and 203 commands are recorded as generic_only in the status file, so the tab says to use call. Entries: 23 commands name a method with complete YARD docs (BITCOUNT, BITOP, BITPOS, GETBIT, SETBIT, GEOSEARCH, GEOSEARCHSTORE, ECHO, INFO, PING, TIME and others) and take its signature, the @PARAM types and descriptions, and the @return. 66 container subcommands go through the container method that forwards the subcommand to the server, as XGROUP CREATE already does: client(:kill, *args), cluster, script and config with the same shape, slowlog(:get, length = nil), and xinfo for stream, groups and consumers with the return type that belongs to that subcommand. generic_only: 203 commands that redis-rb 6.0.0 has no method for, among them the array AR* commands, the V* vector commands, the TS, TDIGEST, CF, BF, TOPK and CMS module commands, the HOTKEYS family, the hash field-expiry commands, FUNCTION and COMMAND subcommands, and FT.EXPLAINCLI, FT._LIST, JSON.RESP and HELLO. A method for each was searched for by name and by the command symbol in the library source. Left without an entry or status: 10 methods that exist but have no YARD docs for their parameters (CLIENT, CLUSTER, CONFIG and DEBUG as bare commands, EVAL, EVALSHA, MONITOR, SHUTDOWN, SLAVEOF and SYNC) and 8 subcommands whose container has no docs (the PUBSUB ones, SLOWLOG HELP and XGROUP CREATECONSUMER). Learned: redis-rb container commands are one method each that passes the subcommand through, so a subcommand entry shows the container call with the symbol in the signature, and the tab prints only the method name Constraint: only emit an entry when every parameter has a YARD @PARAM and the method has a @return, otherwise the type would be invented Directive: do not list a command redis-rb 6.0.0 lacks, send it with call, and check the source for the method before marking generic_only Gaps: the tab renders client(:kill, *args) as client( *args ), so the subcommand symbol is not visible, as for XGROUP CREATE Gaps: the 18 undocumented methods and subcommands were not given entries Recheck: when redis-rb ships a release after 6.0.0, search the new source for the generic_only commands Ticket: DOC-7267 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
andy-stark-redis
added a commit
that referenced
this pull request
Nov 9, 2026
The Ruby entries were added to the API Methods tab dropdown in #4498, but 310 of the 527 commands had no redis_rb list. Each is now accounted for against the redis-rb v6.0.0 source, the current release. 89 command files get an entry and 203 commands are recorded as generic_only in the status file, so the tab says to use call. Entries: 23 commands name a method with complete YARD docs (BITCOUNT, BITOP, BITPOS, GETBIT, SETBIT, GEOSEARCH, GEOSEARCHSTORE, ECHO, INFO, PING, TIME and others) and take its signature, the @PARAM types and descriptions, and the @return. 66 container subcommands go through the container method that forwards the subcommand to the server, as XGROUP CREATE already does: client(:kill, *args), cluster, script and config with the same shape, slowlog(:get, length = nil), and xinfo for stream, groups and consumers with the return type that belongs to that subcommand. generic_only: 203 commands that redis-rb 6.0.0 has no method for, among them the array AR* commands, the V* vector commands, the TS, TDIGEST, CF, BF, TOPK and CMS module commands, the HOTKEYS family, the hash field-expiry commands, FUNCTION and COMMAND subcommands, and FT.EXPLAINCLI, FT._LIST, JSON.RESP and HELLO. A method for each was searched for by name and by the command symbol in the library source. Left without an entry or status: 10 methods that exist but have no YARD docs for their parameters (CLIENT, CLUSTER, CONFIG and DEBUG as bare commands, EVAL, EVALSHA, MONITOR, SHUTDOWN, SLAVEOF and SYNC) and 8 subcommands whose container has no docs (the PUBSUB ones, SLOWLOG HELP and XGROUP CREATECONSUMER). Learned: redis-rb container commands are one method each that passes the subcommand through, so a subcommand entry shows the container call with the symbol in the signature, and the tab prints only the method name Constraint: only emit an entry when every parameter has a YARD @PARAM and the method has a @return, otherwise the type would be invented Directive: do not list a command redis-rb 6.0.0 lacks, send it with call, and check the source for the method before marking generic_only Gaps: the tab renders client(:kill, *args) as client( *args ), so the subcommand symbol is not visible, as for XGROUP CREATE Gaps: the 18 undocumented methods and subcommands were not given entries Recheck: when redis-rb ships a release after 6.0.0, search the new source for the generic_only commands Ticket: DOC-7267 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
andy-stark-redis
added a commit
that referenced
this pull request
Nov 9, 2026
The API Methods tab lists ioredis since #4498, but 368 of the 527 commands had an empty or missing ioredis list. Each is now accounted for against the RedisCommander overloads declared in ioredis 5.11.1, the version #4496 settled on. 225 command files get 444 entries and 132 commands are recorded as generic_only in the status file, so the tab says to use call. 114 commands that name a method (DEL, EXPIRE, the AR and V commands and so on) take the declared overloads of that method, and 111 container subcommands (ACL CAT, CLIENT KILL, CLUSTER ADDSLOTS, XGROUP and others) take the overloads of the container method whose subcommand literal is theirs. Each list stops at five overloads, the same reach as the existing SET and ZADD entries. Returns are the declared Result<T, Context> and descriptions are empty. The generic_only set is the 116 module commands, 6 container subcommands with no typed overload and 10 commands with no method. Five CLUSTER commands are declared with the CLUSTER SLOTS reply type, so they keep it and the return description says Redis replies OK. Learned: ioredis container commands are one method each, the subcommand is the first parameter literal, so a subcommand entry is the subset of that method's overloads with its literal Constraint: the reference is ioredis 5.x, a command only 6.x declares would be wrongly generic_only, none of the 368 is one Directive: do not list ioredis methods the declarations lack, such as module commands, send them with call Gaps: five overloads per command is a presentation choice, many methods declare more, plus Buffer variants that are not listed Recheck: when the docs move to ioredis 6.x, regenerate and revisit the generic_only commands that 6.x types Ticket: DOC-7267 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
andy-stark-redis
added a commit
that referenced
this pull request
Nov 9, 2026
The Ruby entries were added to the API Methods tab dropdown in #4498, but 310 of the 527 commands had no redis_rb list. Each is now accounted for against the redis-rb v6.0.0 source, the current release. 89 command files get an entry and 203 commands are recorded as generic_only in the status file, so the tab says to use call. Entries: 23 commands name a method with complete YARD docs (BITCOUNT, BITOP, BITPOS, GETBIT, SETBIT, GEOSEARCH, GEOSEARCHSTORE, ECHO, INFO, PING, TIME and others) and take its signature, the @PARAM types and descriptions, and the @return. 66 container subcommands go through the container method that forwards the subcommand to the server, as XGROUP CREATE already does: client(:kill, *args), cluster, script and config with the same shape, slowlog(:get, length = nil), and xinfo for stream, groups and consumers with the return type that belongs to that subcommand. generic_only: 203 commands that redis-rb 6.0.0 has no method for, among them the array AR* commands, the V* vector commands, the TS, TDIGEST, CF, BF, TOPK and CMS module commands, the HOTKEYS family, the hash field-expiry commands, FUNCTION and COMMAND subcommands, and FT.EXPLAINCLI, FT._LIST, JSON.RESP and HELLO. A method for each was searched for by name and by the command symbol in the library source. Left without an entry or status: 10 methods that exist but have no YARD docs for their parameters (CLIENT, CLUSTER, CONFIG and DEBUG as bare commands, EVAL, EVALSHA, MONITOR, SHUTDOWN, SLAVEOF and SYNC) and 8 subcommands whose container has no docs (the PUBSUB ones, SLOWLOG HELP and XGROUP CREATECONSUMER). Learned: redis-rb container commands are one method each that passes the subcommand through, so a subcommand entry shows the container call with the symbol in the signature, and the tab prints only the method name Constraint: only emit an entry when every parameter has a YARD @PARAM and the method has a @return, otherwise the type would be invented Directive: do not list a command redis-rb 6.0.0 lacks, send it with call, and check the source for the method before marking generic_only Gaps: the tab renders client(:kill, *args) as client( *args ), so the subcommand symbol is not visible, as for XGROUP CREATE Gaps: the 18 undocumented methods and subcommands were not given entries Recheck: when redis-rb ships a release after 6.0.0, search the new source for the generic_only commands Ticket: DOC-7267 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
andy-stark-redis
added a commit
that referenced
this pull request
Nov 9, 2026
The Ruby entries were added to the API Methods tab dropdown in #4498, but 310 of the 527 commands had no redis_rb list. Each is now accounted for against the redis-rb v6.0.0 source. 89 command files get an entry and 203 commands are recorded as generic_only in the status file, so the tab says to use call. 23 commands name a method with complete YARD docs (BITCOUNT, BITOP, GETBIT, GEOSEARCH, INFO, PING, TIME and others) and take its signature, @PARAM types and descriptions, and @return. 66 container subcommands go through the container method that forwards the subcommand to the server, as XGROUP CREATE already does: client(:kill, *args), cluster, script and config with the same shape, slowlog(:get, length = nil), and xinfo for stream, groups and consumers with the return type that belongs to the subcommand. The 203 generic_only commands have no method in redis-rb 6.0.0, among them the array AR* commands, the V* vector commands, the module commands, the HOTKEYS family and the hash field-expiry commands, each searched for by name and by command symbol. The 18 methods without YARD parameter docs are covered by #4516 and the literal subcommand symbol is shown by #4514. Learned: redis-rb container commands are one method each that passes the subcommand through, so a subcommand entry shows the container call with the symbol in the signature Constraint: only emit an entry from YARD when every parameter has a @PARAM and the method has a @return, otherwise the type would be invented Directive: do not list a command redis-rb 6.0.0 lacks, send it with call, and check the source for the method before marking generic_only Recheck: when redis-rb ships a release after 6.0.0, search the new source for the generic_only commands Ticket: DOC-7267 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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
Adds ioredis and Ruby to the API Methods tab dropdown. The ioredis question was raised in review on #4496. The data for both clients was in
data/command-api-mapping.jsonbut never rendered.config.tomlalready gave both clients amappingClientId, but the dropdown is built from a fixed list inapi-methods-tab.html, and neither was in it."ioredis"after"Node.js"and"Ruby"after"PHP"in$clientOrderand$jsClientOrder.genericCall="call"for both inconfig.toml. ioredis declarescall(command, args)inRedisCommander.d.ts(5.11.1). redis-rb v6.0.0 documentsRedis::Commands#call.Review notes
generic_onlywould be wrong. Filling the gap is separate work under DOC-7267.content/develop/clientsignored (the full site only builds in CI). On SET, EVAL and ACL, the dropdown lists "ioredis" after "Node.js (node-redis)" and "Ruby (redis-rb)" after "PHP (Predis)". SET shows signatures for both; the other two show the default message.🤖 Generated with Claude Code
Note
Low Risk
Docs-only Hugo config and partial list order; no auth, data, or runtime behavior beyond the command-reference UI.
Overview
Adds ioredis and Ruby to the API Methods tab so they appear in the client dropdown and participate in signature rendering and localStorage sync with code tabs.
Config: sets
genericCall="call"for bothioredisandRubyinparams.clientsConfig, so when status isgeneric_onlythe fallback message points at the right generic API.Layout: inserts
ioredisafterNode.jsandRubyafterPHPin both$clientOrderand$jsClientOrderinapi-methods-tab.html, matching the existing mapping data. Coverage for many commands may still show the default “no signature” copy where mappings are missing—that is unchanged and expected per the PR notes.Reviewed by Cursor Bugbot for commit 7232633. Bugbot is set up for automated code reviews on this repo. Configure here.