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

fix: AB테스트 토큰 발급용 API 추가 #1104

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

songsunkook
Copy link
Collaborator

🔥 연관 이슈

🚀 작업 내용

  1. AB테스트 자신의 실험군 조회 API에서 각종 이슈가 발생하고 있습니다. 원인은 최초 편입된 사용자에 대해 동시에 여러 AB테스트가 적용된 페이지에서 동시에 동일 인자로 API를 요청으로 인한 DEADLOCK 발생 및 Null 데이터 삽입으로 확인했습니다. 이를 개선하기 위해 AB테스트 토큰 발급용 API를 추가하였고, 이후 클라이언트 배포 전에 AB테스트 적용 과정을 변경할 것을 요청할 예정입니다. 자세한 내용은 이슈 내용 및 슬랙 확인해주시면 감사하겠습니다!

💬 리뷰 중점사항

@songsunkook songsunkook self-assigned this Dec 1, 2024
@github-actions github-actions bot added the 버그 정상적으로 동작하지 않는 문제상황입니다. label Dec 1, 2024
Copy link

github-actions bot commented Dec 1, 2024

Unit Test Results

339 tests   338 ✔️  1m 22s ⏱️
  41 suites      1 💤
  41 files        0

Results for commit e0190f3.

Copy link
Contributor

@Soundbar91 Soundbar91 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다. ABtest 코드는 이번에 처음 보네요 😮
로직은 이해를 했는데, 코드 정리의 필요성(?)을 느낀 것 같아요. 리펙토링 계획이 있으신지 궁금합니다 !
히스토리 관련 코멘트 하나 남겼습니다.

@@ -49,7 +49,8 @@ private void excludeGetMapping() {
+ "!execution(* in.koreatech.koin.admin.user.controller.AdminUserController.refresh(..)) && "
+ "!execution(* in.koreatech.koin.admin.user.controller.AdminUserController.createAdmin(..)) && "
+ "!execution(* in.koreatech.koin.admin.user.controller.AdminUserController.adminPasswordChange(..)) && "
+ "!execution(* in.koreatech.koin.admin.abtest.controller.AbtestController.assignOrGetAbtestVariable(..))")
+ "!execution(* in.koreatech.koin.admin.abtest.controller.AbtestController.assignOrGetAbtestVariable(..)) &&"
+ "!execution(* in.koreatech.koin.admin.abtest.controller.AbtestController.issueAccessHistoryId(..))")
Copy link
Contributor

Choose a reason for hiding this comment

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

A

처리잘해주셨어요 !!
히스토리 기능은 별도의 어노테이션을 적용해서 개선하는 방향으로 가야겠다는 생각이 이번에 들었네용,,

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

어노테이션도 좋은 방향인 것 같아요 👍

로직은 이해를 했는데, 코드 정리의 필요성(?)을 느낀 것 같아요. 리펙토링 계획이 있으신지 궁금합니다 !

당시에는 나름 예쁘다고 생각했는데.. 지금봐도 나름 예쁘다고 생각하는데....... 메서드분리 잘하지않았나... 싶었는데 다들 문제가 있어보인다고 하니 확실히 리팩토링을 해봐야겠네요.. 😥
DB에서 여러번 조회하는 등 문제있는 로직이 분명 존재하는 걸 확인하기도 했으니 방학중으로 날잡고 손보겠습니다.

Copy link
Contributor

@ImTotem ImTotem left a comment

Choose a reason for hiding this comment

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

수고했어용

@songsunkook songsunkook merged commit 14db8ac into develop Dec 3, 2024
5 checks passed
@songsunkook songsunkook deleted the fix/abtest-token-api branch December 3, 2024 12:06
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.

AB테스트 토큰 발급용 API 추가하기
3 participants