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
bf15edcd
Commit
bf15edcd
authored
2 years ago
by
Jayaprakash n
Browse files
Options
Download
Patches
Plain Diff
Issue #SB-30154 feat: DIAL code link API refactor.
parent
08133c31
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-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
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/dial/DIALManager.scala
+1
-9
...src/main/scala/org/sunbird/content/dial/DIALManager.scala
with
1 addition
and
9 deletions
+1
-9
content-api/content-actors/src/main/scala/org/sunbird/content/dial/DIALManager.scala
+
1
−
9
View file @
bf15edcd
...
...
@@ -175,21 +175,13 @@ object DIALManager {
def
getLinkUpdateRequest
(
req
:
Request
,
rootNode
:
Node
,
requestMap
:
Map
[
String
,
List
[
String
]],
objectId
:
String
)
:
Request
=
{
val
updateReq
=
new
Request
(
req
)
updateReq
.
put
(
ContentConstants
.
IDENTIFIER
,
rootNode
.
getIdentifier
)
val
rootNodeMetadata
=
rootNode
.
getMetadata
rootNodeMetadata
.
remove
(
DIALConstants
.
DISCUSSION_FORUM
)
rootNodeMetadata
.
remove
(
DIALConstants
.
CREDENTIALS
)
rootNodeMetadata
.
remove
(
DIALConstants
.
TRACKABLE
)
rootNodeMetadata
.
remove
(
DIALConstants
.
RESERVED_DIALCODES
)
if
(
rootNodeMetadata
.
containsKey
(
DIALConstants
.
DIALCODES
))
rootNodeMetadata
.
remove
(
DIALConstants
.
DIALCODES
)
updateReq
.
put
(
DIALConstants
.
VERSION_KEY
,
rootNode
.
getMetadata
.
get
(
"versionKey"
))
if
(
requestMap
(
objectId
).
isEmpty
)
updateReq
.
put
(
DIALConstants
.
DIALCODES
,
null
)
else
updateReq
.
put
(
DIALConstants
.
DIALCODES
,
requestMap
(
objectId
).
toArray
[
String
])
updateReq
.
getRequest
.
putAll
(
rootNodeMetadata
)
updateReq
}
...
...
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