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

refactor: change dependency direction #87

Merged
merged 6 commits into from
Mar 26, 2024
Merged

refactor: change dependency direction #87

merged 6 commits into from
Mar 26, 2024

Conversation

songyi00
Copy link
Member

Issue Number

close: #85

작업 내역

구현 내용 및 작업 했던 내역

  • dividend -> stock 으로 의존성 방향 변경
  • 간헐적으로 실패하는 테스트 수정
  • queryDsl 클래스 추가되지 않도록 .gitignore 추가

변경사항

PR 특이 사항

PR을 볼 때 주의깊게 봐야하거나 말하고 싶은 점

  • 패키지와 도메인 관점에서 보았을 때 stock <-> dividend 양방향 의존성 사이클이 있어 해당 부분 dividend -> stock 방향으로만 흐르도록 구현체와 인터페이스 분리하였고 위치 변경해주었습니다!
  • 현재 시간에 따라 달라지는 테스트코드 수정하였습니다 현재 날짜 기준으로 돌아가는 비즈니스 로직이 많다보니 테스트가 자꾸 터지네요 앞으론 잘 고려해서 짜야겠어유,, 🥹

@songyi00 songyi00 self-assigned this Mar 18, 2024
@songyi00 songyi00 added the refactor refactoring label Mar 18, 2024
Copy link
Member

@chominho96 chominho96 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!! 저도 살펴본다고 다 살펴봤었는데 날짜 관련 테스트 버그가 아직 남아있었군요...!!

@songyi00 songyi00 merged commit 0734962 into develop Mar 26, 2024
1 check passed
@songyi00 songyi00 deleted the refactor/#85 branch March 26, 2024 14:35
chominho96 added a commit that referenced this pull request Apr 26, 2024
* refactor: change dependency direction (#87)

* chore: add auto generated qclass to .gitignore

* fix: failed test by current time

* refactor: apply dip for package dependency

* chore: update interface name

* test: modify test data

* fix: test code

* feat: add portfolio, portfolio stock entity (#89)

* fix: fix test date time issue

* feat: add portfolio, portfolio stock entity

* feat: add portfolio, portfolio stock repository

* refactor: refactor package structure

* test: add test fixture

* setting: add db configuration

* fix: add @entity annotation

* fix: fix portfolio stock to element collection

* fix: remove portfolio id from PoltfolioStock

* setting: fix db configuration

* refactor: delete create method from portfolio entity

* feat: implement portfolio batch service (#92)

* refactor: divide client package

* feat: implement portfolio batch service

* test: add test code

* test: update test code

* chore: update delete query

* refactor: refactor portfolio stock domain

* feat: implement portfolio api (#93)

* chore: remove unnecessary import

* feat: add portfolio command service

* feat: add portfolio query service

* feat: add portfolio controller

* docs: add portfolio controller docs

* fix: remove portfolio command service

* test: add test for create portfolio api

* feat: add monthly/yearly dividend api

* feat: add monthly/yearly dividend api

* docs: add swagger docs

* feat: implement dividend repository custom

* test: add portfolio query service test

* test: add portfolio controller test

* feat: add sector-ratio service

* feat: update portfolio controller

* test: add test code

* test: add service test code

* feat: update swagger docs

---------

Co-authored-by: Songyi Kim <ksl2950@o.cnu.ac.kr>

* feat: implement read portfolio event (#95)

* feat:wip add portfolio event

* feat: add hits to portfolio

* feat:wip add portfolio event

* feat: add increment hits consumer

* feat: add read portfolio event

* feat: implement lock for portfolio hits (concurrency)

* feat: set version initial value

* feat: set version initial value

* test: add read portfolio test

* test: fix latch

* test: fix concurrency test

* test: remove event test from portfolio query service test

* chore: add event log

* chore: fix order of log

---------

Co-authored-by: Songyi Kim <ksl2950@o.cnu.ac.kr>

---------

Co-authored-by: Songyi Kim <52441906+songyi00@users.noreply.github.com>
Co-authored-by: Songyi Kim <ksl2950@o.cnu.ac.kr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants