DevCom-IITB / DevCom-IITB/instiapp-api

Add body blocking

Open
#90 0 comments 0 reactions 1 assignee Claimed by @arya2331 View on GitHub
need: endpoint sec: prioritizer type: feature
Dominant language
Python
Stars
26
Forks
77
PR merge metrics
No merged PRs in 30d

Description

Create endpoints to allow users to block bodies, wherein they won't see any event for the body anywhere, except when the event is opened directly. Implement this by imposing a large penalty in the prioritizer if the body or any parent is blocked.
* `POST /api/bodies/{uuid}{?block}` where block is `1` or `0`
* When returning the body with any serializer, a `blocked: true` should be present *only if* the body is blocked, i.e. there should be no `blocked: false`

#17

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.