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 ✨ follow api 추가 #412

Merged
merged 26 commits into from
Feb 20, 2024
Merged

feat ✨ follow api 추가 #412

merged 26 commits into from
Feb 20, 2024

Commits on Dec 27, 2023

  1. feat: ✨ follow api 형식 제안

    niamu01 committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    31f1455 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ab0710f View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2024

  1. feat: ✨ FollowerList 추가

    - #405
    
    feat: ✨ MakeFollow: 프론트 테스트용 임시 함수 추가
    
    - #405
    
    refactor: ♻️ 변수명 수정 및 함수 분리
    
    login -> target, FollowListByMe -> FollowList, FollowUserList -> FollowListWithCount, followUser->followLser, cursusUserService에 유저 아이디 찾는 함수 추가, 중복되는 함수 분리
    
    - #405
    
    refactor: ♻️ checkFollowingStatus 함수 활용하도록 변경
    
    - #405
    niamu01 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    23a8eb7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3ea4d7e View commit details
    Browse the repository at this point in the history
  3. feat: ✨ follow/unfollow에 대해 성공했을 시 subscription 추가

    - #405
    
    refactor: ♻️ 프론트 테스트용 임시 함수 리팩토링
    
    - #405
    
    refactor: ♻️ type-only import 추가
    
    - #405
    
    fix: 🐛 mutation이 아닌 쿼리에 대해서 mutation -> query 변경
    
    - #405
    niamu01 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    bad161f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2ac0c50 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6e85655 View commit details
    Browse the repository at this point in the history
  6. feat: ✨ follow list pagination 구현

    - #406
    
    revert: 🔥 임시 함수 삭제 및 주석 삭제
    
    - #406
    niamu01 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    0de57a1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4403cee View commit details
    Browse the repository at this point in the history
  8. refactor: ♻️ list 쿼리에도 sort의 defaultvalue 추가

    - #406
    
    fix: 🐛 following 관련 함수에서 사용한 follower -> following 수정
    
    - #406
    
    fix: 🐛 파일명 수정 resolve -> resolver
    
    style: 🎨 변수 선언 시 필요 없는 타입 어노테이션 제거
    
    - #406
    
    fix: 🐛 필요없는 if 검사 삭제
    
    - #406
    
    fix: 🐛 변수 대입을 안하고 있었던 부분 수정 (...)
    niamu01 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    877225e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b034841 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3442797 View commit details
    Browse the repository at this point in the history
  11. fix: 🐛 pubSub.publish 함수에 await 추가

    - #406
    
    revert: 🔥 의미없는 코드 삭제
    niamu01 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    8661352 View commit details
    Browse the repository at this point in the history
  12. refactor: ♻️ 한개만 찾는 요소에 대하여 find -> findOne로 변경

    - #406
    
    refactor: ♻️ 팔로우 여부에 대해 나 자신 예외처리 제거, input을 login에서 id로 변경
    
    - #406
    
    revert: 🔥 follower, following List 삭제
    
    - #406
    
    refactor: ♻️ findOne 할 때 select 추가
    niamu01 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    1d3d5c3 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7f5667c View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    f268b91 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    df90c93 View commit details
    Browse the repository at this point in the history
  16. refactor: ♻️ targetLogin -> targetId 로 변경

    - #406
    
    refactor: ♻️ targetLogin -> targetId 로 변경
    
    - #406
    
    fix: 🐛 변수명 오류 수정
    niamu01 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    1652b9b View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    80ba12d View commit details
    Browse the repository at this point in the history
  18. feat: ✨ follower, following 구분해 캐시 형태 결정

    - #413
    
    fix: 🐛 follow create 안하던 부분 수정
    niamu01 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    9f14267 View commit details
    Browse the repository at this point in the history
  19. refactor: ♻️ db와 cache에 저장되는 타입이 다름을 고려 후 로직 변경

    db에 요청: userId, followId 로 follower/following 리스트를 만든 후, userPreview와 followAt 을 추가해 cache와 같은 타입으로 변환 / cache에 요청, db요청 이후: {userPreview, followAt}[] 에 로그인 한 유저에 맞춰 isFollowing 추가 후 반환
    
    - #413
    
    fix: 🐛 존재하는 유저인지 검사 후 db에 write
    
    - #413
    
    fix: 🐛 실수 수정 following->follower
    
    프론트와 디버깅 중 발견했습니다
    
    - #413
    
    feat: ✨ preload 임시 적용
    
    이후 중복되는 코드를 정리해야합니다
    
    - #413
    
    refactor: ♻️ 주석 삭제 및 중복되는 함수 분리
    
    - #413
    
    fix: 🐛 팔로우 리스트 캐시 업데이트시 배열의 push를 사용하여 무조건 뒤에 붙던 일 임시 해결
    
    sort를 밖에서 하는 방식으로 변경할 예정입니다
    
    - #413
    niamu01 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    ee2e835 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    264b7f1 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    295e1ff View commit details
    Browse the repository at this point in the history
  22. refactor: ♻️ follow시 push하기 때문에 set을 다시 호출하던 부분 삭제, 못 찾는 경우와 삭제 실패가 같…

    …은 404를 throw하여 find하지 않고 바로 delete하여 로직 줄이기
    
    - #413
    niamu01 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    bf1abd5 View commit details
    Browse the repository at this point in the history
  23. refactor: ♻️ 타입, 변수명 변경

    FollowList[] -> Follow[], cache되던 형태의 FollowListCacheType를 Follow로 변경하고 원래 Follow였던 최종 반환 형태를 MyFollow로 변경, 이에 따른 dto파일명이나 pagination 타입도 함께 맞추어 변경
    
    - #413
    niamu01 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    1a64608 View commit details
    Browse the repository at this point in the history
  24. refactor: ♻️ 사용하는 db 변경 temp_follows -> follows

    - close #405
    
    fix: 🔥 콘솔로그 삭제
    niamu01 committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    06aa897 View commit details
    Browse the repository at this point in the history