Skip to content

Conversation

@RichDom2185
Copy link
Member

@RichDom2185 RichDom2185 commented Oct 29, 2024

Description

Closes #3072.

Also fixes a small bug following #3061 so that updated achievements can be redisplayed in the frontend when the backend returns with fresh data.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Code quality improvements

How to test

Checklist

  • I have tested this code
  • I have updated the documentation

It was previously not reupdating properly when new data is fetched from
the backend.
@RichDom2185 RichDom2185 self-assigned this Oct 29, 2024
@RichDom2185 RichDom2185 enabled auto-merge (squash) October 29, 2024 02:24
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11566119996

Details

  • 1 of 2 (50.0%) changed or added relevant lines in 1 file are covered.
  • 3 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.007%) to 31.335%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/commons/assessmentWorkspace/AssessmentWorkspace.tsx 1 2 50.0%
Files with Coverage Reduction New Missed Lines %
src/commons/assessmentWorkspace/AssessmentWorkspace.tsx 1 64.57%
src/commons/application/actions/SessionActions.ts 1 80.0%
src/pages/achievement/control/AchievementControl.tsx 1 0.0%
Totals Coverage Status
Change from base Build 11565577526: -0.007%
Covered Lines: 4833
Relevant Lines: 14552

💛 - Coveralls

Copy link
Contributor

@josh1248 josh1248 left a comment

Choose a reason for hiding this comment

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

LGTM!

handleTeamOverviewFetch(props.assessmentId);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
if (assessmentOverview && assessmentOverview.maxTeamSize > 1) {
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like a good fix!

// We only want to create the inferencer once
// eslint-disable-next-line react-hooks/exhaustive-deps
[]
[initialAchievements, initialGoals]
Copy link
Contributor

Choose a reason for hiding this comment

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

good change to enable reload of achievements.

@RichDom2185 RichDom2185 merged commit 105546f into master Oct 29, 2024
8 checks passed
@RichDom2185 RichDom2185 deleted the 2024-10/fix-miscellaneous-bugs branch October 29, 2024 03:20
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.

Assessment Workspace: 404 when loading individual assessment

4 participants