Skip to content

Conversation

@Jeonhui
Copy link
Member

@Jeonhui Jeonhui commented Nov 22, 2022

๐Ÿ“• Issue Number

Close #33

๐Ÿ“™ ์ž‘์—… ๋‚ด์—ญ

๊ตฌํ˜„ ๋‚ด์šฉ ๋ฐ ์ž‘์—… ํ–ˆ๋˜ ๋‚ด์—ญ

  • Entity Date ์ถ”๊ฐ€ -> ๊ด€๋ จ ์ฝ”๋“œ ์ˆ˜์ •
  • RealmQuestsStorage ์ˆ˜์ •
  • DefaultQuestsRepository ๊ตฌํ˜„์ฒด ์ž‘์„ฑ
  • String Extension ์ถ”๊ฐ€ (String->Date)
  • Date Extension ์ถ”๊ฐ€ (Date->String)

๐Ÿ“˜ ์ž‘์—… ์œ ํ˜•

  • ์‹ ๊ทœ ๊ธฐ๋Šฅ ์ถ”๊ฐ€
  • ๋ฒ„๊ทธ ์ˆ˜์ •
  • ๋ฆฌํŽ™ํ† ๋ง
  • ๋ฌธ์„œ ์—…๋ฐ์ดํŠธ

๐Ÿ“‹ ์ฒดํฌ๋ฆฌ์ŠคํŠธ

  • Merge ํ•˜๋Š” ๋ธŒ๋žœ์น˜๊ฐ€ ์˜ฌ๋ฐ”๋ฅธ๊ฐ€?
  • ์ฝ”๋”ฉ์ปจ๋ฒค์…˜์„ ์ค€์ˆ˜ํ•˜๋Š”๊ฐ€?
  • PR๊ณผ ๊ด€๋ จ์—†๋Š” ๋ณ€๊ฒฝ์‚ฌํ•ญ์ด ์—†๋Š”๊ฐ€?
  • ๋‚ด ์ฝ”๋“œ์— ๋Œ€ํ•œ ์ž๊ธฐ ๊ฒ€ํ† ๊ฐ€ ๋˜์—ˆ๋Š”๊ฐ€?
  • ๋ณ€๊ฒฝ์‚ฌํ•ญ์ด ํšจ๊ณผ์ ์ด๊ฑฐ๋‚˜ ๋™์ž‘์ด ์ž‘๋™ํ•œ๋‹ค๋Š” ๊ฒƒ์„ ๋ณด์ฆํ•˜๋Š” ํ…Œ์ŠคํŠธ๋ฅผ ์ถ”๊ฐ€ํ•˜์˜€๋Š”๊ฐ€?
  • ์ƒˆ๋กœ์šด ํ…Œ์ŠคํŠธ์™€ ๊ธฐ์กด์˜ ํ…Œ์ŠคํŠธ๊ฐ€ ๋ณ€๊ฒฝ์‚ฌํ•ญ์— ๋Œ€ํ•ด ๋งŒ์กฑํ•˜๋Š”๊ฐ€?

๐Ÿ“ PR ํŠน์ด ์‚ฌํ•ญ

PR์„ ๋ณผ ๋•Œ ์ฃผ์˜๊นŠ๊ฒŒ ๋ด์•ผํ•˜๊ฑฐ๋‚˜ ๋งํ•˜๊ณ  ์‹ถ์€ ์ 

  • ์‚ฌ์šฉ์ž์˜ Quests๋ฅผ ๋„คํŠธ์›Œํฌ์—์„œ ๋ถˆ๋Ÿฌ์˜ค๋Š” ์‹œ์  (์ฝ”๋“œ ์ถ”๊ฐ€ ํ•„์š”)
  • XCTest ์ฝ”๋“œ ๊ตฌํ˜„ ์‹คํŒจ (Realm.private ๋ชจ๋“ˆ์„ ๋ถˆ๋Ÿฌ์˜ค๋Š”๋ฐ ์‹คํŒจ)



@Jeonhui Jeonhui linked an issue Nov 22, 2022 that may be closed by this pull request
Co-Authored-By: Jeonhui Lee <[email protected]>
@jinwoong16
Copy link
Collaborator

๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค. merge ๋๋‚˜๋ฉด QuestView์ชฝ์€ ๋ชจ๋“  ๋ ˆ์ด์–ด ์—ฐ๊ฒฐ์ด ๊ฐ€๋Šฅํ•˜๊ฒ ๋„ค์š” :)

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.

๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹น ์ž˜๋ดค์๋‹ˆ๋‹ค.

switch access {
case .quests:
do {
try ref.collection("quests")
Copy link
Collaborator

Choose a reason for hiding this comment

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

collection ์ ‘๊ทผํ•  ๋•Œ rawValue๋‚˜ ๋งŒ๋“  ๋ณ€์ˆ˜๊ฐ™์€ ๊ฐ’์œผ๋กœ ์ ‘๊ทผํ•ด๋„ ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.


do {
let quests = try realmStorage
.fetchEntities(type: QuestEntity.self, filter: NSPredicate(format: "date == %@", date.toString))
Copy link
Collaborator

Choose a reason for hiding this comment

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

๊ฐœ์ธ์ ์ธ ์˜๊ฒฌ์ž…๋‹ˆ๋‹ค๋งŒ ๊ฐ€๋Šฅํ•˜๋‹ค๋ฉด NSPredicate๋“ค์„ enum ์ด๋‚˜ struct๋กœ predicate์— ๋Œ€ํ•ด ์ด๋ฆ„์ด ์žˆ์œผ๋ฉด ํ›จ์”ฌ ์ฝ๊ธฐ ์‰ฌ์šธ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹น. ์•„๋‹ˆ๋ฉด ํ•จ์ˆ˜ ๋‚ด์—์„œ let์œผ๋กœ ๋นผ๊ฑฐ๋‚˜?

@jinwoong16 jinwoong16 merged commit 1d42a92 into develop Nov 23, 2022
@jinwoong16 jinwoong16 deleted the feature/QuestRepository branch November 23, 2022 06:19
@jinwoong16 jinwoong16 restored the feature/QuestRepository branch November 23, 2022 06:19
@jinwoong16 jinwoong16 deleted the feature/QuestRepository branch November 23, 2022 06:19
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.

Quest Repository

5 participants