-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #110: Filter questions required for assessment in QuestionTrainingController #227
Merged
Merged
Changes from 23 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
9594954
Initial check in for the question data controller
vinitamurthi 6ee7aec
Removed progress controller test
vinitamurthi 4596e86
Review changes
vinitamurthi f5c23c8
Review changes
vinitamurthi 53d367d
Pass data providers to the assessment controller, and set caps in the…
vinitamurthi 86630b6
Fixed merge conflicts
vinitamurthi a8adf93
Removed unnecessary imports/variables
vinitamurthi a7a10f3
Add fake question data for stubbed interfaces
vinitamurthi 459e3e9
Remove duplicate questions while fetching in training controller
vinitamurthi 73c49df
Comment explaining the filter function
vinitamurthi 91cf8e6
Improve duplicate checking - check it while filtering instead of afte…
vinitamurthi 54546d7
Add linked skill id values
vinitamurthi be375fd
Review changes
vinitamurthi 64b8265
add a new module for questions constants
vinitamurthi 75405a2
fix merge conflicts
vinitamurthi 4878d10
Review changes
vinitamurthi c37f14b
add a test to verify questions were fetched properly
vinitamurthi d1bd4a6
reformatted code
vinitamurthi 1f96f0c
Merge remote-tracking branch 'origin/develop' into question_data
vinitamurthi 38147cb
Review changes
vinitamurthi 0d1d65e
remove mockmaker
vinitamurthi 10dbeff
new line for questionstrainingconstants
vinitamurthi 5b768b2
Add another test to ensure that a different test is created when the …
vinitamurthi 3cb73e1
Review changes
vinitamurthi f2b5bc1
Remove unused imports
vinitamurthi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
domain/src/main/java/org/oppia/domain/question/QuestionConstantsProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.oppia.domain.question | ||
|
||
import dagger.Module | ||
import dagger.Provides | ||
import javax.inject.Qualifier | ||
|
||
/** Provider to return any constants required during the training session. */ | ||
@Qualifier | ||
annotation class QuestionCountPerTrainingSession | ||
|
||
@Qualifier | ||
annotation class QuestionTrainingSeed | ||
|
||
@Module | ||
class QuestionModule { | ||
@Provides | ||
@QuestionCountPerTrainingSession | ||
fun provideQuestionCountPerTrainingSession(): Int = 10 | ||
|
||
@Provides | ||
@QuestionTrainingSeed | ||
fun provideQuestionTrainingSeed(): Long = System.currentTimeMillis() | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this should be on the Module instead of this annotation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done