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

DEP-68 feat: 목표 활성 비활성화 구현 및 버그 수정 #27

Merged
merged 9 commits into from
Oct 23, 2022

Conversation

juhwankim-dev
Copy link
Member

💁‍♂️ 변경 내용

AS-IS

  • 활성 / 비활성화를 해도 즉각 반영되지 않는 버그가 있었습니다.
  • adapter에서 viewModel을 참조했습니다.

TO-BE

  • 활성 / 비활성화가 즉각 반영됩니다.
  • adapter에 함수를 넘기는 방식으로 viewModel을 참조하지 않도록 했습니다.

📢 전달사항

리스트는 여전히 실시간 반영이 되지 않습니다.
이것저것 다해봤는데 아무래도 DiffUtil 쪽 문제 같은데 흠... 🤔
지금 LiveData로 되어있는데 나중에 다시 Flow로 돌리겠습니다.

…-android into feature/DEP-68_goal_achievement

� Conflicts:
�	data/src/main/java/com/depromeet/threedays/data/mapper/GoalMapper.kt
�	domain/src/main/java/com/depromeet/threedays/domain/entity/Goal.kt
…-android into feature/DEP-68_goal_achievement

� Conflicts:
�	data/src/main/java/com/depromeet/threedays/data/mapper/GoalMapper.kt
�	presentation/home/src/main/java/com/depromeet/threedays/home/home/GoalAdapter.kt
�	presentation/home/src/main/java/com/depromeet/threedays/home/home/GoalViewHolder.kt
�	presentation/home/src/main/java/com/depromeet/threedays/home/home/HomeFragment.kt
�	presentation/home/src/main/java/com/depromeet/threedays/home/home/HomeViewModel.kt
�	presentation/home/src/main/res/layout/item_goal.xml
@juhwankim-dev juhwankim-dev self-assigned this Oct 23, 2022
@juhwankim-dev juhwankim-dev requested a review from a team as a code owner October 23, 2022 16:20
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@@ -24,7 +25,7 @@ class GoalAdapter(val viewModel: HomeViewModel) : ListAdapter<Goal, GoalViewHold
companion object {
private val DIFF_UTIL = object : DiffUtil.ItemCallback<Goal>() {
override fun areItemsTheSame(oldItem: Goal, newItem: Goal): Boolean {
return oldItem.goalId == newItem.goalId
return oldItem == newItem
Copy link
Member

Choose a reason for hiding this comment

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

요거 아까 화면공유할 때 수정하신걸로봤는데 의도하신거 맞을까요?

Copy link
Member Author

Choose a reason for hiding this comment

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

둘 다 제대로 작동을 안 해서 그냥 냅뒀다... 라고 보면 될 것 같습니다 😭

@junhaesung junhaesung requested a review from a team October 23, 2022 16:28
@juhwankim-dev juhwankim-dev merged commit 357fb89 into develop Oct 23, 2022
@juhwankim-dev juhwankim-dev deleted the feature/DEP-68_goal_achievement branch October 23, 2022 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants