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: core:common -> domain:common #139

Merged
merged 1 commit into from
Jun 20, 2024
Merged

refactor: core:common -> domain:common #139

merged 1 commit into from
Jun 20, 2024

Conversation

jinukeu
Copy link
Member

@jinukeu jinukeu commented Jun 20, 2024

๐Ÿ“ฎ ๊ด€๋ จ ์ด์Šˆ

Summary by CodeRabbit

  • Chores
    • ํ”„๋กœ์ ํŠธ์˜ ์˜์กด์„ฑ ๊ตฌ์กฐ๋ฅผ projects.core.common์—์„œ projects.domain.common์œผ๋กœ ์—…๋ฐ์ดํŠธํ•˜์˜€์Šต๋‹ˆ๋‹ค.
    • settings.gradle.kts ํŒŒ์ผ์—์„œ ":core:common"์„ ์ œ๊ฑฐํ•˜๊ณ  ":domain:common"์„ ์ถ”๊ฐ€ํ•˜์—ฌ ๋ชจ๋“ˆ ๊ตฌ์„ฑ์„ ๋ณ€๊ฒฝํ•˜์˜€์Šต๋‹ˆ๋‹ค.

@jinukeu jinukeu self-assigned this Jun 20, 2024
Copy link

coderabbitai bot commented Jun 20, 2024

Walkthrough

์ด๋ฒˆ ์—…๋ฐ์ดํŠธ๋Š” projects.core.common์„ projects.domain.common์œผ๋กœ ๋ณ€๊ฒฝํ•˜๋Š” ๋ฆฌํŒฉํ† ๋ง ์ž‘์—…์„ ํฌํ•จํ•ฉ๋‹ˆ๋‹ค. ์—ฌ๋Ÿฌ build.gradle.kts ํŒŒ์ผ์—์„œ ์ข…์†์„ฑ ์„ ์–ธ์ด ๋ณ€๊ฒฝ๋˜์—ˆ์œผ๋ฉฐ, ํŒจํ‚ค์ง€ ๊ตฌ์กฐ์™€ ๋ชจ๋“ˆ ํฌํ•จ ์„ค์ •๋„ ์ˆ˜์ •๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ์ˆ˜์ •์€ ์ฝ”๋“œ๋ฒ ์ด์Šค์˜ ๋ชจ๋“ˆ ๊ตฌ์กฐ๋ฅผ ์žฌ์ •๋น„ํ•˜์—ฌ ์œ ์ง€๋ณด์ˆ˜๋ฅผ ์šฉ์ดํ•˜๊ฒŒ ํ•˜๊ณ  ์ผ๊ด€์„ฑ์„ ํ™•๋ณดํ•˜๋ ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.

Changes

ํŒŒ์ผ ๊ฒฝ๋กœ ๋ณ€๊ฒฝ ์š”์•ฝ
domain/common/src/main/java/com/suwiki/domain/common/RunCatchingIgnoreCancelled.kt ํŒจํ‚ค์ง€ ์„ ์–ธ์„ com.suwiki.core.common์—์„œ com.suwiki.domain.common์œผ๋กœ ๋ณ€๊ฒฝ
domain/lectureevaluation/editor/build.gradle.kts
domain/lectureevaluation/my/build.gradle.kts
domain/lectureevaluation/viewerreporter/build.gradle.kts
domain/login/build.gradle.kts
domain/notice/build.gradle.kts
domain/openmajor/build.gradle.kts
domain/signup/build.gradle.kts
domain/timetable/build.gradle.kts
domain/user/build.gradle.kts
implementation(projects.core.common)์„ implementation(projects.domain.common)์œผ๋กœ ๋ณ€๊ฒฝ
settings.gradle.kts ":core:common"์˜ ํฌํ•จ์„ ์ œ๊ฑฐํ•˜๊ณ  ":domain:common"์˜ ํฌํ•จ์„ ์ถ”๊ฐ€

Assessment against linked issues

Objective Addressed Explanation
ํ”„๋กœ์ ํŠธ ๊ตฌ์กฐ์—์„œ core:common -> domain:common์œผ๋กœ ์ˆ˜์ • (#138) โœ…

Poem

์ฝ”๋“œ ์†์—์„œ ์ถค์ถ”๋Š” ํ† ๋ผ๋Š” ๋งํ–ˆ๋„ค,
"ํŒจํ‚ค์ง€๋ฅผ ์˜ฎ๊ฒจ ๋” ๊น”๋”ํ•˜๊ฒŒ!"
core๋Š” ์ด์ œ ์—†๊ณ  domain์ด ์™”๋‹ค๋„ค,
์ข…์†์„ฑ๋„ ๋ฐ”๊พธ๋‹ˆ ์ฐธ ์ข‹๊ตฌ๋‚˜.
์ƒˆ๋กœ์šด ๊ตฌ์กฐ, ๋”์šฑ ๋‹จ๋‹จํžˆ,
์œ ์ง€๋ณด์ˆ˜๋„ ์ด์   ๋ฌธ์ œ์—†์œผ๋ฆฌ! ๐Ÿ‡


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 46aff95 and 0972afd.

Files selected for processing (11)
  • domain/common/src/main/java/com/suwiki/domain/common/RunCatchingIgnoreCancelled.kt (1 hunks)
  • domain/lectureevaluation/editor/build.gradle.kts (1 hunks)
  • domain/lectureevaluation/my/build.gradle.kts (1 hunks)
  • domain/lectureevaluation/viewerreporter/build.gradle.kts (1 hunks)
  • domain/login/build.gradle.kts (1 hunks)
  • domain/notice/build.gradle.kts (1 hunks)
  • domain/openmajor/build.gradle.kts (1 hunks)
  • domain/signup/build.gradle.kts (1 hunks)
  • domain/timetable/build.gradle.kts (1 hunks)
  • domain/user/build.gradle.kts (1 hunks)
  • settings.gradle.kts (2 hunks)
Files skipped from review due to trivial changes (1)
  • domain/common/src/main/java/com/suwiki/domain/common/RunCatchingIgnoreCancelled.kt
Additional comments not posted (10)
domain/openmajor/build.gradle.kts (1)

8-8: ์ด ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ PR์˜ ๋ชฉํ‘œ์— ๋ถ€ํ•ฉํ•ฉ๋‹ˆ๋‹ค. ๋ชจ๋“ˆ ์ด๋ฆ„์ด core:common์—์„œ domain:common์œผ๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

domain/signup/build.gradle.kts (1)

8-8: ์ด ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ PR์˜ ๋ชฉํ‘œ์— ๋ถ€ํ•ฉํ•ฉ๋‹ˆ๋‹ค. ๋ชจ๋“ˆ ์ด๋ฆ„์ด core:common์—์„œ domain:common์œผ๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

domain/lectureevaluation/editor/build.gradle.kts (1)

9-9: ์ด ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ PR์˜ ๋ชฉํ‘œ์— ๋ถ€ํ•ฉํ•ฉ๋‹ˆ๋‹ค. ๋ชจ๋“ˆ ์ด๋ฆ„์ด core:common์—์„œ domain:common์œผ๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ projects.core.model์˜ ์‚ฌ์šฉ์€ ํ™•์ธ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

Verification successful

projects.core.model ์˜์กด์„ฑ์€ ์—ฌ๋Ÿฌ ๋ชจ๋“ˆ์—์„œ ์ผ๊ด€๋˜๊ฒŒ ์‚ฌ์šฉ๋˜๊ณ  ์žˆ์œผ๋ฉฐ, ์ด๋Š” ์˜๋„๋œ ๊ฒƒ์œผ๋กœ ๋ณด์ž…๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ ์ด ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ ๋ฌธ์ œ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.

  • remote/common/build.gradle.kts
  • local/user/build.gradle.kts
  • local/common/build.gradle.kts
  • local/openmajor/build.gradle.kts
  • local/login/build.gradle.kts
  • local/timetable/build.gradle.kts
  • domain/user/build.gradle.kts
  • domain/timetable/build.gradle.kts
  • domain/notice/build.gradle.kts
  • domain/login/build.gradle.kts
  • domain/lectureevaluation/viewerreporter/build.gradle.kts
  • domain/lectureevaluation/my/build.gradle.kts
  • domain/lectureevaluation/editor/build.gradle.kts
  • core/ui/build.gradle.kts
  • core/security/build.gradle.kts
  • core/designsystem/build.gradle.kts
  • core/android/build.gradle.kts
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify the usage of `projects.core.model` in other modules.

# Test: Search for the dependency usage. Expect: Consistent usage or planned refactoring.
rg --type kotlin $'projects.core.model'

Length of output: 1264

domain/lectureevaluation/my/build.gradle.kts (1)

9-9: ์ด ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ PR์˜ ๋ชฉํ‘œ์— ๋ถ€ํ•ฉํ•ฉ๋‹ˆ๋‹ค. ๋ชจ๋“ˆ ์ด๋ฆ„์ด core:common์—์„œ domain:common์œผ๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ projects.core.model์˜ ์‚ฌ์šฉ์€ ํ™•์ธ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

domain/lectureevaluation/viewerreporter/build.gradle.kts (1)

9-9: ์ด ๋ณ€๊ฒฝ์‚ฌํ•ญ์€ ํ”„๋กœ์ ํŠธ์˜ ๋ชจ๋“ˆ ๊ตฌ์กฐ๋ฅผ ๊ฐœ์„ ํ•˜๊ณ , ๊ด€์‹ฌ์‚ฌ์˜ ๋ถ„๋ฆฌ๋ฅผ ๋ช…ํ™•ํžˆ ํ•˜๋Š” ๋ฐ ๋„์›€์ด ๋ฉ๋‹ˆ๋‹ค. ๋ชจ๋“  ์ฐธ์กฐ๊ฐ€ ์ƒˆ๋กœ์šด ๋ชจ๋“ˆ ์ด๋ฆ„์„ ๋ฐ˜์˜ํ•˜๋„๋ก ํ™•์ธํ•˜์„ธ์š”.

domain/login/build.gradle.kts (1)

9-9: ์ด ๋ณ€๊ฒฝ์€ ๋ชจ๋“ˆ ์ด๋ฆ„์„ core:common์—์„œ domain:common์œผ๋กœ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์—…๋ฐ์ดํŠธํ•ฉ๋‹ˆ๋‹ค. ๋ชจ๋“ˆ ๊ฐ„์˜ ์ข…์†์„ฑ์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์œ ์ง€๋˜๊ณ  ์žˆ๋Š”์ง€ ํ™•์ธํ•˜์„ธ์š”.

domain/notice/build.gradle.kts (1)

9-9: ์ฝ”๋“œ ๊ตฌ์กฐ์™€ ์กฐ์ง์„ ๊ฐœ์„ ํ•˜๊ธฐ ์œ„ํ•œ ๋ชจ๋“ˆ ์ด๋ฆ„ ๋ณ€๊ฒฝ์ด ๋ฐ˜์˜๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ํ”„๋กœ์ ํŠธ ์ „์ฒด์—์„œ ์ผ๊ด€์„ฑ์„ ์œ ์ง€ํ•˜๋Š”์ง€ ํ™•์ธํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

domain/timetable/build.gradle.kts (1)

9-9: ๋ชจ๋“ˆ ์ด๋ฆ„์ด domain:common์œผ๋กœ ๋ณ€๊ฒฝ๋˜์–ด ์ฝ”๋“œ์˜ ๊ตฌ์กฐ๊ฐ€ ๊ฐœ์„ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ด ๋ณ€๊ฒฝ์ด ๋‹ค๋ฅธ ๋ชจ๋“ˆ๊ณผ์˜ ์ข…์†์„ฑ์— ์˜ํ–ฅ์„ ๋ฏธ์น˜์ง€ ์•Š๋„๋ก ์ฃผ์˜ํ•˜์„ธ์š”.

domain/user/build.gradle.kts (1)

9-9: ์ฝ”๋“œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ๋ชฉํ‘œ์™€ ์ผ์น˜ํ•ฉ๋‹ˆ๋‹ค. domain:common ๋ชจ๋“ˆ์ด ์ œ๋Œ€๋กœ ์„ค์ •๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค.

Verification successful

์ฝ”๋“œ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์ด ๋ชฉํ‘œ์™€ ์ผ์น˜ํ•˜๋ฉฐ domain:common ๋ชจ๋“ˆ์ด ์ œ๋Œ€๋กœ ์„ค์ •๋˜๊ณ  ์—ฌ๋Ÿฌ ํŒŒ์ผ์—์„œ ์ฐธ์กฐ๋˜๊ณ  ์žˆ์Œ์„ ํ™•์ธํ–ˆ์Šต๋‹ˆ๋‹ค.

  • domain/signup/build.gradle.kts
  • domain/user/build.gradle.kts
  • domain/timetable/build.gradle.kts
  • domain/openmajor/build.gradle.kts
  • domain/notice/build.gradle.kts
  • domain/login/build.gradle.kts
  • domain/lectureevaluation/my/build.gradle.kts
  • domain/lectureevaluation/viewerreporter/build.gradle.kts
  • domain/lectureevaluation/editor/build.gradle.kts
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that the new `domain:common` module is properly set up.

# Test: Search for the `build.gradle.kts` file in the `domain:common` directory. Expect: It should exist and contain necessary configurations.
fd 'build.gradle.kts' --exec cat {}

Length of output: 25590



Script:

#!/bin/bash
# Description: Search for references to `domain:common` across the repository to ensure it is correctly referenced.

rg 'projects.domain.common'

Length of output: 736

settings.gradle.kts (1)

77-77: ์ƒˆ๋กœ์šด ๋ชจ๋“ˆ :domain:common์˜ ํฌํ•จ์ด PR ๋ชฉํ‘œ์™€ ์ผ์น˜ํ•ฉ๋‹ˆ๋‹ค. ์ด์ „ :core:common ๋ชจ๋“ˆ์— ๋Œ€ํ•œ ๋ชจ๋“  ์ฐธ์กฐ๊ฐ€ ์ œ๊ฑฐ๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค.

Verification successful

์ƒˆ๋กœ์šด ๋ชจ๋“ˆ :domain:common์˜ ํฌํ•จ์ด PR ๋ชฉํ‘œ์™€ ์ผ์น˜ํ•ฉ๋‹ˆ๋‹ค. ์ด์ „ :core:common ๋ชจ๋“ˆ์— ๋Œ€ํ•œ ๋ชจ๋“  ์ฐธ์กฐ๊ฐ€ ์ œ๊ฑฐ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

  • settings.gradle.kts ํŒŒ์ผ์—์„œ :domain:common ๋ชจ๋“ˆ ํฌํ•จ์ด ์ถ”๊ฐ€๋จ.
  • ์ฝ”๋“œ๋ฒ ์ด์Šค์—์„œ :core:common์— ๋Œ€ํ•œ ์ฐธ์กฐ๊ฐ€ ๋ชจ๋‘ ์ œ๊ฑฐ๋จ.
Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that all references to the old `:core:common` module are removed.

# Test: Search for any remaining references to `:core:common`. Expect: No occurrences should be found.
rg ':core:common'

Length of output: 17



Script:

#!/bin/bash
# Description: Verify that all references to the old `:core:common` module are removed.

# Test: Search for any remaining references to `:core:common` in all files. Expect: No occurrences should be found.
rg ':core:common' --hidden --glob '!.git/**'

Length of output: 44

@jinukeu jinukeu merged commit dce63fe into develop Jun 20, 2024
1 check passed
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.

[Refactor] core:common -> domain:common
1 participant