Aligner la validation du profil juridique facultatif #45

Closed
opened 2026-07-24 17:45:58 +02:00 by nessar · 4 comments
nessar commented 2026-07-24 17:45:58 +02:00 (Migrated from 172.24.0.1:8928)

Parent

#41

What to build

Keep the Appartement legal profile optional while aligning every user-editable save-time legal-profile constraint between the domain, HTTP boundary, and Angular form.

Acceptance criteria

  • An incomplete or empty legal profile remains saveable until Bail generation or finalization requires completeness.
  • Habitable surface and estimated annual energy cost accept null or nonnegative values and reject negative values inline.
  • Providing an energy cost requires a reference year from 1900 through 2100; a year without a cost is cleared before submission.
  • Energy rating remains limited to A–G through the existing selector.
  • Department codes are normalized to uppercase and validated against the backend’s accepted French codes using the existing text input and actionable guidance.
  • Backend validation returns all nested legal-profile field paths/codes without raw framework messages.
  • Frontend and backend tests cover each nuanced parity case and relevant checks pass.

Blocked by

## Parent #41 ## What to build Keep the Appartement legal profile optional while aligning every user-editable save-time legal-profile constraint between the domain, HTTP boundary, and Angular form. ## Acceptance criteria - [ ] An incomplete or empty legal profile remains saveable until Bail generation or finalization requires completeness. - [ ] Habitable surface and estimated annual energy cost accept null or nonnegative values and reject negative values inline. - [ ] Providing an energy cost requires a reference year from 1900 through 2100; a year without a cost is cleared before submission. - [ ] Energy rating remains limited to A–G through the existing selector. - [ ] Department codes are normalized to uppercase and validated against the backend’s accepted French codes using the existing text input and actionable guidance. - [ ] Backend validation returns all nested legal-profile field paths/codes without raw framework messages. - [ ] Frontend and backend tests cover each nuanced parity case and relevant checks pass. ## Blocked by - #43
nessar commented 2026-07-24 17:45:58 +02:00 (Migrated from 172.24.0.1:8928)

/blocked_by #43

/blocked_by #43
nessar commented 2026-07-24 17:45:59 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in issue #46

mentioned in issue #46
nessar commented 2026-07-24 20:02:04 +02:00 (Migrated from 172.24.0.1:8928)

mentioned in commit aa2c273eb52a25233eb136fcd7c2e548efd1ccd2

mentioned in commit aa2c273eb52a25233eb136fcd7c2e548efd1ccd2
nessar (Migrated from 172.24.0.1:8928) closed this issue 2026-07-26 19:21:36 +02:00

Preserved GitLab #45 history: source attribution, exact timestamps, discussion grouping and review positions. Historical diff snapshots: 1; visible source notes: 3.

gitlab-47-issue-45.md (SHA-256 109e55c23370e4094959880d2a198e97c3e8df648943b2fa3b89b1538adb19ec)

gitlab-47-issue-45.json (SHA-256 591838dd5bd6c1cdb38143a295632ac59203e65c2592a0240112e392eaf8f749)

Old CI job execution and reports are omitted. Original source files and rollback backups remain protected.

<!-- gitlab-to-gitea-history:47:Issue:45 --> Preserved GitLab #45 history: source attribution, exact timestamps, discussion grouping and review positions. Historical diff snapshots: 1; visible source notes: 3. [gitlab-47-issue-45.md](https://gitea.nessar.fr/attachments/df1fb63f-f55d-4d61-bb6b-f4ca9f1da6dd) (SHA-256 `109e55c23370e4094959880d2a198e97c3e8df648943b2fa3b89b1538adb19ec`) [gitlab-47-issue-45.json](https://gitea.nessar.fr/attachments/92f8147f-d014-44f6-8358-68524fdb3f98) (SHA-256 `591838dd5bd6c1cdb38143a295632ac59203e65c2592a0240112e392eaf8f749`) Old CI job execution and reports are omitted. Original source files and rollback backups remain protected.
gitea-emergency added this to the Development project 2026-10-11 22:14:36 +02:00
gitea-emergency moved this to Closed in Development on 2026-10-11 22:14:36 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: nessar/lmnp-organizer#45