status-im / open-bounty

Enable communities to distribute funds to push their cause forward.
https://openbounty.status.im/
GNU Affero General Public License v3.0
118 stars 36 forks source link

Return open claims alongside bounties in API #437

Open martinklepsch opened 6 years ago

martinklepsch commented 6 years ago

Currently we send bounties and claims separately which led to issues like #432.

Similar to how claims are injected into owner-bounties (see code below) we should include claims with the API response. At the time of writing this "joining" is handled by a client side subscription.

https://github.com/status-im/open-bounty/blob/ece5333ae8b16e186ff2d44a144285dd727b0c53/src/clj/commiteth/routes/services.clj#L64-L71

Ultimately we will also need to implement server-side pagination as outlined in #250.