Is your feature request related to a problem? Please describe.
We need to make a more clear way to reject/accept articles for organization and tag moderators
Models
None
Schemas
None
API Routes
Organization Routes
- Reject Article
- Accept Article
Tag Routes
- Reject Article
- Accept Article
Endpoints | HTTP Method | Description | Tested
/api/organizations/<org_slug>/articles/<slug> | DELETE| Route to remove an article from an organization| :--:
/api/organizations/<org_slug>/articles/<slug> | PUT| Route to add an article to an organization| :--:
/api/tags/<tag_slug>/articles/<articleSlug> | DELETE| Route to remove an article from a tag | :--:
/api/tags/<tag_slug>/articles/<articleSlug> | PUT| Route to add an article to a tag | :--:
Create/Edit Functions
Remove Article from tag
- If this route is called it should remove the targeted article from the tags
needsReview column and remove it from the tag's articles column as well
Accept Article from tag
- If this route is called it should remove the article from the
needsReview column and add it to the tag's articles column.
Remove Article from organization
- If this route is called it should remove the targeted article from the organization's pending_articles list and remove it from the organization's
articles column as well
Accept Article from organization
- If this route is called it should remove the article from the organization's
pending_articles column and add it to the organization's articles column.
Additional Context
- After implementing the above routes, remove
review_article route from backend/conduit/tags/views.py and remove reviewed_article route from backend/conduit/organizations/views.py
Is your feature request related to a problem? Please describe.
We need to make a more clear way to reject/accept articles for organization and tag moderators
Models
Schemas
None
API Routes
Endpoints | HTTP Method | Description | Tested
/api/organizations/<org_slug>/articles/<slug>| DELETE| Route to remove an article from an organization| :--:/api/organizations/<org_slug>/articles/<slug>| PUT| Route to add an article to an organization| :--:/api/tags/<tag_slug>/articles/<articleSlug>| DELETE| Route to remove an article from a tag | :--:/api/tags/<tag_slug>/articles/<articleSlug>| PUT| Route to add an article to a tag | :--:Create/Edit Functions
needsReviewcolumn and remove it from the tag'sarticlescolumn as wellneedsReviewcolumn and add it to the tag'sarticlescolumn.articlescolumn as wellpending_articlescolumn and add it to the organization'sarticlescolumn.Additional Context
review_articleroute frombackend/conduit/tags/views.pyand removereviewed_articleroute frombackend/conduit/organizations/views.py