eiffel-community / eiffel-community/eiffel-pythonlib
Remove context on callbacks
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 8
- フォーク
- 12
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Description
We always call the callbacks with the event object and the context in which this event was sent.
This is a legacy feature that was used when prototyping the eiffellib and should be removed as it does not serve any really good purpose other than clutter in the callbacks.
Note that we need to start by deprecating it and then remove it.
Motivation
I have found no need for this feature at all and I don't see any real need for it anywhere else.
If there is a need for something like this, then we should instead add a utility module to eiffellib.
For example a function for fetching a link value from an event (get_link("context")).
Exemplification
Less unnecessary clutter in callbacks.
Benefits
Less unnecessary clutter in callbacks.
Possible Drawbacks
Removing this outright will break a lot of tools that rely on it.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
ファイルやテストは指定されていません。まず、Eiffel のイベントコールバックがイベントとコンテキストを受け取る場所を特定し、次に影響を受けるコールバックコンシューマーと、既存の互換性または非推奨化のパターンを追跡してください。レガシーコンテキスト引数が削除前に deprecated になり、コールバックインターフェースと影響を受けるコンシューマーが一貫して更新されていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- api, backend
- issue の種類
- リファクタリング
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100