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

[DEV-54] 편입 로직 수정 및 리팩토링 #297

Merged
merged 9 commits into from
Dec 31, 2024
Merged

Conversation

tiemo0708
Copy link
Collaborator

Issue

✅ 작업 내용

편입 전공 인정 학점이 taken_credit에 반영되게 수정
user의 편입 인정 학점 업데이트 리팩토링

Copy link

@tiemo0708 tiemo0708 added the 🐛 fix 정상적으로 동작하지 않는 부분 수정 label Dec 31, 2024
Copy link

codecov bot commented Dec 31, 2024

Codecov Report

Attention: Patch coverage is 89.28571% with 3 lines in your changes missing coverage. Please review.

Project coverage is 81.05%. Comparing base (8ddb5b0) to head (baa2855).
Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
...tebe/graduation/domain/model/GraduationResult.java 0.00% 0 Missing and 3 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##             develop     #297      +/-   ##
=============================================
+ Coverage      80.92%   81.05%   +0.13%     
- Complexity       621      627       +6     
=============================================
  Files            160      160              
  Lines           2642     2650       +8     
  Branches         101       99       -2     
=============================================
+ Hits            2138     2148      +10     
+ Misses           445      442       -3     
- Partials          59       60       +1     
Files with missing lines Coverage Δ
.../graduation/domain/model/DetailCategoryResult.java 85.71% <100.00%> (+0.52%) ⬆️
...ion/domain/model/FreeElectiveGraduationResult.java 96.42% <100.00%> (+0.13%) ⬆️
...ture/BusinessBasicAcademicalGraduationManager.java 80.00% <100.00%> (ø)
...ion/domain/service/major/ElectiveMajorManager.java 100.00% <100.00%> (ø)
...n/domain/service/major/MajorGraduationManager.java 100.00% <ø> (ø)
...ervice/update/UpdateStudentInformationService.java 100.00% <100.00%> (ø)
...uate/myongjigraduatebe/user/domain/model/User.java 93.75% <100.00%> (+2.61%) ⬆️
...tebe/graduation/domain/model/GraduationResult.java 74.57% <0.00%> (-1.29%) ⬇️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8ddb5b0...baa2855. Read the comment docs.

Copy link
Member

@stophwan stophwan left a comment

Choose a reason for hiding this comment

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

👍 굿굿 고생했습니다. 코멘트만 반영해주시고 닫으면 될것 같아요!

) {
this.name = name;
this.primaryMajor = major;
this.dualMajor = dualMajor;
this.subMajor = subMajor;
this.associatedMajor = associatedMajor;
this.studentCategory = studentCategory;
updateTransferCredit(transferCredit);
Copy link
Member

Choose a reason for hiding this comment

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

이렇게 되면 updateTransferCredit 메서드를 private 으로 닫아도 되지 않나요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

맞습니다 사실 그거 때문에 수정하였는데 빠트린것 같습니다 감사합니다

Comment on lines 44 to 47
if (user.getStudentCategory() == StudentCategory.TRANSFER) {
int transferCredit = user.getTransferCredit().getMajorLecture();
electiveMajorResult.addTakenCredits(transferCredit);
}
Copy link
Member

Choose a reason for hiding this comment

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

별도의 메서드로 분리하면 좋을것 같습니다!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

넵!!

@github-actions github-actions bot added the D-5 label Dec 31, 2024
@tiemo0708
Copy link
Collaborator Author

👍 굿굿 고생했습니다. 코멘트만 반영해주시고 닫으면 될것 같아요!

지금 집에 들어와서 늦게 바로 수정했습니다. 추가로 메서드 분리 필요한곳들 분리하였습니다

@tiemo0708 tiemo0708 merged commit 35c7bf8 into develop Dec 31, 2024
6 checks passed
@tiemo0708 tiemo0708 deleted the feature/DEV-54 branch December 31, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D-5 🐛 fix 정상적으로 동작하지 않는 부분 수정 size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants