Need Migration Notices When v3 Code Detected
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- node.js, typescript
Direzione di ricerca
Inizia esaminando l’entry point createClient() e i metodi dipendenti dalla connessione discussi nell’issue, confrontando il comportamento di v3 e v4 descritto. Identifica quali chiamate in stile v3 possono essere rilevate in modo affidabile e definisci il comportamento di avviso o errore; il lavoro è considerato completato quando gli avvisi di migrazione coprono i casi comuni concordati e sono verificati rispetto all’utilizzo di v3 segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
New user of node-redis, I was following the abundant documentation and examples across the 'net, including https://docs.redis.com/latest/rs/references/client_references/client_nodejs/ Unfortunately, nearly all documentation is for v3, which caused hours of lost time. Of particular note to me, the fact that clientConnect() no longer automatically connects made the code fail invisibly.
I finally found this repo, and realized that the problem was that I was using a very-new version of node-redis. I'm excited to explore this version in the future - at this time, it looks like an improvement on the previous design! (I'm especially excited to able to use await.)
However, we need clear messages which will warn users that they are using deprecated code. One simple example would be the host parameter, which can be passed to createClient(); if a user is passing that parameter, then it almost certainly means that they are using code that expects v3. An explicit error message would be very useful, and save your potential users hours of frustration. (It also lowers a barrier to entry for people just exploring the library, and thus prevents driving away potential future users.)
I know that many of the examples online (and thus, I presume many of your users) pass no parameters to createClient(), so the host parameter, while useful, is incomplete. Unfortunately, I'm too much of a newbie at this library to suggest where other warnings might be useful, but hopefully you can suggest some. Are there any commonly-used methods which are not sensible to call until the client has called connect()? That might be a good way to detect v3-expectant code.
Environment:
- Node.js Version: v10.19.0
- Node Redis Version: 4.0.0, reverted to 3.1.2
- Platform: Ubuntu Docker Container
- Lingua principale
- TypeScript
- Stelle
- 17.6k
- Fork
- 2k
- Merge medio
- 1g 22h
- PR unite (30g)
- 62
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di redis/node-redis
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
redis/node-redis#3664 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
After a MOVING handoff, a client never becomes ready again on reconnectForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 68/100
redis/node-redis#3705 ·
I maintainer di solito rispondono entro 1 giorno
-
accepted Bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
redis/node-redis#3674 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Support Uint8Array values for zero-copy transfer to worker_threadsForse già presa @umeshmore45 l’ha presa 286 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
redis/node-redis#3106 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
`RedisClientType` type is slow to typecheck (TS performance issue)Forse di nuovo libera @nkaradzhov l’ha presa 556 giorni fa e non c’è nessuna pull request aperta. ApertaBug
redis/node-redis#2975 · 30 commenti · 27 reazioni · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di redis/node-redis
Issue simili
-
agent/guide documentation help wanted stage/010-actionable
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
kubestellar/console-marketplace#1101 ·
I maintainer di solito rispondono entro 1 giorno
-
Java Edition Tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
JSPrismarine/JSPrismarine#4178 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
totec448-spec/chat-on-steroids#2394 ·
I maintainer di solito rispondono entro 1 giorno
-
github_actions
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
StellarHyperion/stellarhyperion-backend#499 ·
I maintainer di solito rispondono entro 1 giorno