Skip to content
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 #111: Introduce question progress controller implementation #397

Merged

Conversation

BenHenning
Copy link
Member

@BenHenning BenHenning commented Nov 17, 2019

Fix #111 by introducing an implementation for QuestionAssessmentProgressController.

Since there's a lot of functional overlap between questions and explorations, this PR includes a refactor that pulls a lot of the functionality of explorations out of ExplorationProgressController to shared components: ExplorationProgress, StateDeck, and StateGraph. This PR builds on existing exploration concepts by introducing StateList (since questions use a linear progression rather than a graph).

Note that there's one aspect of the question progress controller that's more complex than its exploration counterpart: the base data provider for the assessment itself (the list of questions the learner will complete) is dynamic since the list is generated. For this reason, #929 was needed to introduce support for switching out the data provider fueling the top-level progress data provider (e.g. if a new assessment was started). This resulted in some useful simplifications in the implementation of the progress controller. However, debugging the data provider yielded a bunch of issues that were simplified by rewriting the LiveData mechanism that we use (see #928), which in turn exposed other issues with the test environment that needed to be fixed (#927).

vinitamurthi and others added 30 commits October 7, 2019 20:07
…ler-interface

Conflicts:
	domain/src/main/java/org/oppia/domain/question/QuestionAssessmentProgressController.kt
	domain/src/main/java/org/oppia/domain/question/QuestionTrainingController.kt
	domain/src/test/java/org/oppia/domain/question/QuestionTrainingControllerTest.kt
	model/src/main/proto/question.proto
This includes some basic refactoring of internal structures used by the
exploration progress controller to share common functionality between the
two progress controllers. There's still some duplication, but this seems
like a reasonable split since there's likely to be further differences in
the progress controllers in the future.

The question assessment progress controller tests pass, but no new ones
have yet been added to thoroughly test the implementation.
ExplorationProgressController. They haven't yet been verified as correct.
…terface

Conflicts:
	domain/src/main/assets/sample_questions.json
	domain/src/main/java/org/oppia/domain/question/QuestionAssessmentProgressController.kt
	domain/src/main/java/org/oppia/domain/question/QuestionTrainingController.kt
	domain/src/main/java/org/oppia/domain/util/JsonAssetRetriever.kt
	domain/src/test/java/org/oppia/domain/question/QuestionTrainingControllerTest.kt
@BenHenning
Copy link
Member Author

Thanks @vinitamurthi! I attempted to address all of your comments. PTAL.

@BenHenning BenHenning changed the title Fix #111: Introduce question progress controller implementation [DO NOT MERGE] [Blocked: #929] Fix #111: Introduce question progress controller implementation [Blocked: #929] May 28, 2020
Copy link
Contributor

@vinitamurthi vinitamurthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Base automatically changed from introduce-nested-data-provider to develop May 28, 2020 06:15
@BenHenning BenHenning changed the title Fix #111: Introduce question progress controller implementation [Blocked: #929] Fix #111: Introduce question progress controller implementation May 28, 2020
@BenHenning
Copy link
Member Author

Thanks for the review!

@BenHenning BenHenning merged commit 251797e into develop May 28, 2020
@BenHenning BenHenning deleted the introduce-question-progress-controller-implementation branch May 28, 2020 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement QuestionAssessmentProgressController [Blocked: #112]
2 participants