beckn / beckn-ui-workspace

Mono Repo for Beckn UI Workspace
9 stars 12 forks source link

Policy Portal- Date validation is failing, allowing backdated policies to be created and applied #2278

Open omkar-em opened 1 week ago

omkar-em commented 1 week ago

Bug Description

The date validation in the Policy Portal is failing, allowing users to create backdated policies. These backdated policies are still being applied, which is causing issues in policy enforcement.

Steps to Reproduce

  1. Navigate to the new policy creation form in the Policy Portal.
  2. Enter a past date in the policy effective date field.
  3. Save the policy.
  4. Observe that the policy is created with a backdated effective date and is still being applied.

Expected Behavior

The system should validate the effective date and prevent the creation of policies with past dates. Backdated policies should not be applicable.

Actual Behavior

Backdated policies are allowed to be created and applied, indicating that date validation is not functioning properly.

Figma

NA

Environment

Screenshots/Logs

NA

aniketceminds commented 1 week ago

is this expected? @omkar-em Image