Skip to content

Conversation

@josbell
Copy link
Contributor

@josbell josbell commented Dec 31, 2025

What changed

When requesting a bli status change, now the validation of the agreement/blis will be postponed until user selects the blis that need to change. Furthermore, instead of validating all blis, only the selected blis will be validated.

Described what changes in this PR, at a high level

Previously the agreement/blis were validated using vest as a whole suite and done on page rendering. This change decouples the agreement and blis suites. They are not triggered not on page rendering but on bli selection.

Additionally there is also an unrelated fix to a warning emerging from Agreement table row where a div ended up being rendered as a direct child of a table when loading.

Issue

4720

Add link to issue here
#4720

How to test

  1. Navigate to Agreement
  2. Request a Status Change
  3. No agreement or bli validation error messages should be rendered
  4. Select the type of status change (draft to planned or planned to executing)
  5. Only the blis with the correct status should be able to be selected
  6. Select one or more blis
  7. Only now should the agreement be validated and only the selected blis and error messages (if any) rendered

Write out steps for how someone could test this PR against the acceptance criteria

Screenshots

If relevant, e.g. for a front-end feature

Definition of Done Checklist

  • OESA: Code refactored for clarity
  • OESA: Dependency rules followed
  • Automated unit tests updated and passed
  • Automated integration tests updated and passed
  • Automated quality tests updated and passed
  • Automated load tests updated and passed
  • Automated a11y tests updated and passed
  • Automated security tests updated and passed
  • 90%+ Code coverage achieved
  • Form validations updated

Links

If relevant, e.g. for a link to a piece of markdown documentation

@josbell josbell marked this pull request as ready for review January 6, 2026 03:22
Copy link
Contributor

@rajohnson90 rajohnson90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I've seen here all makes sense. Just respond to my one question and I'll be ready to approve.

FEE="3.0",
START_DATE="2025-01-01",
END_DATE="2025-12-31",
END_DATE="2026-12-31",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we had to update these because of the year, is there any chance we could push these out like 20 years and still keep the same test results? That way we don't have to do this yearly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the better fix would be to generate them dynamically but since @weimiao67 mentioned he had already done that in his PR that has not been merged yet I just left this hardcoded to pass e2e temporarily. I guess the only concern is if this PR gets merged after wei's

enteredDescription: "Test description",
setEnteredDescription: mockFn,
needByDate: "12/31/2025",
needByDate: "12/31/2026",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question as test_load_procurementshops

selectedCan: { id: 1, number: "G123456" },
enteredAmount: 1000,
needByDate: "12/31/2025"
needByDate: "12/31/2026"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question as test_load_procurement_shops

selectedCan: { id: 1, number: "G123456" },
enteredAmount: 0, // This should fail validation
needByDate: '12/31/2025'
needByDate: "12/31/2026"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same question as test_load_procurement_shops

Copy link
Contributor

@rajohnson90 rajohnson90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that Wei has dynamic fixes for the things I'm concerned with, I am fine with approving this name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants