Align class names and code structure with the connectors in other languages
メンテナーはふだん 1 日以内に返信
@hessjcg がすでに取り組んでいます。
2024年4月30日 から。
評価
この issue はまだ評価されていません。
説明
The connectors in the other languages are structured with common names and separation of concerns.
Public API:
Connectoris the main public API to configure and connect.ConnectionOptionsis the value object containing connection options. main public API to configure and connect.
Internal API:
ConnectorRegistryis the internal class that holds configuration and caches for each database instance.ConnectionInfois a value object that holds the configuration and data for one database instance.ConnectionInfoCacheinterface holds the activeConnectionInfovalue for a single database instance and keeps it up to date, refreshing the data as needed.RefreshAheadCacheimplements theConnectionInfoCacheusing the current connector refresh algorithmLazyRefreshCache(to be added with #285) implementsConnectionInfoCacheusing the lazy refresh algorithm.ConnectionInfoRepositorycalls the Cloud SQL Admin API to build an up-to-dateConnectionInfoobject.
To get to the NodeJS connector codebase into state, we will need to move some code and rename some classes.
- Rename
CloudSQLInstanceMaptoConnectorRegistry - Rename
InstanceConnectionInfotoConnectionInfo - Rename
CloudSQLInstanceclass toRefreshAheadCache - Rename
Fetcherinterface toConnectionInfoRepository - Rename
SqlAdminFetcherclass toDefaultConnectionInfoRepository
- 主要言語
- TypeScript
- スター
- 99
- フォーク
- 18
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 20
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GoogleCloudPlatform/cloud-sql-nodejs-connector のほかの issue
-
flakybot: issue priority: p2 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
GoogleCloudPlatform/cloud-sql-nodejs-connector#658 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
GoogleCloudPlatform/cloud-sql-nodejs-connector#656 ·
メンテナーはふだん 1 日以内に返信
-
flakybot: flaky flakybot: issue priority: p2 type: bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
GoogleCloudPlatform/cloud-sql-nodejs-connector#657 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Cloud Build Failure Reporter: node-integration-test-nightly (cloud-sql-connector-testing) failedオープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
GoogleCloudPlatform/cloud-sql-nodejs-connector#641 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 35/100
GoogleCloudPlatform/cloud-sql-nodejs-connector#634 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
GoogleCloudPlatform/cloud-sql-nodejs-connector の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
bug P3
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信