CodeForPhilly / CodeForPhilly/stately

context.events should use dot notation

オープン
#42 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
api
主要言語
Python
スター
22
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

説明

Ideally we'd be able to do something like this:

``` python
event_names = [event.action.name for event in events]
if 'Approve Taxes' in event_names and 'Approve Parking' in event_names:
change_state('Approved')
```

But currently we have to use:

``` python
event_names = [event['action']['name'] for event in events]
```

Not a huge deal, just easier to write.
Related to #20

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

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

No file, test, or entry point is named. Start by tracing how context.events is constructed and consumed, then identify the existing tests for event access; done means supporting the shown dot-notation example without breaking current dictionary-style access.

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

評価

技術スタック
python
領域
backend
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

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

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