Skip to content

Conversation

@breity
Copy link
Member

@breity breity commented Aug 20, 2024

Changes

  • Move all runStatus-related code from TeacherDataService to new RunStatusService.

Test

  • Make sure Teacher Tools/CM loads properly and retrieves all periods for runs.
  • Make sure VLE loads properly for students when launching runs.
  • Make sure pause screens functionality works as before for both teachers and students (CM and VLE).

@breity breity requested a review from hirokiterashima August 20, 2024 21:44
@breity breity self-assigned this Aug 20, 2024
@hirokiterashima hirokiterashima added this to the Tech Debt 18 -> 17 milestone Aug 21, 2024
Copy link
Member

@hirokiterashima hirokiterashima left a comment

Choose a reason for hiding this comment

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

LGTM. I added minor code improvement suggestions inline.

Comment on lines 20 to 26
subscribeToEvents(): void {
this.configService.configRetrieved$.subscribe(() => {
if (this.configService.isClassroomMonitor()) {
this.retrieveRunStatus();
}
});
}
Copy link
Member

Choose a reason for hiding this comment

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

Move inside body of constructor and remove function?

});
}

retrieveRunStatus(): Observable<any> {
Copy link
Member

Choose a reason for hiding this comment

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

Type RunStatus?

Suggested change
retrieveRunStatus(): Observable<any> {
retrieveRunStatus(): Observable<RunStatus> {


setRunStatus(runStatus: RunStatus): void {
this.runStatus = runStatus;
setPeriods(periods: any[]) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
setPeriods(periods: any[]) {
setPeriods(periods: any[]): void {

import { TeacherWebSocketService } from '../../assets/wise5/services/teacherWebSocketService';
import { NotebookService } from '../../assets/wise5/services/notebookService';
import { AchievementService } from '../../assets/wise5/services/achievementService';
import { RunStatus } from '../../assets/wise5/common/RunStatus';
Copy link
Member

Choose a reason for hiding this comment

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

Remove?

@breity breity merged commit 4e7c96f into develop Aug 21, 2024
@breity breity deleted the refactor-TeacherDataService-create-RunStatusService branch August 21, 2024 16:43
@geoffreykwan
Copy link
Member

🎉 This issue has been resolved in version 5.156.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants