Unverified Commit d39ed09c authored by Anil Gupta's avatar Anil Gupta Committed by GitHub
Browse files

Issue #CO-173 merge: Merge pull request #911 from Jayaprakash8887/release-5.2.0

Issue #CO-173 fix: Schema validation fix
No related merge requests found
Showing with 5 additions and 4 deletions
+5 -4
......@@ -2,6 +2,7 @@ package org.sunbird.graph
import org.sunbird.common.Platform
import org.sunbird.common.dto.{Property, Request, Response, ResponseHandler}
import org.sunbird.common.exception.ResponseCode
import org.sunbird.graph.dac.model.{Node, SearchCriteria}
import org.sunbird.graph.external.ExternalPropsManager
import org.sunbird.graph.service.operation.{GraphAsyncOperations, Neo4JBoltSearchOperations, NodeAsyncOperations, SearchAsyncOperations}
......@@ -55,13 +56,13 @@ class GraphService {
}
def readExternalProps(request: Request, fields: List[String]): Future[Response] = {
ExternalPropsManager.fetchProps(request, fields).map(res =>
if(isrRelativePathEnabled) {
ExternalPropsManager.fetchProps(request, fields).map(res => {
if(isrRelativePathEnabled && res.getResponseCode == ResponseCode.OK) {
val updatedResult = CSPMetaUtil.updateExternalAbsolutePath(res.getResult)
val response = ResponseHandler.OK()
response.putAll(updatedResult)
response
} else res)
} else res})
}
def saveExternalProps(request: Request): Future[Response] = {
......
......@@ -27,7 +27,7 @@
<module>platform-core</module>
<module>ontology-engine</module>
<module>content-api</module>
<module>assessment-api</module>
<!-- <module>assessment-api</module>-->
<module>taxonomy-api</module>
<module>platform-modules</module>
<module>search-api</module>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment