Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace review article route for organizations and tags #111

Open
bryanwong8 opened this issue Jul 3, 2020 · 0 comments
Open

Replace review article route for organizations and tags #111

bryanwong8 opened this issue Jul 3, 2020 · 0 comments
Assignees
Labels
backend This is a backend issue
Projects

Comments

@bryanwong8
Copy link
Contributor

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
@bryanwong8 bryanwong8 added the backend This is a backend issue label Jul 3, 2020
@project-bot project-bot bot added this to To do in Bit Project Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend This is a backend issue
Projects
Bit Project
  
To do
Development

No branches or pull requests

2 participants