bcgov / bcgov/entity

Backend - Update validators

Open
#2,467 1 comment 0 reactions 0 assignees View on GitHub
ENTITY - DO NOT USE
Dominant language
JavaScript
Stars
23
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

### Description
- Research when a call is needed and populate the ticket
- add validator for comparing our data to the NR data (fetch the latest NR data at file & pay)
* Validate NR data against schema
* Add validators for:
* Supported NR statuses only
* Non-expired NRs
* Supported request types only
* Supported Conditions/Consent statuses only
See story for specific validation requirements

----
* If anything about the NR changes mid-draft, and the validation still passes, let them continue.
* If anything about the NR changes mid-draft, but the validation does NOT pass, frontend to show generic error and kick them out again **FOR MVP**
* Scott, Linda, Sienna to define better behavior for future ticket

### Requirements
See story for requirements doc

**Notes**
- no API ... here

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files or tests and refers to a separate story and requirements document; start there, then locate the backend entry point for NR validation and the latest-NR fetch. Confirm the schema, supported statuses, expiry, request types, and Conditions/Consent rules before estimating the work. Done criteria require populated requirements and agreed MVP behavior for invalid mid-draft changes.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
10/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.