event-plugin: Replace source enum with metadata field in events plugin
まだ誰も着手していません。
評価
調査の方向性
まず、必須の環境フィールド source-kind がどのように設定され、発行されるイベントに追加されるかを追跡します。既存の環境と設定ファイルの処理を比較し、そのフローをイベントの発行を維持したまま meta のサポートに置き換えます。メタデータをサポートされている設定経路から指定でき、source-kind が不要になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Problem
Right now we have a required env var field source-kind that is related to the LSP architecture. This field is added to an every event emitted and helps to distinguish between different node types within LSP architecture.
Solution
Since we want the plugin to be more generic, we need to get rid from source-kind, however still have an ability to add additional information to an event. Therefore, we'll benefit from a new field called 'meta':
metashould be set via env variables. We can go in both ways of providing meta data:- env variables. We can define an environment variable which would receive metadata as a key-value string. e.g. this could be in JSON format, something like
EVENT_PLUGIN_META='{"source_kind": "gateway"}'; - config file. We can have a config file (e.g.
.toml) which would contain an information. That's might suit us well since we already have a config file; - apply both variants;
- env variables. We can define an environment variable which would receive metadata as a key-value string. e.g. this could be in JSON format, something like
- the flow should be the same as it was introduced for
source-kind.
- 主要言語
- Rust
- スター
- 3
- フォーク
- 0
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Blockstream/cln-plugins のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
Blockstream/cln-plugins#11 ·
Blockstream/cln-plugins の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
linebender/parley#849 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
boxlite-ai/boxlite#1729 ·
メンテナーはふだん 1 日以内に返信
-
external
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
langchain-ai/docs#6255 ·
メンテナーはふだん 1 日以内に返信
-
P2 testing
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信