Commit 0c707f3c by Matjaz Gregoric

Remove some user_state dependent fields from student_view_data.

Some properties which depend on user state have slipped through initial
review, so I'm removing them now.
parent 502d6eee
......@@ -116,9 +116,8 @@ class CompletionBlock(
'type': self.CATEGORY,
'question': self.question,
'answer': self.answer,
'checked': self.student_value if self.student_value is not None else False,
'title': self.display_name_with_default,
'hide_header': self.show_title,
'hide_header': not self.show_title,
}
def get_last_result(self):
......
......@@ -1262,9 +1262,6 @@ class MentoringWithExplicitStepsBlock(BaseMentoringBlock, StudioContainerWithNes
'show_title': self.show_title,
'weight': self.weight,
'extended_feedback': self.extended_feedback,
'active_step': self.active_step_safe,
'max_attempts': self.max_attempts,
'num_attempts': self.num_attempts,
'hide_prev_answer': True,
'components': components,
}
......@@ -358,13 +358,12 @@ class PlotBlock(StudioEditableXBlockMixin, StudioContainerWithNestedXBlocksMixin
'q2_label': self.q2_label,
'q3_label': self.q3_label,
'q4_label': self.q4_label,
'default_claims_json': self.default_claims_json(),
'point_color_default': self.point_color_default,
'plot_label': self.plot_label,
'average_claims_json': self.average_claims_json(),
'point_color_average': self.point_color_average,
'overlay_data': self.overlay_data,
'hide_header': True,
'claims': self.claims,
}
def author_edit_view(self, context):
......
......@@ -127,7 +127,6 @@ class SliderBlock(
'id': self.name,
'type': self.CATEGORY,
'question': self.question,
'initial_value': int(self.student_value*100) if self.student_value is not None else 50,
'min_label': self.min_label,
'max_label': self.max_label,
'title': self.display_name_with_default,
......
......@@ -164,7 +164,6 @@ class ScoreSummaryBlock(XBlockWithTranslationServiceMixin, XBlockWithPreviewMixi
return {
'type': self.CATEGORY,
'score_summary': context.get('score_summary', {}),
}
embedded_student_view = student_view
......@@ -221,7 +220,6 @@ class PerQuestionFeedbackBlock(XBlockWithTranslationServiceMixin, XBlockWithPrev
return {
'type': self.CATEGORY,
'tips': review_tips
}
embedded_student_view = student_view
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment