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 #4188: Fixes for the GenerateV1StatisticsJob #4189

Merged
merged 3 commits into from
Dec 11, 2017
Merged

Fix #4188: Fixes for the GenerateV1StatisticsJob #4189

merged 3 commits into from
Dec 11, 2017

Conversation

pranavsid98
Copy link
Contributor

@seanlip PTAL

Thanks

@pranavsid98 pranavsid98 requested a review from seanlip December 11, 2017 07:42
@@ -429,7 +443,9 @@ def reduce(exp_id, stringified_values):
dest_states = [
answer_group.outcome.dest
for answer_group in init_state.interaction.answer_groups]
dest_states.append(init_state.interaction.default_outcome.dest)
if init_state.interaction.default_outcome:
Copy link
Member

Choose a reason for hiding this comment

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

if init_state.interaction.default_outcome is not None:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

if change_dict['old_state_name'] not in (
state_stats_mapping):
yield (
'State name %s not in state stats mapping of '
Copy link
Member

Choose a reason for hiding this comment

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

Good idea to catch this here too, but don't you want to distinguish the error messages for the two cases? Otherwise you won't know what triggered it.

Also, I'm not sure if we should just continue along the changelist if we find an error. Shouldn't we just ... stop, and not process that exploration? Otherwise there may be further errors down the line, e.g. if the new state name subsequently doesn't appear in the changelist.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense. Done.

@codecov-io
Copy link

codecov-io commented Dec 11, 2017

Codecov Report

Merging #4189 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #4189   +/-   ##
========================================
  Coverage    44.04%   44.04%           
========================================
  Files          363      363           
  Lines        22435    22435           
  Branches      3565     3565           
========================================
  Hits          9881     9881           
  Misses       12554    12554

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4fc52c9...82c4559. Read the comment docs.

@seanlip
Copy link
Member

seanlip commented Dec 11, 2017

LGTM

@seanlip seanlip merged commit 62f5424 into oppia:develop Dec 11, 2017
seanlip pushed a commit that referenced this pull request Dec 12, 2017
@pranavsid98 pranavsid98 deleted the job_fixes branch December 12, 2017 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants