🐛 Bug Report: query-redis-labs hardcodes Redis port 14714

オープン 初心者向け
#490 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
node.js, redis
領域
backend

調査の方向性

node/query-redis-labs/src/redis.jsから始めて、Redisクライアントがどのように接続設定を取得するかを追ってください。issueによると、ポートは14714に固定されています。関数テンプレートがREDIS_HOSTとREDIS_PASSWORDをどのように提供するかを確認し、データベースのポートを公開する方法、または接続URLを受け付ける方法を決めてください。Redis Cloudデータベースが割り当てられたポートを使い、テンプレート設定を通じて接続できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug javascript

Summary

query-redis-labs can only connect to a Redis Cloud database that happens to use port 14714.

Details

  • node/query-redis-labs/src/redis.js creates the client with port: 14714 (same at 1.2.0 and main).
  • Redis Cloud assigns each database its own port, and the Console template only asks for REDIS_HOST and REDIS_PASSWORD. That config lives in app/config/templates/function.php in appwrite/appwrite.

Suggested fix

Read the port from a REDIS_PORT variable and add it to the template's variables in appwrite/appwrite, or accept a full connection URL.

Notes

This turned up while adding templates to the appwrite.io integrations catalog. The Redis page is held back until this is fixed.

cc @adityaoberai

主要言語
HTML
スター
174
フォーク
129
平均マージ
1日 15時間
マージ済み PR(30日)
11

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

appwrite/templates のほかの issue

appwrite/templates の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。