-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
B-20647-INT add sac 80 character limit #13281
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried and tried and could not input a SAC longer than 80 characters.
When I broke this down I was originally of the opinion that there should be some server-side validation of the length. Since >80 characters caused an issue with a connected system we might want to be a bit more sure nothing too long gets into the DB. But since SAC cannot be viewed or updated from the Prime API (as far as I can tell) frontend only validation is probably fine.
Found lots of questionable behavior unrelated to these changes along the way. I need to verify that behavior with a fresh, not pre-populated, move.
Intending to re-review due to the addition of server-side validation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issues mentioned above are fixed.
Existing orders with a SAC >80 characters are un-updatable and don't tell you why but I don't know that's within the scope of this ticket.
B-20647
Summary
Set the SAC field character limit to 80 characters for HHG and NTS shipments.
Is there anything you would like reviewers to give additional scrutiny?
Also set backend validation so the SAC cannot be more than 80 characters. Please test using swagger by trying to create a a new Order. See instructions in test section.
Verification Steps for the Author
These are to be checked by the author.
Verification Steps for Reviewers
These are to be checked by a reviewer.
Setup to Run the Code
How to test
111111111122222222223333333333444444444455555555556666666666777777777788888888889999999999
Sample for the body for POST create Order is below just update the SAC as needed.
{
"serviceMemberId": "eec4e65e-b328-4133-b822-c7eaba860ec9",
"issueDate": "2024-07-22",
"reportByDate": "2024-07-22",
"ordersType": "PERMANENT_CHANGE_OF_STATION",
"ordersTypeDetail": "HHG_PERMITTED",
"hasDependents": true,
"spouseHasProGear": true,
"newDutyLocationId": "62e795f4-61a8-4cca-b59d-028345c07b89",
"ordersNumber": "030-00362",
"tac": "F8J1",
"sac": "111111111122222222223333333333444444444455555555556666666666777777777788888888889999999999",
"departmentIndicator": "NAVY_AND_MARINES",
"grade": "E_1",
"originDutyLocationId": "929ba47a-2f7d-430e-9655-157a4c80303d"
}
Sample body for the PATCH update of the order (use the eTag and id from the successful result above.
{
"issueDate": "2024-07-22",
"reportByDate": "2024-07-22",
"ordersType": "PERMANENT_CHANGE_OF_STATION",
"ordersTypeDetail": "HHG_PERMITTED",
"newDutyLocationId": "62e795f4-61a8-4cca-b59d-028345c07b89",
"ordersNumber": "030-00362",
"tac": "F8J1",
"sac": "11111111112222222222333333333344444444445555555555666666666",
"departmentIndicator": "NAVY_AND_MARINES",
"grade": "E_1",
"originDutyLocationId": "929ba47a-2f7d-430e-9655-157a4c80303d"
}
Frontend
officeApp
class or custommin-width
styling is used to hide any states the would not be visible to the user.Backend
Database
Any new migrations/schema changes:
Screenshots