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

#164046251: Implement CRUD for articles module #20

Merged
merged 1 commit into from
Mar 13, 2019

Conversation

Etomovich
Copy link
Contributor

@Etomovich Etomovich commented Mar 12, 2019

Description


This PR implements CRUD on articles module. Users should be able to create articles once they are registered. Users can view any article that is published and is still active. A user should be able to update and delete his/her own articles. He/she should also have the ability to publish articles.

The following endpoints are covered in this PR
POST articles/create - Create an article. Authentication is required.
GET articles - Get all articles. No authentication is required.
GET articles/<slug:slug> - Returns an article. No authentication is required.
PUT articles/<slug:slug>/edit - Update and article. Authentication is required and you must be the article owner.
PATCH articles/<slug:slug>/edit - Publish an article. Authentication is required and you must be the article owner.
DELETE articles/<slug:slug>/edit - Deletes an article. Authentication is required and you must be the article owner.

Type of change


  • Implement a new feature(CRUD for articles module)

How has this been tested


  • End to End
  • Integration

Checklist:


  • Users should be able to create articles
  • Users can fetch all articles
  • Article owner should be able to update his/her articles
  • Users should be able to delete articles
  • Users should be able to publish their articles
  • Add tests to show functionality

Related Stories


Create Article PT Story

@BrianSerem BrianSerem temporarily deployed to ah-legion-staging-pr-20 March 12, 2019 05:03 Inactive
@Etomovich Etomovich force-pushed the ft-create-articles-164046251 branch from 337af63 to eb0d34a Compare March 12, 2019 05:10
@Etomovich Etomovich temporarily deployed to ah-legion-staging-pr-20 March 12, 2019 05:10 Inactive
@Etomovich Etomovich force-pushed the ft-create-articles-164046251 branch from eb0d34a to 016f164 Compare March 12, 2019 05:40
@Etomovich Etomovich temporarily deployed to ah-legion-staging-pr-20 March 12, 2019 05:40 Inactive
@Etomovich Etomovich force-pushed the ft-create-articles-164046251 branch from 016f164 to 96a5293 Compare March 12, 2019 08:11
@Etomovich Etomovich temporarily deployed to ah-legion-staging-pr-20 March 12, 2019 08:11 Inactive
@cob04
Copy link
Contributor

cob04 commented Mar 12, 2019

Updating slug every time title is updated will lead to broken links, I believe this is a candidate for refactoring.

@abulojoshua1
Copy link
Contributor

@Etomovich, please fix the coverage drop.

@Etomovich
Copy link
Contributor Author

@Etomovich, please fix the coverage drop.

Ok am currently doing that as we speak

- Users should be able to create articles
- Users can fetch all articles
- Article owner should be able to update his/her articles
- Users should be able to delete articles
- Users should be able to publish articles.
- Add tests to show functionality

[Delivers #164046251]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants