docs: `read_gifts` docstring names 5 of the 7 `GIFT_SOURCES`, and two registry comments point at CLI code that is going away
维护者通常 1 天内回复
已经有一个关联 PR 被合并了。
- #373 来自 @shivamlalakiya —— 已合并
评估
- 难度
- 1/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 82/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- python
调研方向
阅读philanthropy/ingest/_read_gifts.py,尤其是第40到80行,并更新read_gifts的docstring以及GIFT_SOURCES和_REGISTRY上方的注释。在changelog的[Unreleased]和### Documentation下添加一条项目。运行指定的doctest命令和make ci;两者都通过,并且描述不再依赖CLI细节或重复源名称,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Goal
The read_gifts docstring and the comments next to GIFT_SOURCES and _REGISTRY describe the registry as it is, so a reader of help(read_gifts) sees every CRM it accepts.
What is wrong today
In philanthropy/ingest/_read_gifts.py:
- The
read_giftsdocstring says the registry maps "each ofcivicrm,raisers_edge,npsp,nonprofit_cloud, andblackbaud_crm". That is 5 of the 7 names inGIFT_SOURCES:bloomeranganddonorperfectare missing. - The comment above
GIFT_SOURCESsays the names are listed "in the order the CLI's--sourcechoices already list them". The CLI lists only four (_FEATURE_SOURCESinphilanthropy/cli.py), and once #338 lands it readsGIFT_SOURCESdirectly, so the sentence is backwards either way. - The comment above
_REGISTRYsays it has "the same shape as the preset dispatch in cli.py's_cmd_features". #338 removes that dispatch.
Acceptance criteria
- The docstring points at
GIFT_SOURCESinstead of naming sources, so the next reader cannot make it stale again (the same rule #339 applies to the README row). - The two comments say what the objects are without referring to the CLI.
-
python -m pytest --doctest-modules philanthropy/ingest/_read_gifts.pyandmake cipass. - One CHANGELOG bullet under
[Unreleased],### Documentation.
Scope
Docstring and comments in one file. No behaviour change.
Where to start
philanthropy/ingest/_read_gifts.py, lines 40 to 80
Dependencies
- None. If #338's PR (#354) is still open, rebase after it merges; the comment edits touch nearby lines only.
Comment on this issue before you start so two people don't build the same thing.
- 主要语言
- Python
- 星标
- 11
- 派生
- 23
- 平均合并
- 1 天 6 小时
- 30 天内合并 PR
- 34
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PhilanthroPy-Project/PhilanthroPy 的其他 Issue
-
bug roadmap
难度 2/5 1-3 小时 新手友好度 77/100
PhilanthroPy-Project/PhilanthroPy#366 ·
维护者通常 1 天内回复
-
documentation good first issue roadmap
难度 2/5 1-3 小时 新手友好度 76/100
PhilanthroPy-Project/PhilanthroPy#361 ·
维护者通常 1 天内回复
-
enhancement help wanted roadmap
难度 2/5 1-3 小时 新手友好度 72/100
PhilanthroPy-Project/PhilanthroPy#345 ·
维护者通常 1 天内回复
-
beginner documentation good first issue roadmap
难度 2/5 半天 新手友好度 68/100
PhilanthroPy-Project/PhilanthroPy#342 ·
维护者通常 1 天内回复
-
beginner enhancement good first issue roadmap
难度 2/5 1-3 小时 新手友好度 78/100
PhilanthroPy-Project/PhilanthroPy#340 ·
维护者通常 1 天内回复
查看 PhilanthroPy-Project/PhilanthroPy 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 83/100
-
难度 2/5 1-3 小时 新手友好度 87/100
维护者通常 7 天内回复
-
good first issue
难度 2/5 1-3 小时 新手友好度 78/100
MTSWebServices/RecTools#330 ·
-
area: web priority: P1 story
难度 2/5 1-3 小时 新手友好度 76/100
nfiasco/Quant-Time-Machine#151 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
autowarefoundation/autoware_carla_scenario#2019 ·
维护者通常 1 天内回复