-
Notifications
You must be signed in to change notification settings - Fork 526
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 #159: Introduce question player UI structure #500
Conversation
empty test suite.
… training controller
…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
Thanks all! @veena14cs sending this back to you to confirm whether I addressed your comments. Also and also to you @rt4914 for your one comment. |
…-progress-controller-implementation
Unassigned myself as I have resolved all comments. |
…into introduce-question-player-ui-structure
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.
Please assign me once the changes are done as discussed in the comment.
behavior graph (and added an actual visual representation of this graph in code to simplify maintaining the solution in the future). Tests will be added as part of solving #1273.
@veena14cs & @nikitamarysolomanpvt sending this back to you to resolve your open comment threads. Please let me know if you have any questions. |
Conflicts: app/src/main/java/org/oppia/app/application/ApplicationComponent.kt app/src/main/java/org/oppia/app/player/state/StateFragmentPresenter.kt
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.
LGTM.
Fix #159.
This introduces full support for the question player, minus early exit support (which will be a follow-up work item post-prototype).
This PR is primarily refactoring the state fragment presenter into a shared StatePlayerRecyclerViewAssembler object that can be used to arrange the recycler views for both explorations and questions. This is done in a compositional way that facilitates future features being added, or disparity in functionality between the two (e.g. no previous button in questions and no replay button in explorations).
This PR also includes reworking how the GCS resource bucket name is provided to be normalized (we were using two different annotations before), and set up such that we can change the bucket used depending on context (questions require the test server bucket rather than the production one).
#503 tracks adding thorough tests for the question player once #89 is resolved. This wasn't done as part of this PR for a few reasons:
This replaces #411 by building on the work started by @jamesxu0.
Open issues that should be resolved after this PR is done: