TP-23074 | Ingestion status for contacts fix development (#5865)
This commit is contained in:
committed by
GitHub Enterprise
parent
6f2ded46fb
commit
562de9d926
@@ -59,7 +59,15 @@ object PermissionUtil {
|
||||
append(COMMA)
|
||||
}
|
||||
try {
|
||||
callback?.let { submitAppData(toString(), businessVertical, scope, it, needTohandleIngestionPolling) }
|
||||
callback?.let {
|
||||
submitAppData(
|
||||
toString(),
|
||||
businessVertical,
|
||||
scope,
|
||||
it,
|
||||
needTohandleIngestionPolling
|
||||
)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
e.log()
|
||||
}
|
||||
@@ -111,7 +119,7 @@ object PermissionUtil {
|
||||
userDataUploadCallbackResponse
|
||||
)
|
||||
}
|
||||
if(needTohandleIngestionPolling) {
|
||||
if (needTohandleIngestionPolling) {
|
||||
UploadDataPollingUtil().handleUploadDataResponse(userDataUploadCallbackResponse)
|
||||
}
|
||||
// callback invocation means ,we are done with uploading
|
||||
@@ -131,8 +139,10 @@ object PermissionUtil {
|
||||
userDataUploadCallbackResponse
|
||||
)
|
||||
}
|
||||
if(needTohandleIngestionPolling) {
|
||||
UploadDataPollingUtil().handleUploadDataResponse(userDataUploadCallbackResponse)
|
||||
if (needTohandleIngestionPolling) {
|
||||
UploadDataPollingUtil().handleUploadDataResponse(
|
||||
userDataUploadCallbackResponse
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -383,6 +393,11 @@ object PermissionUtil {
|
||||
referenceId = referenceId,
|
||||
ingestionType = IngestionType.CONTACTS,
|
||||
)
|
||||
if (response.isSuccessful) {
|
||||
ingestionStatus.status = IngestionStatusType.SUCCESS
|
||||
} else {
|
||||
ingestionStatus.status = IngestionStatusType.FAILED
|
||||
}
|
||||
return ingestionStatus
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user