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

Create admin page to approve comments on completed challenge #85

Open
4 of 7 tasks
Mathiponds opened this issue May 1, 2020 · 0 comments
Open
4 of 7 tasks

Create admin page to approve comments on completed challenge #85

Mathiponds opened this issue May 1, 2020 · 0 comments
Labels
backend Related to the backend frontend Related to the frontend help wanted Extra attention is needed

Comments

@Mathiponds
Copy link
Collaborator

Mathiponds commented May 1, 2020

Create a page that is only accessible as an admin where we can approve comments and maybe pictures when the user approve his/her challenges.

  • Add a boolean approved to HasCompleted
  • Add a request /admin/notApprovedCompleted that returns all the HasCompleted that are still not approved
  • Add a request /admin/approveCompleted that approve the HasComplete
  • Add a request /admin/refuseCompleted that refuse the HasComplete
  • Make the requests /admin/** only accessible by the ADMIN
  • Change the DB to set the approved parameter to trueor false (but not NULL)
  • Make a page in frontend that request all the non approved HasComplete and make it possible to approve or refuse them
@Mathiponds Mathiponds added frontend Related to the frontend backend Related to the backend labels May 1, 2020
@Mathiponds Mathiponds added this to the Première release milestone May 1, 2020
@Mathiponds Mathiponds self-assigned this May 1, 2020
@Mathiponds Mathiponds added the help wanted Extra attention is needed label May 1, 2020
@Mathiponds Mathiponds removed their assignment May 1, 2020
Mathiponds added a commit that referenced this issue May 1, 2020
Add the variable approved to HasCompleted
When requesting completed challenge of a user
* if this user is the current user, it returns all the challenges, then one
approved and the ones not approved
* if this user is a friend of the current user, it returns only the
approved challenges

Issue #85
Mathiponds referenced this issue May 1, 2020
Help needed : Change in the database the Completed so that they all are
not Null in the Approved variable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to the backend frontend Related to the frontend help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant