eiffel-community / eiffel-community/eiffel-pythonlib

Remove context on callbacks

オープン
#20 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

enhancement
主要言語
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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

ファイルやテストは指定されていません。まず、Eiffel のイベントコールバックがイベントとコンテキストを受け取る場所を特定し、次に影響を受けるコールバックコンシューマーと、既存の互換性または非推奨化のパターンを追跡してください。レガシーコンテキスト引数が削除前に deprecated になり、コールバックインターフェースと影響を受けるコンシューマーが一貫して更新されていれば完了です。

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

評価

技術スタック
python
領域
api, backend
issue の種類
リファクタリング
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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