Closed sonytrinhcvn closed 4 years ago
We need to make sure that the values in the table ut_role_types
in the BZ database are also updated:
Fix 1 did NOT fix the issue.
ut_data_to_create_units
ut_invitation_api_data
ut_data_to_replace_dummy_roles
...
{
"fields": {
"app": "processinvitations",
"commit": "1f48f08",
"error": "sql: no rows in result set",
"invite": {
"_id": "kifEmBZCyhEGJXM8m",
"caseId": 0,
"invitedBy": 7,
"invitee": 7,
"isOccupant": false,
"mefeInvitationIdIntValue": 27,
"role": "My Account Manager",
"type": "replace_default",
"unitId": 30
},
"plugin": "relay",
"region": "ap-southeast-1",
"requestID": "c0648514-ecf5-469c-b0ba-90bebd1c4120",
"stage": "production",
"version": "29"
},
"level": "error",
"timestamp": "2020-02-16T04:37:05.121056108Z",
"message": "failed to run step1Insert"
}
{
...
The issue seems to happen when we try to assign the user to the renamed role in the newly created unit.
processinvitations
to continue debugging.@sonytrinhcvn what is the latest commit for a version that was working as expected (unit is created without the API error)?
The values for the roles in the table ut_role_types
were NOT consistent with the data in Mongo DB.
Replace the values for the roles in the table ut_role_types
with the values we have in the Mongo DB:
This fixed the issue . We are now able to create a new policy
I just changed the label of dropdown and still keeping KEY but cannot add a new Unit, just got Lamda error.
check this commit