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/data layer (3) #86

Merged
merged 11 commits into from
Dec 6, 2022
Merged

Refactor/data layer (3) #86

merged 11 commits into from
Dec 6, 2022

Conversation

Jeonhui
Copy link
Member

@Jeonhui Jeonhui commented Dec 5, 2022

πŸ“• Issue Number

Close #83

πŸ“™ μž‘μ—… λ‚΄μ—­

κ΅¬ν˜„ λ‚΄μš© 및 μž‘μ—… ν–ˆλ˜ λ‚΄μ—­

  • Data의 disposable κ΄€λ¦¬ν•˜λŠ” RepositoryManager κ΅¬ν˜„
  • Storage save Data λ°˜ν™˜κ°’ λ³€ν™˜
  • νšŒμ› νƒˆν‡΄ 뢄리 (ProtectedUserRepository)
  • ν…ŒμŠ€νŒ…

πŸ“˜ μž‘μ—… μœ ν˜•

  • μ‹ κ·œ κΈ°λŠ₯ μΆ”κ°€
  • 버그 μˆ˜μ •
  • λ¦¬νŽ™ν† λ§
  • λ¬Έμ„œ μ—…λ°μ΄νŠΈ

πŸ“‹ 체크리슀트

  • Merge ν•˜λŠ” λΈŒλžœμΉ˜κ°€ μ˜¬λ°”λ₯Έκ°€?
  • μ½”λ”©μ»¨λ²€μ…˜μ„ μ€€μˆ˜ν•˜λŠ”κ°€?
  • PRκ³Ό κ΄€λ ¨μ—†λŠ” 변경사항이 μ—†λŠ”κ°€?
  • λ‚΄ μ½”λ“œμ— λŒ€ν•œ 자기 κ²€ν† κ°€ λ˜μ—ˆλŠ”κ°€?
  • 변경사항이 νš¨κ³Όμ μ΄κ±°λ‚˜ λ™μž‘μ΄ μž‘λ™ν•œλ‹€λŠ” 것을 λ³΄μ¦ν•˜λŠ” ν…ŒμŠ€νŠΈλ₯Ό μΆ”κ°€ν•˜μ˜€λŠ”κ°€?
  • μƒˆλ‘œμš΄ ν…ŒμŠ€νŠΈμ™€ 기쑴의 ν…ŒμŠ€νŠΈκ°€ 변경사항에 λŒ€ν•΄ λ§Œμ‘±ν•˜λŠ”κ°€?

πŸ“ PR 특이 사항

PR을 λ³Ό λ•Œ 주의깊게 λ΄μ•Όν•˜κ±°λ‚˜ λ§ν•˜κ³  싢은 점

  • ProtectedUserRepository (ν”„λ‘œν•„ λ·°μ—μ„œλŠ” 두 ν”„λ‘œν† μ½œ λͺ¨λ‘ μ‚¬μš©)



Copy link
Collaborator

@jinwoong16 jinwoong16 left a comment

Choose a reason for hiding this comment

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

κ³ μƒν•˜μ…¨μŠ΅λ‹ˆλ‹€. 였늘 PRλ“€ λ³΄λ‹ˆ, 이제 μ§„μ§œ λ§ˆμ§€λ§‰μ΄ λ‹€κ°€μ™”μŒμ„ μ•Œκ²Œλ˜λ„€μš”. λ‚¨μ€κΈ°κ°„λ™μ•ˆ 마무리 μž˜ν•΄λ΄…μ‹œλ‹€.

Comment on lines +10 to +15
final class RepositoryManager {
static let shared = RepositoryManager()
private init() { }

var disposeBag: DisposeBag = DisposeBag()
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

μƒκ°ν•΄λ³΄λ‹ˆ 이방식은 μœ μ˜ν•  ν•„μš”κ°€ μžˆμ„ λ“― ν•©λ‹ˆλ‹€. fetch()λ©”μ„œλ“œ 등이 싀행될 λ•Œλ§ˆλ‹€ 기쑴의 disposable이 disposeλ˜μ§€ μ•Šκ³  μƒˆλ‘œμš΄ disposable이 생성될 것 κ°™λ„€μš”.

Copy link
Member Author

Choose a reason for hiding this comment

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

이 뢀뢄에 λŒ€ν•΄μ„œλŠ” μ œκ°€ 지식이 쑰금 λΆ€μ‘±ν•œ 것 κ°™λ„€μš” 쑰금 더 κ³΅λΆ€ν•΄λ³΄κ² μŠ΅λ‹ˆλ‹€ 😊 κ°μ‚¬ν•©λ‹ˆλ‹€

Comment on lines +36 to +48
// // when
// let output = questViewModel.transform(input: QuestViewModel.Input(viewDidLoad: .just(Date()).asObservable(), itemDidClicked: .just(<#T##element: Quest##Quest#>)), disposeBag: disposeBag)
//
// // then
// output
// .data
// .drive(onNext: { quests in
// print(quests)
// expectation.fulfill()
// })
// .disposed(by: disposeBag)
//
// wait(for: [expectation], timeout: 1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

λ³€κ²½λœ 뢀뢄에 맞게 ν…ŒμŠ€νŠΈ μ½”λ“œ μˆ˜μ •ν•΄λ‘κ² μŠ΅λ‹ˆλ‹€.
ps. test κ΄€λ ¨λœ 컀밋은 [test]라고 λ‹¬μ•„μ£Όμ„Έμš”!

Copy link
Member Author

Choose a reason for hiding this comment

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

λ„΅ ν™•μΈν–ˆμŠ΅λ‹ˆλ‹€!

Copy link
Collaborator

@wickedRun wickedRun left a comment

Choose a reason for hiding this comment

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

λ§ˆλ¬΄λ¦¬λ•Œ μ–˜κΈ°ν–ˆλ˜ λΆ€λΆ„μ΄κ΅°μš© κ³ μƒν•˜μ…¨μŠ΅λ‹ˆλ‹€.

@sprituz
Copy link
Member

sprituz commented Dec 6, 2022

κ³ μƒν•˜μ…¨μŠ΅λ‹ˆλ‹€!!!

@jinwoong16 jinwoong16 merged commit 290c917 into develop Dec 6, 2022
@Jeonhui Jeonhui deleted the refactor/DataLayer branch December 6, 2022 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor data layer
4 participants