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

#417 Add Bulk Rating #597

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
"url-polyfill": "^1.1.12",
"vite": "^5.4.7",
"vite-tsconfig-paths": "^5.0.1",
"xlsx": "^0.18.5",
"zod": "^3.23.8"
},
"devDependencies": {
Expand Down
52 changes: 52 additions & 0 deletions src/Mutations/Ratings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,55 @@ export const REJECT_RATING = gql`
rejectRating(user: $user, sprint: $sprint)
}
`;

export const GET_RATINGS_BY_COHORT = gql`
query getRatingsByCohort($cohortId: String!, $orgToken: String!){
getRatingsByCohort(cohortId: $cohortId, orgToken: $orgToken){
id
sprint
}
}
`

export const ADD_RATINGS_BY_FILE = gql`
mutation addRatingsByFile($file: Upload!, $cohortId: String!, $sprint: Int!, $orgToken: String!){
addRatingsByFile(file: $file, cohortId: $cohortId, sprint: $sprint orgToken: $orgToken){
NewRatings {
user {
email
}
sprint
phase
quality
quantity
professional_Skills
feedbacks {
sender {
email
}
content
createdAt
}
cohort {
name
}
}
RejectedRatings{
email
quantity
quality
professional_skills
feedBacks
}
UpdatedRatings {
quantity
quality
professional_Skills
feedbacks {
content
}
oldFeedback
}
}
}
`
9 changes: 9 additions & 0 deletions src/Mutations/cohortMutations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,12 @@ export const DeleteCohort = gql`
}
}
`;

export const GET_USER_COHORTS = gql`
query getUserCohorts($orgToken: String!){
getUserCohorts(orgToken: $orgToken) {
id
name
}
}
`
12 changes: 12 additions & 0 deletions src/Mutations/teamMutation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,15 @@ export const DeleteTeam = gql`
}
`;

export const GET_TEAMS_BY_COHORT = gql`
query getTeamsByCohort($cohortId: String!,$orgToken: String!) {
getTeamsByCohort(cohortId: $cohortId,orgToken: $orgToken){
id
name
members {
email
role
}
}
}
`
Loading
Loading