-
Notifications
You must be signed in to change notification settings - Fork 20
feat: userSeeder 추가 #1021
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: userSeeder 추가 #1021
Conversation
- 학적인증까지 마친 상태의 user가 추가되도록 구현했습니다.
Summary of ChangesHello @bingle625, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 이 PR은 성능 테스트를 위한 사용자 시드 데이터를 생성하는 기능을 도입합니다. 이 기능은 애플리케이션 시작 시 "seed" 프로파일이 활성화될 때 실행되며, 학적 인증이 완료된 상태의 가상 사용자들을 대량으로 생성하여 테스트 환경을 신속하게 구축할 수 있도록 돕습니다. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
Test Results Summary 54 files 54 suites 14s ⏱️ Results for commit 4247a2e. ♻️ This comment has been updated with latest results. |
Migration Result 📦
Schema Validation Result 🔍✅ No schema mismatches detected. Results for commit ♻️ This comment has been updated with latest results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
성능 테스트를 위한 사용자 시드(seed) 코드가 추가되었습니다. 코드의 안정성, 유지보수성, 가독성 향상을 위해 몇 가지 개선점을 제안합니다. 주요 내용은 불필요한 Repository 메소드 제거, 예외 처리 강화, 데이터 생성 로직 오류 수정, 로깅 방식 개선, 매직 넘버 상수화, 긴 메소드 분리 등입니다.
app-main/src/main/java/net/causw/app/main/shared/seed/UserSeeder.java
Outdated
Show resolved
Hide resolved
...ain/src/main/java/net/causw/app/main/domain/user/account/repository/user/UserRepository.java
Show resolved
Hide resolved
app-main/src/main/java/net/causw/app/main/shared/seed/UserSeedRunner.java
Show resolved
Hide resolved
app-main/src/main/java/net/causw/app/main/shared/seed/UserSeeder.java
Outdated
Show resolved
Hide resolved
app-main/src/main/java/net/causw/app/main/shared/seed/UserSeeder.java
Outdated
Show resolved
Hide resolved
…er.java Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
|
❌ Spotless Check Failed 코드 포맷팅이 올바르지 않습니다. 다음 명령어를 실행하여 자동으로 수정하세요: ./gradlew spotlessApply그 후 변경사항을 커밋하고 푸시해주세요. |
|
❌ Spotless Check Failed 코드 포맷팅이 올바르지 않습니다. 다음 명령어를 실행하여 자동으로 수정하세요: ./gradlew spotlessApply그 후 변경사항을 커밋하고 푸시해주세요. |
|
❌ Spotless Check Failed 코드 포맷팅이 올바르지 않습니다. 다음 명령어를 실행하여 자동으로 수정하세요: ./gradlew spotlessApply그 후 변경사항을 커밋하고 푸시해주세요. |
|
❌ Spotless Check Failed 코드 포맷팅이 올바르지 않습니다. 다음 명령어를 실행하여 자동으로 수정하세요: ./gradlew spotlessApply그 후 변경사항을 커밋하고 푸시해주세요. |
642c725 to
f34b885
Compare
hyoinkang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다👍 PostSeeder 돌리면서 해당 코드 잘 돌아가는 것 로컬에서 확인 완료하였습니다.
Seeder 합치는 건 먼저 PR 머지해주시면 CommandLineRunner에 Order 어노테이션 붙여서 처리하겠습니다. 반대로 해도 상관없구요~
P5: PR 본문에서 말씀해주신 환경 관련된 부분은 include로 프로필 붙이는 게 application-local.yml 바탕으로 application-seed.yml 에 추가로 덮어쓰거나 붙일 내용 있으면 반영하는 거라서 사실상 동일한 환경으로 봐도 무방할 것 같습니다.
🚩 관련사항
성능 테스트를 위해서 user seed 코드를 추가합니다.
📢 전달사항
application-local.yml파일을 복사한application-seed.yml파일 생성logback-spring.yml파일에 아래 내용 복붙 (로그 확인을 위해 필요합니다.)📸 스크린샷
📃 진행사항
⚙️ 기타사항
개발기간: