Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
knowledge-platform
Commits
89e77bc2
Commit
89e77bc2
authored
2 years ago
by
Jayaprakash n
Browse files
Options
Download
Patches
Plain Diff
Issue #SB-30307 fix: relational_metadata setting as string null
parent
a74aae99
release-5.3.0
AmiableAnil-patch-1
Gcloud_copy
Gcloud_fix
Remove_unwantedCode_Gcloud_fix
bulk-upload-comptenecy-mapping
bulk-upload-excelsheet
bulk-upload-test_excel
bulk_upload
csp-migration
knowlg-oneclick
local-setup-kube
master
patch-1
patch-2
patch-3
poc_bulk_upload
rahul_bulk_upload_postgres
release-4.10.0
release-4.10.1
release-4.9.1
release-5.0.0
release-5.0.1
release-5.1.0
release-5.1.0-content
release-5.2.0
release-5.2.0_RC2
release-5.2.0_RC1
release-5.1.0_RC1
release-5.0.0_RC2
release-5.0.0_RC1
release-4.10.0_RC2
release-4.9.1_RC1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
content-api/content-actors/src/main/scala/org/sunbird/content/actors/ContentActor.scala
+5
-0
.../main/scala/org/sunbird/content/actors/ContentActor.scala
with
5 additions
and
0 deletions
+5
-0
content-api/content-actors/src/main/scala/org/sunbird/content/actors/ContentActor.scala
+
5
−
0
View file @
89e77bc2
...
...
@@ -243,6 +243,11 @@ class ContentActor @Inject() (implicit oec: OntologyEngineContext, ss: StorageSe
"Yes"
.
equalsIgnoreCase
(
node
.
getMetadata
.
getOrDefault
(
"trackable"
,
new
java
.
util
.
HashMap
[
String
,
AnyRef
]).
asInstanceOf
[
java.util.Map
[
String
,
AnyRef
]].
getOrDefault
(
"enabled"
,
""
).
asInstanceOf
[
String
]))
{
node
.
getMetadata
.
put
(
"contentType"
,
"Course"
)
}
//TODO: Below fix to be reviewed when the fix for null to Stringify in ExternalStore.scala is implemented
if
(
node
.
getExternalData
!=
null
&&
node
.
getExternalData
.
containsKey
(
"relational_metadata"
)
&&
node
.
getExternalData
.
get
(
"relational_metadata"
)
==
null
)
{
node
.
getExternalData
.
put
(
"relational_metadata"
,
"{}"
)
}
node
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets