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
62873d4d
Commit
62873d4d
authored
1 year ago
by
anil kumar
Browse files
Options
Download
Patches
Plain Diff
worked on serverEvaluable changes
parent
3a59c7d8
Gcloud_fix
1 merge request
!5
worked on serverEvaluable changes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assessment-api/qs-hierarchy-manager/src/main/scala/org/sunbird/managers/HierarchyManager.scala
+3
-3
...rc/main/scala/org/sunbird/managers/HierarchyManager.scala
with
3 additions
and
3 deletions
+3
-3
assessment-api/qs-hierarchy-manager/src/main/scala/org/sunbird/managers/HierarchyManager.scala
+
3
−
3
View file @
62873d4d
...
...
@@ -241,9 +241,9 @@ def getPublishedHierarchy(request: Request)(implicit ec: ExecutionContext, oec:
}).
asJava
val
serverEvaluable
=
updatedChildrenList
.
get
(
0
).
getOrDefault
(
HierarchyConstants
.
EVAL
,
new
util
.
LinkedHashMap
()).
asInstanceOf
[
java.util.LinkedHashMap
[
String
,
String
]]
if
(
serverEvaluable
.
get
(
HierarchyConstants
.
MODE
)
!=
null
&&
serverEvaluable
.
get
(
HierarchyConstants
.
MODE
).
equalsIgnoreCase
(
HierarchyConstants
.
SERVER
))
{
request
.
put
(
HierarchyConstants
.
EVAL
,
HierarchyConstants
.
TRUE
)
request
.
put
(
HierarchyConstants
.
EVAL
_MODE
,
HierarchyConstants
.
SERVER
)
}
else
{
request
.
put
(
HierarchyConstants
.
EVAL
,
HierarchyConstants
.
FALSE
)
request
.
put
(
HierarchyConstants
.
EVAL
_MODE
,
HierarchyConstants
.
CLIENT
)
}
val
nestedChildrenIdentifiers
=
getNestedChildrenIdentifiers
(
updatedChildrenList
)
val
mergedMap
:
util.Map
[
String
,
String
]
=
createMergedMap
(
request
,
nestedChildrenIdentifiers
)
...
...
@@ -311,7 +311,7 @@ def getPublishedHierarchy(request: Request)(implicit ec: ExecutionContext, oec:
userMap
.
put
(
HierarchyConstants
.
COLLECTIONID
,
request
.
get
(
HierarchyConstants
.
COLLECTIONID
).
asInstanceOf
[
String
])
userMap
.
put
(
HierarchyConstants
.
USERID
,
request
.
get
(
HierarchyConstants
.
USERID
).
asInstanceOf
[
String
])
userMap
.
put
(
HierarchyConstants
.
ATTEMPTID
,
request
.
get
(
HierarchyConstants
.
ATTEMPTID
).
asInstanceOf
[
String
])
userMap
.
put
(
HierarchyConstants
.
EVAL
,
request
.
get
(
HierarchyConstants
.
EVAL
).
asInstanceOf
[
String
])
userMap
.
put
(
HierarchyConstants
.
EVAL
_MODE
,
request
.
get
(
HierarchyConstants
.
EVAL
_MODE
).
asInstanceOf
[
String
])
mergedMap
.
putAll
(
userMap
)
mergedMap
.
putAll
(
questionMap
)
...
...
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