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

Bug: Replaying problem interaction events #311

Closed
bmtcril opened this issue Jun 20, 2023 · 1 comment · Fixed by #322
Closed

Bug: Replaying problem interaction events #311

bmtcril opened this issue Jun 20, 2023 · 1 comment · Fixed by #322
Assignees

Comments

@bmtcril
Copy link
Contributor

bmtcril commented Jun 20, 2023

Some problems interaction events fail on tracking log replay. We should investigate the proposed fix here to make sure it works for all expected cases: #301 (comment)

@bmtcril
Copy link
Contributor Author

bmtcril commented Jul 17, 2023

Specifically we're seeing the following in tracking logs that need to be handled:

"weighted_possible": 0

  File "/openedx/venv/lib/python3.8/site-packages/event_routing_backends/processors/xapi/event_transformers/problem_interaction_events.py", line 160, in get_result
    'scaled': event_data['weighted_earned']/event_data['weighted_possible']

"max_grade": 0

  File "/openedx/venv/lib/python3.8/site-packages/event_routing_backends/processors/mixins/base_transformer.py", line 105, in transform
    value = getattr(self, f'get_{key}')()
  File "/openedx/venv/lib/python3.8/site-packages/event_routing_backends/processors/xapi/event_transformers/problem_interaction_events.py", line 270, in get_result
    'scaled': event_data.get('grade', None) / event_data.get('max_grade', None)
ZeroDivisionError: division by zero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging a pull request may close this issue.

1 participant