Fsdss-281 Guide
### 📦 Release Notes - **FSDSS‑281** – Fixed crash when entering an invalid date on the Order creation page.
### 🧩 Investigation - **Hypothesis:** Date‑parsing library throws on out‑of‑range values. - **Evidence:** `date-fns` `parseISO` throws `RangeError` (see log line 1123). - **Next step:** Add explicit validation before calling `parseISO`.
### đź’ˇ Fix - Added `validateDate` helper. - Updated `order.controller.ts` to call `validateDate` before parsing. - Added unit test `order.controller.spec.ts` for invalid dates. FSDSS-281
### 🛠️ Environment - **Service / Module:** `backend‑order‑service` - **Env:** Staging - **OS / Browser:** macOS 13 / Chrome 116 - **Feature Flags:** `order_v2 = ON`
---
### đź“‹ Observed vs Expected - **Observed:** 500 Internal Server Error, stack trace in logs. - **Expected:** Validation error displayed on the form.
### 🎯 Acceptance Criteria - [ ] Criterion 1 - [ ] Criterion 2 - [ ] ... ### 📦 Release Notes - **FSDSS‑281** – Fixed
### 📌 Summary *(One‑sentence description of the problem / feature)*
### 🚀 Post‑Release Monitoring - No new errors in Sentry (last 24 h). - Success rate for Order creation ↑ 0.2 %. - **Next step:** Add explicit validation before calling