Add ability to link fiscal sponsors to changemaker #1490
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A fiscal sponsor in PDC terms is another changemaker. To add a fiscal sponsor to a changemaker, call the new endpoint
PUT /changemakers/{changemakerId}/fiscalSponsors/{fiscalSponsorChangemakerId}
To remove the relationship, call the correspondingDELETE
endpoint.The
GET /changemakers/{changemakerId}
endpoint now returns a list of fiscal sponsors. The list is composed of shallow changemakers to avoid a technical issue of potential infinite recursion. So the caller will not see thefields
orfiscalSponsors
within thefiscalSponsors
returned byGET /changemakers/{changemakerId}
. To get the detailed data on a changemaker, simply call the sameGET
with the sponsor ID.There is some ambiguity about whether this explicitly modeled fiscal sponsorship relationship in PDC is intended to be only current relationships or both current and past relationships. Assume for now that it is both current and past, reserving
DELETE
for mistaken data entry.Circular sponsorship graphs are supported but not direct self-sponsorship cycles.
Issue #1485 Support fiscal sponsor relationships between changemakers