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

GET cohort/project?type= #56

Merged
merged 7 commits into from
Apr 2, 2020
Merged

GET cohort/project?type= #56

merged 7 commits into from
Apr 2, 2020

Conversation

Mu7ammadAbed
Copy link
Member

I handled /cohorts/:cohortId/projects?type= with GET method which require creating a query function you can found at server/database/queries/project/getCohortProjects.js and require it at controller function you can found it in server/controllers/routes/admin/project/getCohortProjects.js.

I tried to made some tests hoping they are covering all the cases we would have and all the errors could occur.

Relates #16

@Mu7ammadAbed Mu7ammadAbed added Awaiting Review This PR is ready and waiting for review Backend labels Apr 1, 2020
Comment on lines 3 to 4
const { getCohortProjects } = require('./project');
const { addProject, editProject } = require('./project');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const { getCohortProjects } = require('./project');
const { addProject, editProject } = require('./project');
const { addProject, editProject, getCohortProjects } = require('./project');

rehabas
rehabas previously approved these changes Apr 2, 2020
@ranasobeid95 ranasobeid95 merged commit b73ba41 into master Apr 2, 2020
@ranasobeid95 ranasobeid95 deleted the 16-Get-cohort-Projects branch April 2, 2020 14:39
@ranasobeid95 ranasobeid95 added Done and removed Awaiting Review This PR is ready and waiting for review labels Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants