Stop asking for confirmation before Redis blocking commands the provider refuses - #1174
Conversation
…the provider refuses The blocking list-pop commands are refused by query() before they reach the server, so the dialog asked for confirmation and the results panel then said the command will not run. The non-blocking forms stay in the vocabulary and the dialog asks for them as before
…ibredb#1164) Only LPOP was asserted, so deleting any of the other seven from the vocabulary left every test green. Also names the refused family as list and sorted-set pops, since BZPOPMIN, BZPOPMAX and BZMPOP are not list commands.
|
Thanks, this does what #1164 asked. The eight blocking names are gone and their non-blocking forms stay. The new tests fail on main (8 of 8) and pass here. I checked it in the app against redis 8.10.2: I pushed one small commit on top, 8956f33. Among the non-blocking forms only |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Fixes #1164
Since #1121
RedisProvider.query()refuses the blocking list-pop commands before they reach the server, butREDIS_DESTRUCTIVE_COMMANDSstill containedBLPOP,BRPOP,BLMPOP,BLMOVE,BRPOPLPUSH,BZPOPMIN,BZPOPMAXandBZMPOP, so the user was first asked to confirm and then told the command will not run.The eight names are removed from the vocabulary; their non-blocking forms stay. The docblock now says the vocabulary names only commands the provider runs and points to
sharedConnectionRefusaland section 5.2b of the Redis provider doc, which also gained a sentence to that effect in its confirmation-gate section