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
a7d8a3ba
Commit
a7d8a3ba
authored
1 year ago
by
Radheshhathwar
Browse files
Options
Download
Patches
Plain Diff
Removed hardcoded values
parent
32c0a33d
Gcloud_fix
1 merge request
!19
Added validations
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assessment-api/assessment-service/app/controllers/v4/QuestionController.scala
+1
-1
...sment-service/app/controllers/v4/QuestionController.scala
with
1 addition
and
1 deletion
+1
-1
assessment-api/assessment-service/app/controllers/v4/QuestionController.scala
+
1
−
1
View file @
a7d8a3ba
...
...
@@ -22,6 +22,7 @@ class QuestionController @Inject()(@Named(ActorNames.QUESTION_ACTOR) questionAct
val
objectType
=
"Question"
val
schemaName
:
String
=
"question"
val
version
=
"1.0"
val
frameworkUrl
=
"https://uphrh.in/api/framework/v1/read/nirayama_frccl_fw?categories=difficultyLevel,subject"
private
val
logger
:
Logger
=
LoggerFactory
.
getLogger
(
RedisCache
.
getClass
.
getCanonicalName
)
...
...
@@ -142,7 +143,6 @@ class QuestionController @Inject()(@Named(ActorNames.QUESTION_ACTOR) questionAct
val
validatedQuestions
:
List
[
Map
[
String
,
Any
]]
=
QuestionExcelParser
.
validateQuestions
(
questions
)
// Step 3: Read framework from the API
val
frameworkUrl
=
"https://uphrh.in/api/framework/v1/read/nirayama_frccl_fw?categories=difficultyLevel,subject"
val
frameworkMap
=
QuestionExcelParser
.
frameworkRead
(
frameworkUrl
)
// Step 4: Check if questions are valid against the framework
...
...
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