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

Assessments Tab: Fix filter bug #23197

Merged
merged 2 commits into from Jun 20, 2018
Merged

Assessments Tab: Fix filter bug #23197

merged 2 commits into from Jun 20, 2018

Conversation

caleybrock
Copy link
Contributor

We were filtering out the free responses for the question structure, but not the student answers so the tables were wrong.
I also updated the tests to catch this case.

Before
screen shot 2018-06-19 at 4 02 28 pm

After
screen shot 2018-06-19 at 4 00 31 pm

@caleybrock caleybrock changed the title Fix filter bug Assessments Tab: Fix filter bug Jun 19, 2018
isCorrect: answer.status === 'correct',
};
})
studentResponses: studentAssessment.level_results.filter(answer => answer.status !== "free_response")
Copy link
Contributor

Choose a reason for hiding this comment

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

could "free_response" be a constant somewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great thought - going to follow up with another PR because there are about 8 places I need to update.

@caleybrock caleybrock merged commit 3738280 into staging Jun 20, 2018
@caleybrock caleybrock deleted the fix-filter-bug branch June 20, 2018 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants