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

Refact/#362 chat domain #367

Merged
merged 19 commits into from
Apr 28, 2024
Merged

Refact/#362 chat domain #367

merged 19 commits into from
Apr 28, 2024

Conversation

tidavid1
Copy link
Member

@tidavid1 tidavid1 commented Apr 18, 2024

๐Ÿš€ ๊ฐœ๋ฐœ ์‚ฌํ•ญ

  • ๊ธฐ์กด ์ •๊ทœํ™”๋ฅผ ํ†ตํ•ด ๋ถ„๋ฆฌ๋œ ChatUser ์™€ ChatRoom Entity๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ , ChatRoom Document๋ฅผ ํ™œ์šฉํ•˜์—ฌ ์ฑ„ํŒ…๋ฐฉ ์ •๋ณด๋ฅผ ์ €์žฅํ•˜๋„๋ก ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ์ฑ„ํŒ…๋ฐฉ ์ €์žฅ ํ˜•์‹์ด ๋ณ€๊ฒฝ๋จ์— ๋”ฐ๋ผ ์ฑ„ํŒ… ์กฐํšŒ ๋ฐฉ์‹์„ ์ด์— ๋งž์ท„์Šต๋‹ˆ๋‹ค.
    • ChatRoom Document๋ฅผ ํ™œ์šฉํ•จ์— ๋”ฐ๋ผ ๋งˆ์ง€๋ง‰ ์ฑ„ํŒ… ๊ธฐ๋ก์„ ์ฑ„ํŒ… ์ž‘์„ฑ์‹œ ChatRoom Document์— ์ €์žฅํ•˜๋„๋ก ๋ฆฌํŒฉํ† ๋ง์„ ์ง„ํ–‰ํ–ˆ์Šต๋‹ˆ๋‹ค.
    • ์ด์ œ ์ฑ„ํŒ…๋ฐฉ ๋ฆฌ์ŠคํŠธ ์กฐํšŒ ๊ณผ์ •์—์„œ MySQL + MongoDB ์ฟผ๋ฆฌ ์กฐํšŒ ๋ฐฉ์‹์ด ์•„๋‹Œ MongoDB ๋‹จ์ผ ๋„ํ๋จผํŠธ ์กฐํšŒ ๋ฐฉ์‹์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
  • ์ฑ„ํŒ…๋ฐฉ ๋ฆฌ์ŠคํŠธ ์กฐํšŒ API ์‘๋‹ต ๊ฐ’์ด ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. (ํ”„๋ก ํŠธ์™€ ํ˜‘์˜๋˜์ง€ ์•Š์€ ๋ถ€๋ถ„์ด์–ด์„œ ์ด์ „ ์‘๋‹ต์œผ๋กœ ๋กค๋ฐฑํ–ˆ์Šต๋‹ˆ๋‹ค. | 24.04.25 ์ถ”๊ฐ€)
    • ๊ธฐ์กด ์ฑ„ํŒ… ์ƒ๋Œ€ ์œ ์ € ์ •๋ณด๋ฅผ ์ œ๊ณตํ•˜๋Š” ์‘๋‹ต ๊ฐ’์—์„œ ํ”„๋กœ์ ํŠธ ์ƒ์„ธ ์ •๋ณด๋ฅผ ์ œ๊ณตํ•˜๋„๋ก ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
  • ๋„ํ๋จผํŠธ์— ๋Œ€ํ•œ ํ…Œ์ŠคํŠธ๋ฅผ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ์„œ๋น„์Šค ๋ ˆ์ด์–ด์— ๋Œ€ํ•œ ํ…Œ์ŠคํŠธ๋ฅผ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

์ด์Šˆ ๋ฒˆํ˜ธ

ํŠน์ด ์‚ฌํ•ญ ๐Ÿซถ

  • ํ…Œ์ŠคํŠธ ์ž‘์„ฑ ์ง„ํ–‰์ค‘์ž…๋‹ˆ๋‹ค.
  • ๋ฉ”์ธ ๋ฐ˜์˜์‹œ ๊ธฐ์กด RDB์— ์กด์žฌํ•˜๋Š” ์ฑ„ํŒ… ๋ฐ์ดํ„ฐ๋ฅผ MongoDB๋กœ ์ด๊ด€ํ•˜๋Š” ์ž‘์—…์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. ์ด๋ถ€๋ถ„์€ ์ถ”๊ฐ€์ ์œผ๋กœ ๊ตฌํ˜„ํ•  ์˜ˆ์ •์ž…๋‹ˆ๋‹ค :D

@tidavid1 tidavid1 added the ๐Ÿ”„ Refactor ๊ธฐ์กด ๊ฐœ๋ฐœ ๋œ ์ฝ”๋“œ์˜ ์ˆ˜์ • label Apr 18, 2024
@tidavid1 tidavid1 requested a review from JIN-076 April 18, 2024 13:03
@tidavid1 tidavid1 self-assigned this Apr 18, 2024
Copy link

github-actions bot commented Apr 18, 2024

Test Results

76 testsโ€‚โ€ƒโ€ƒ76 โœ…โ€ƒโ€ƒ2s โฑ๏ธ
11 suitesโ€ƒโ€ƒโ€‡0 ๐Ÿ’ค
11 filesโ€„โ€‚โ€ƒโ€ƒโ€‡0 โŒ

Results for commit d926a78.

โ™ป๏ธ This comment has been updated with latest results.

@@ -28,15 +26,12 @@ public ChatMessage save(ChatMessage chatMessage, String collectionName) {
return mongoTemplate.save(chatMessage, collectionName);
}

public CursorPaginationResult<ChatDataApiRes> findAllByCollection(String collectionName,
CursorPaginationInfoReq pageable) {
public List<ChatMessage> findAllByCollection(String collectionName,
Copy link
Collaborator

@JIN-076 JIN-076 Apr 25, 2024

Choose a reason for hiding this comment

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

CursorPaginationResult ํƒ€์ž…์ด ์•„๋‹Œ List ํƒ€์ž…์œผ๋กœ ๋ณ€๊ฒฝํ•˜๋ฉด์„œ 'cursorId๋กœ ๋ฐ›์€ ๊ฐ’๋ถ€ํ„ฐ ๊ฐ€์ ธ์˜ค๊ฒŒ ํ•œ๋‹ค' ๋ผ๊ณ  ์ดํ•ด๊ฐ€ ๋˜์—ˆ๋Š”๋ฐ ๋งž๋‚˜์š”?๐Ÿค”

Copy link
Member Author

Choose a reason for hiding this comment

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

๋งž์Šต๋‹ˆ๋‹ค ๐Ÿ‘๐Ÿป

private final LocalDateTime meetStartTime;
private final LocalDateTime meetEndTime;

private ChatRoomDetail(Long projectId, MeetingInfo meetingInfo) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

์ „๋ฐ˜์ ์œผ๋กœ ๋ณด์•˜์„ ๋•Œ, ์ฑ„ํŒ…๋ฐฉ์— ๋Œ€ํ•œ ์ƒ์„ธ ์ •๋ณด๋ฅผ ๊ฐ€์ ธ์˜ฌ ๋•Œ meetingInfo ๊ด€๋ จ ๋ฐ์ดํ„ฐ๋ฅผ ํ•จ๊ป˜ ๊ฐ€์ ธ์˜ค๊ณ  ์žˆ๋Š”๋ฐ ๋”ฑํžˆ ์“ฐ์ด์ง€๋Š” ์•Š๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ํ•ด๋‹น ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋Š” ์ด์œ ๊ฐ€ ๋”ฐ๋กœ ์žˆ๋‚˜์š”?

Copy link
Member Author

Choose a reason for hiding this comment

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

์ฑ„ํŒ…๋ฐฉ ์ƒ์„ธ ์ •๋ณด ์กฐํšŒ API ์‘๋‹ต์— ํ”„๋กœ์ ํŠธ ์ƒ์„ธ ์ •๋ณด, ์œ„์น˜, ์‹œ๊ฐ„์ด ํ•„์š” ํ•˜์—ฌ ์‘๋‹ต์œผ๋กœ ์ „์†กํ•ด์ฃผ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. -> ์ฑ„ํŒ…๋ฐฉ ์ ‘์†์‹œ ์œ„์— ๋ณด์ด๋Š” ํ”„๋กœ์ ํŠธ ์ง„ํ–‰ ์œ„์น˜ ๊ด€๋ จ ์ •๋ณด๊ฐ€ ์ƒ์„ธ ์ •๋ณด ์กฐํšŒ API๋กœ ๋ฐ˜ํ™˜๋ฉ๋‹ˆ๋‹ค!

Copy link
Collaborator

@JIN-076 JIN-076 left a comment

Choose a reason for hiding this comment

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

์ „๋ฐ˜์ ์œผ๋กœ ๊น”๋”ํ•˜๊ฒŒ ๋ฆฌํŒฉํ† ๋ง์ด ์ž˜ ๋œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค! ๋‚จ์€ ์ฝ”๋ฉ˜ํŠธ ํ™•์ธ ๋ถ€ํƒ๋“œ๋ ค์š”~๐Ÿ‘๐Ÿป

@tidavid1 tidavid1 merged commit 7576395 into develop Apr 28, 2024
3 checks passed
@tidavid1 tidavid1 deleted the refact/#362-chat_domain branch April 28, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
๐Ÿ”„ Refactor ๊ธฐ์กด ๊ฐœ๋ฐœ ๋œ ์ฝ”๋“œ์˜ ์ˆ˜์ •
Projects
None yet
2 participants