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

refactor(TeacherDataService): Move getVisiblePeriodsById() to PeerGroupDialog #2009

Merged

Conversation

hirokiterashima
Copy link
Member

@hirokiterashima hirokiterashima commented Nov 27, 2024

Changes

This pull request includes several changes to improve the encapsulation and code quality of the PeerGroupDialogComponent and TeacherDataService classes. The most important changes include modifying access levels for class members, refactoring methods for better readability, and removing redundant code.

Encapsulation improvements in PeerGroupDialogComponent:

  • Changed the access levels of currentPeriodChangedSubscription, peerGroupingName, and periods from public to private or protected.
  • Updated the constructor to use dataService and projectService instead of teacherDataService and teacherProjectService.

Refactoring methods in PeerGroupDialogComponent:

  • Moved the unsubscribe call to the ngOnDestroy lifecycle hook and refactored the setPeriods method for better readability.

Removal of redundant code in TeacherDataService:

  • Removed the getVisiblePeriodsById and getPeriodById methods as they were no longer needed. [1] [2]

Test

  • Peer Grouping dialog appears and you can change the period as before

…upDialog, where it's called. Clean up logic.
@hirokiterashima hirokiterashima self-assigned this Nov 27, 2024
@hirokiterashima hirokiterashima added this to the Tech Debt 17 -> 16 milestone Nov 27, 2024
@hirokiterashima hirokiterashima merged commit 999bbc5 into develop Nov 27, 2024
5 checks passed
@hirokiterashima hirokiterashima deleted the refactor-PeerGroupDialog-getVisiblePeriodsById branch November 27, 2024 05:38
@hirokiterashima
Copy link
Member Author

🎉 This issue has been resolved in version 5.163.0 🎉

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.

1 participant