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

[OING-340] feature: 가족 초대 딥링크 발급 로직 변경 및 가족 초대 뷰 기반 API 실제 로직 추가 #262

Merged
merged 11 commits into from
Jun 18, 2024

Conversation

Ji-soo708
Copy link
Member

@Ji-soo708 Ji-soo708 commented Jun 17, 2024

❓ 기능 추가 배경


가족 초대 딥링크 발급 로직 변경 및 가족 초대 뷰 기반 API 실제 로직 추가했습니다.

➕ 추가/변경된 기능


  • 가족/딥링크 테이블 변경
  • 가족 초대 딥링크 발급 로직 변경
  • 가족 초대 뷰 기반 API 실제 로직 추가

🥺 리뷰어에게 하고싶은 말


추가된 코드가 많아 커밋 별로 보시면 편합니다.

🔗 참조 or 관련된 이슈


https://no5ing.atlassian.net/browse/OING-340

@Ji-soo708 Ji-soo708 added ✨ FEATURE 기능 추가 🔒 HOLD 머지하지 말고 잠시 홀드 우선순위_2 labels Jun 17, 2024
@Ji-soo708 Ji-soo708 self-assigned this Jun 17, 2024
Copy link

github-actions bot commented Jun 17, 2024

Test Results

 52 files   52 suites   12s ⏱️
144 tests 144 ✅ 0 💤 0 ❌
145 runs  145 ✅ 0 💤 0 ❌

Results for commit b942375.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jun 17, 2024

Code Coverage

File Coverage [69.24%]
FamilyInviteLinkService.java 100% 🍏
FamilyInviteLink.java 100% 🍏
MemberRepositoryCustomImpl.java 100% 🍏
DeepLinkController.java 92.92% 🍏
MemberService.java 89.67% 🍏
DeepLink.java 80% 🍏
PostRepositoryCustomImpl.java 78.01%
Family.java 70.37%
FamilyService.java 69.51%
MemberBridgeImpl.java 68.75%
DeepLinkService.java 66.67%
MemberController.java 45.45%
FamilyBridgeImpl.java 37.5%
PostBridgeImpl.java 28.57%
FamilyInviteViewController.java 17.31%
FamilyInviteDeepLinkResponse.java 0%
Total Project Coverage 52.59% 🍏


@Override
public FamilyInviteDeepLinkResponse getFamilyInviteLinkDetails(String linkId, String loginMemberId) {

// TODO : 기능 구현할 때, 응답 모킹용 코드 삭제하고 아래 주석 풀기
boolean isRequesterJoinedFamily = false;
// MemberResponse me = meApi.getMe(loginMemberId);
Copy link
Member Author

@Ji-soo708 Ji-soo708 Jun 17, 2024

Choose a reason for hiding this comment

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

meApi의 getMe 메서드를 그대로 사용하면 로그인하지 않은 사용자가 해당 API를 호출할 때, Member를 찾을 수 없다는 예외가 터져 해당 API용 getMemberNullable를 따로 추가해서 처리했습니다.

@Ji-soo708 Ji-soo708 requested review from Kwon770 and CChuYong June 17, 2024 12:01
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

.from(member)
.where(member.familyId.eq(familyId)
.and(member.deletedAt.isNull()))
.orderBy(member.profileImgUrl.desc().nullsLast())
Copy link
Member Author

Choose a reason for hiding this comment

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

기획 상으로는 프로필 이미지가 존재하는 회원부터 대표 구성원으로 보여야한다고 해서 정렬했습니다

@Ji-soo708 Ji-soo708 removed the 🔒 HOLD 머지하지 말고 잠시 홀드 label Jun 18, 2024
Copy link
Member

@CChuYong CChuYong left a comment

Choose a reason for hiding this comment

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

수고하셨슴다

@CChuYong CChuYong merged commit aa8bc81 into dev Jun 18, 2024
4 checks passed
@CChuYong CChuYong deleted the feature/OING-340 branch June 18, 2024 11:24
CChuYong pushed a commit that referenced this pull request Jun 21, 2024
* feature: add column to deep_link tbl and family_invite_link tbl

* feature: modify logic for issuing deep links

* feature: add inviter information logic to view-based API

* feature: add family name column to family tbl

* test: add family constructor to familyName field in test

* feature: add countSurvivalPostsByFamilyId method

* feature: add getFamilyMember's info method

* feature: add getFamilyMember's info logic to getFamilyInviteLinkDetails method

* feature: add getFamilyMemberNames logic

* chore: add delete previous data from deep_link and family_invite_link tbl

* test: add MemberRepositoryCustomTest
Ji-soo708 added a commit that referenced this pull request Jun 21, 2024
* feature: add column to deep_link tbl and family_invite_link tbl

* feature: modify logic for issuing deep links

* feature: add inviter information logic to view-based API

* feature: add family name column to family tbl

* test: add family constructor to familyName field in test

* feature: add countSurvivalPostsByFamilyId method

* feature: add getFamilyMember's info method

* feature: add getFamilyMember's info logic to getFamilyInviteLinkDetails method

* feature: add getFamilyMemberNames logic

* chore: add delete previous data from deep_link and family_invite_link tbl

* test: add MemberRepositoryCustomTest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants