entity icon indicating copy to clipboard operation
entity copied to clipboard

Legal API - Integrate disable NR check feature flag

Open argush3 opened this issue 1 year ago • 1 comments

We need a feature flag to be able to disable NR checks in the sandbox. Note that all non-sandbox environments will always have this flag turned off.

This feature flag will need to be integrated into the nr_validate function of the namex service in legal api.

TODOs

  • [x] Updatenr_validate function in namex service in legal api to return valid NR result when disable-nr-check feature flag is on. Essentially update this function
  • [x] Add/Update tests as appropriate

argush3 avatar May 09 '24 21:05 argush3

found a bug. working on a fix

argush3 avatar May 16 '24 20:05 argush3

@vishnup0422 @riyazuddinsyed I fixed a bug I found when the disable-nr-check feature flag was turned on.

I verified that the IA filing is able to pass validation when disable-nr-check is on now using an already consumed NR.

Note that this fix is only in Dev right now. Let me know when you need to disable-nr-check feature flag turned on.

Here are the steps I used to test:

  1. Created a BEN(BC0878513, AC BEN 2024.MAY.9 21.59 TEST CORP.) with approved NR 4397108 in Dev.
  2. Tried submitting another IA filing with the same NR(NR 4397108) which was properly blocked by the POST /business endpoint. Note that the UI will not allow using the already consumed NR so tested directly via POST /business endpoint Http Request Http Response
  3. Turned disable-nr-check feature flag on
  4. Tried submitting another IA filing with the same NR(NR 4397108) via POST /business endpoint which passed validation as expected. Http Request Http Response

argush3 avatar May 17 '24 14:05 argush3

Performed 2 scenarios with the help of Argus Test env:

Scenario1: Using the Consumed NR for filing another Incorporation. Created a BEN with approved NR 2066581. Sent request to another IA filing with the same NR(NR 2066581) which was properly blocked by the POST /business endpoint.

Screenshot 2024-05-21 at 3.23.36 PM.png

Turned disable-nr-check feature flag on

Tried submitting another IA filing with the same NR(NR 2066581) via POST /business endpoint which passed validation as expected.

Screenshot 2024-05-21 at 3.31.05 PM.png

Scenario2: Filing for an Incorp with the consumed Name Change Request.

Screenshot 2024-05-21 at 3.32.44 PM.png Screenshot 2024-05-21 at 3.32.51 PM.png

vishnup0422 avatar May 21 '24 22:05 vishnup0422