Swagger: It is not possible to create/update a tenant as Development TenantType
Description
PRDE - Bug default text according to the team DoR (Definition of Ready)
01 - PERSON OF CONTACT (PERSON THAT CAN ANSWER QUESTIONS ABOUT THE PROBLEM):
@Douglas Coimbra Lopes
02 - PROBLEM (WHAT'S THE ISSUE?):
- It is not possible to create/update a tenant as Development TenantType
- This is an intermittent scenario, but one that is easy to replicate.
- Currently, on the platform, the platform does not allow to create a tenant with the parameter
"tenantType": "DEVELOPMENT"
Example:
{
"mdmName": "newtenant",
"mdmDescription": {},
"mdmSubdomain": "newtenant",
"mdmEnableAddressCleansing": true,
"tenantType": "DEVELOPMENT",
"mdmWhiteListDomains": [
"totvslabs.com"
],
"mdmOrgId": "ce2a9f39d7064f429d365f933e53bf40"
}
2. In a few situations, if we try to update the tenant to be a Development tenantType, the tenant is still a CUSTOMER
- Once we try to get the tenant by Id, the tenant is still a CUSTOMER
- We need to run the endpoint twice to apply the tenantType update
03- STEPS-
- Scenario 1; Creating a tenant as Development TenantType
- As Org Admin, try to create a tenant with the parameter
"tenantType": "DEVELOPMENT"
- Scenario 2: Updating a tenant to be Development TenantType
- As Org Admin, create a tenant
- Once the tenant is created, update its tenant type to be
"tenantType": "DEVELOPMENT"
- Try to search the updated tenant by its
mdmId