Skip to content

Commit

Permalink
Added tile grades for users with partial consent (0 goal grade) and b…
Browse files Browse the repository at this point in the history
…etter display this in student overview. Also added debug logging for assignment submissions error.
  • Loading branch information
allomanta committed Nov 18, 2024
1 parent b009978 commit 0984fb5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ export const getSettingsColumns = (): TableColumnsType<CommonData & SettingsData
const consentB = b.consent === undefined ? 0 : +b.consent;
return consentB - consentA;
},
render: (value: ConsentEnum) => {
render: (value: ConsentEnum, record) => {
if (value === ConsentEnum.Accepted) {
return (
<Tooltip title='Consent given'>
<CheckCircleOutlined className='text-success' />
<Tooltip title={record.goal ? 'Consent given' : 'Consent given without setting goal grade'}>
<CheckCircleOutlined className={record.goal ? 'text-success' : 'text-meh'} />
</Tooltip>
);
} else if (value === ConsentEnum.Refused) {
Expand Down
1 change: 1 addition & 0 deletions IguideME.Web/Services/LMSHandlers/CanvasHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ private AppGradingType mapGradingType(GradingType type)
/// <inheritdoc />
public IEnumerable<AssignmentSubmission> GetSubmissions(int courseID, List<User> users)
{
_logger.LogInformation("Getting submissions for users:\n{}", users.Select(user => user.UserID));
return Connector
.FindCourseById(courseID)
.GetSubmissions(users.Select(user => user.UserID).ToArray(), false)
Expand Down
2 changes: 1 addition & 1 deletion IguideME.Web/Services/Workers/PeerGroupWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ List<string>[] groupUsers()
{
List<string>[] groupedUsers = new List<string>[11];

for (int goalGrade = 1; goalGrade <= 10; goalGrade++)
for (int goalGrade = 0; goalGrade <= 10; goalGrade++)
{
groupedUsers[goalGrade] = _databaseManager.GetUserIDsWithGoalGrade(
this._courseID,
Expand Down
4 changes: 2 additions & 2 deletions charts/iguideme/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: iguideme
description: IguideME
type: application
version: 0.3.238
appVersion: "0.3.238"
version: 0.3.239
appVersion: "0.3.239"

0 comments on commit 0984fb5

Please sign in to comment.