-
Notifications
You must be signed in to change notification settings - Fork 5
refactor(TeacherDataService): Extract runStatus-related functions to RunStatusService #1907
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
refactor(TeacherDataService): Extract runStatus-related functions to RunStatusService #1907
Conversation
hirokiterashima
left a comment
There was a problem hiding this 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.
| subscribeToEvents(): void { | ||
| this.configService.configRetrieved$.subscribe(() => { | ||
| if (this.configService.isClassroomMonitor()) { | ||
| this.retrieveRunStatus(); | ||
| } | ||
| }); | ||
| } |
There was a problem hiding this comment.
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> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type RunStatus?
| retrieveRunStatus(): Observable<any> { | |
| retrieveRunStatus(): Observable<RunStatus> { |
|
|
||
| setRunStatus(runStatus: RunStatus): void { | ||
| this.runStatus = runStatus; | ||
| setPeriods(periods: any[]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove?
|
🎉 This issue has been resolved in version 5.156.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Changes
Test