docs: `read_gifts` docstring names 5 of the 7 `GIFT_SOURCES`, and two registry comments point at CLI code that is going away
I maintainer di solito rispondono entro 1 giorno
Una pull request collegata è già stata integrata.
- #373 di @shivamlalakiya — integrata
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 82/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- documentation
Direzione di ricerca
Leggi philanthropy/ingest/_read_gifts.py, in particolare le righe da 40 a 80, e aggiorna la docstring di read_gifts e i commenti sopra GIFT_SOURCES e _REGISTRY. Aggiungi un punto sotto [Unreleased] e ### Documentation nel changelog. Esegui il comando doctest specificato e make ci; il lavoro è terminato quando entrambi hanno esito positivo e le descrizioni non dipendono più dai dettagli della CLI né ripetono i nomi delle fonti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 11
- Fork
- 23
- Merge medio
- 1g 6h
- PR unite (30g)
- 35
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PhilanthroPy-Project/PhilanthroPy
-
bug roadmap
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
PhilanthroPy-Project/PhilanthroPy#366 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue roadmap
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
PhilanthroPy-Project/PhilanthroPy#361 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement help wanted roadmap
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
PhilanthroPy-Project/PhilanthroPy#345 ·
I maintainer di solito rispondono entro 1 giorno
-
beginner documentation good first issue roadmap
Difficoltà 2/5 Mezza giornata Idoneità per principianti 68/100
PhilanthroPy-Project/PhilanthroPy#342 ·
I maintainer di solito rispondono entro 1 giorno
-
beginner enhancement good first issue roadmap
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
PhilanthroPy-Project/PhilanthroPy#340 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di PhilanthroPy-Project/PhilanthroPy
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
SpikeInterface/spikeinterface#4924 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
aws-samples/sample-per-model-bedrock#782 ·
I maintainer di solito rispondono entro 1 giorno
-
bug javascript
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
No-op PreToolUse:Bash hook (bash_hook.py) still registered synchronously; adds latency and can time out at 10 sForse già presa @alexgr-agent l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
alexgreensh/token-optimizer#313 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100