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

[Feat] 연동된 피그마 계정 조회, 연동 해제 기능 구현 #45

Merged
merged 4 commits into from
Nov 14, 2024

Conversation

cowboysj
Copy link
Member

@cowboysj cowboysj commented Nov 13, 2024

#️⃣ 관련 이슈

💡 작업내용

1. 연동된 피그마 계정 조회

  • memberUtil을 사용해서 해당 유저의 피그마 계정 리스트 반환

2. 피그마 계정 연동 해제 기능 구현

  • figmaId를 쿼리 파라미터로 받아 해당 피그마 계정을 soft delete
  • deletedAt 필드 추가했습니다.

📸 스크린샷(선택)

📝 기타

  • 연동 해제 기능은 테스트했는데, 로컬에서 memberUtil이 안 되는 이슈가 아직 해결이 안 돼서 배포된 서버로 피그마 계정 조회 테스트하겠습니다.
  • 피그마 도메인을 따로 뺄까 했는데, 피그마 로그인을 제외하면 2개가 다여서 그대로 Auth에서 작업했습니다.

@cowboysj cowboysj linked an issue Nov 13, 2024 that may be closed by this pull request
2 tasks
@cowboysj cowboysj requested a review from iiqcov November 13, 2024 19:23
@cowboysj cowboysj self-assigned this Nov 13, 2024
@cowboysj cowboysj added the ✨ feature 기능 구현 label Nov 13, 2024
Copy link
Contributor

@iiqcov iiqcov left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~!

@@ -36,13 +38,20 @@ public class Figma extends BaseTimeEntity {
@Column(nullable = false)
private String figmaUserId;

@Column(nullable = true)
Copy link
Contributor

Choose a reason for hiding this comment

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

nullable = true 는 기본 설정이라서 추가를 안해도 괜찮을 것 같습니다!

public List<FigmaAccountResponse> getFigmaAccount() {
final Member currentMember = memberUtil.getCurrentMember();
List<Figma> figmaList = figmaRepository.findByMemberAndDeletedAtIsNull(currentMember);
if (figmaList.isEmpty()) {
Copy link
Contributor

@iiqcov iiqcov Nov 14, 2024

Choose a reason for hiding this comment

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

처음 사이트에 구글 로그인을 한 경우 피그마 계정이 없을 수 있으니 예외 처리를 하지 않는 건 어떨까요?

@cowboysj cowboysj requested a review from iiqcov November 14, 2024 08:12
@cowboysj cowboysj merged commit 82c60ad into develop Nov 14, 2024
2 checks passed
@cowboysj cowboysj deleted the feat/#44 branch November 14, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feature 기능 구현
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] 연동된 피그마 계정 조회, 연동 해제 구현
2 participants