Skip to content

Replace review article route for organizations and tags #111

@bryanwong8

Description

@bryanwong8

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

Metadata

Metadata

Assignees

Labels

backendThis is a backend issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions