Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

🔀 :: (#113) 고민일기 작성 수정 #114

Merged
merged 16 commits into from
Nov 20, 2023

Conversation

chlgkdms
Copy link
Member

개요

고민일기 기능을 수정합니다.

작업사항

  • 변수명 변경
  • 삭제 구현

추가 로 할 말

@chlgkdms chlgkdms added 버그! 버그 생김! 리팩토링 코드 리팩토링 labels Nov 20, 2023
@chlgkdms chlgkdms requested a review from Tmdhoon2 November 20, 2023 09:52
@chlgkdms chlgkdms self-assigned this Nov 20, 2023
@chlgkdms chlgkdms linked an issue Nov 20, 2023 that may be closed by this pull request
data/src/main/kotlin/com/signal/data/api/DiaryApi.kt Outdated Show resolved Hide resolved
@@ -1,5 +1,7 @@
package com.signal.signal_android.feature.main.diary

import android.util.Log
Copy link
Collaborator

Choose a reason for hiding this comment

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

로그 지워주세요

setState(copy(diaries = _diaries.toMutableStateList()))
}
viewModelScope.launch(Dispatchers.IO) {
diaryRepository.deleteDiary(diaryId = diaryId).onSuccess {
Copy link
Collaborator

Choose a reason for hiding this comment

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

여기도 fail에서 NPE인 경우랑 동일하게 처리해줘야 할 것 같아요

Copy link
Member Author

Choose a reason for hiding this comment

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

이거 왠지 모르겠는데 요청이 success에도 가고 failure에도 가서 하나에만 처리해줬어요

onLeadingClicked = moveToBack,
trailingIcon = painterResource(id = R.drawable.ic_delete),
onTrailingClicked = {/*TODO delete*/}
)
onTrailingClicked = { diaryViewModel.deleteDiary() })
Copy link
Collaborator

Choose a reason for hiding this comment

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

trailingClicked인데 trailingComma가 없네요 🤣🤣

@chlgkdms chlgkdms requested a review from Tmdhoon2 November 20, 2023 14:51
@chlgkdms chlgkdms merged commit 62c6802 into develop Nov 20, 2023
@chlgkdms chlgkdms deleted the feature/113-고민일기-작성-수정 branch November 20, 2023 23:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
리팩토링 코드 리팩토링 버그! 버그 생김!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

고민일기 작성 수정
2 participants