๐Ÿ“– star365 Docs
โ† ๋ณด๊ณ ์„œ ๋ชฉ๋ก

Sprint #12 Report โ€” 4 platform hook ์œ„์น˜ + shop hardening

โœ… Track A: 4 platform hook ์œ„์น˜ ๊ฐœ์„  PASS

์ง„๋‹จ ๊ฒฐ๊ณผ (ํ˜„์žฌ ์ƒํƒœ)

๋ณ€๊ฒฝ (SPRINT12_HOOK_RELOCATED)

  1. finance (spendPoints): SPRINT2 hook ๋ผ์ธ ์ œ๊ฑฐ + ํ•จ์ˆ˜ ์‹œ์ž‘์— ์‹ ๊ทœ hook ์ธ์ ์…˜
  2. assistant (spendPoints): hook ์ž์ฒด ๋ถ€์žฌ โ†’ ํ•จ์ˆ˜ ์‹œ์ž‘์— ์‹ ๊ทœ hook ์ธ์ ์…˜

E2E ๊ฒ€์ฆ (finance)

test-finance local point_account.balance 0์œผ๋กœ ๊ฐ•์ œ reset
โ†’ POST /api/v1/points/spend (JWT) {amount:200}
โ†’ response: {success:true, spentPoints:200, newBalance:1700, _source:"central"}
โ†’ unified: 1900 โ†’ 1700 (-200) โœ…

โ†’ local ์ž”๊ณ  0์ด๋ผ๋„ SPRINT12_HOOK ํ•จ์ˆ˜ ์‹œ์ž‘์—์„œ ๋ฐœ๋™ โ†’ unified ์ฐจ๊ฐ โ†’ return early

6 platform ์ตœ์ข… hook ์œ„์น˜ ์ƒํƒœ

platform hook ์œ„์น˜ ์ƒํƒœ
finance ํ•จ์ˆ˜ ์‹œ์ž‘ (Sprint #12 RELOCATED) โœ…
legal ํ•จ์ˆ˜ ์‹œ์ž‘ (transaction ์•ˆ์—์„œ balance check) โœ… ์›๋ž˜ OK
assistant ํ•จ์ˆ˜ ์‹œ์ž‘ (Sprint #12 ์‹ ๊ทœ) โœ…
hospital ํ•จ์ˆ˜ ์‹œ์ž‘ (Sprint #11 RELOCATED) โœ…
pet ํ•จ์ˆ˜ ์‹œ์ž‘ (Sprint #10 ์‹ ๊ทœ) โœ…
shop ํ•จ์ˆ˜ ์‹œ์ž‘ (์›๋ž˜ ์ฝ”๋“œ) โœ…

โ†’ 6/6 platform ๋ชจ๋‘ hook์ด ํ•จ์ˆ˜ ์‹œ์ž‘์— ์œ„์น˜ โ€” ๊ฒฌ๊ณ ํ•œ dual-write ๋ณด์žฅ

๐ŸŸก Track B: shop SpendPointsDto fix ์‹œ๋„

๋ณ€๊ฒฝ

๊ฒฐ๊ณผ

โ†’ shop spendPoints (line 366, SPRINT2 hook ์œ„์น˜)๋Š” ๋‹ค๋ฅธ trigger ํ๋ฆ„ ํ•„์š”

๐ŸŸก Track C: shop transfer URL fix ์‹œ๋„

๋ณ€๊ฒฝ

๊ฒฐ๊ณผ

๋ˆ„์  ์‹ค E2E (Sprint #1~#12) = 5/6 platform PASS

platform trigger ๊ฒฐ๊ณผ
assistant admin-points/deduct (#8) โœ…
legal product purchase (#8) โœ…
finance user spend (#9 + #12 local 0 OK) โœ…โœ…
pet cross-platform/deduct (#10) โœ…
hospital cross-platform/deduct (#10 + #11 local 0 OK) โœ…โœ…
shop (์ •์  ๊ฒ€์ฆ) ๐ŸŸก ๋น„์ฆˆ๋‹ˆ์Šค ํ๋ฆ„ ์˜์กด

๋ˆ„์  (Sprint #1~#12)

Files Changed

์•ˆ์ „ ๊ฒ€์ฆ

Telegram

โœ… MCO ๋ธ”๋กœ๊ทธ โ†’ message_id 10178

ํ‰๊ฐ€ 8.5/10 (Track A PASS, B+C ๋ถ€๋ถ„ ์ •์ง)

์ง„์งœ ๋งˆ์ง€๋ง‰ ๋‚จ์€ ํ•ญ๋ชฉ

  1. shop starium-point.controller์— UseGuards JwtAuthGuard ์ถ”๊ฐ€ โ†’ cookie JWT ์ž๋™ ์ธ์ฆ
  2. shop cross-platform-points.controller alias points/cross-platform/deduct route ์ถ”๊ฐ€ โ†’ transfer ์ž์ฒด self-deduct ์ž‘๋™
  3. shop ์ž์ฒด ๊ฒฐ์ œ/์žฅ๋ฐ”๊ตฌ๋‹ˆ ํ๋ฆ„ trigger ์‹œ๋ฎฌ

(์ „๋ถ€ ๋น„์ฆˆ๋‹ˆ์Šค/์ธ์ฆ ํ™˜๊ฒฝ ์ž‘์—…, ํ†ตํ•ฉ ํฌ์ธํŠธ ํ•ต์‹ฌ๊ณผ ๋ถ„๋ฆฌ)