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

Add total attendance column to workshop dashboard for local summer workshops #26828

Merged
merged 27 commits into from Apr 2, 2019

Conversation

clareconstantine
Copy link

This is part of the work for adding the scholarship dropdown - it will help partners decide which teachers will receive scholarships.

For each enrollee, display the number of sessions they have attended / the total number of sessions the workshop has.

screen shot 2019-01-30 at 4 41 17 pm

Copy link
Contributor

@islemaster islemaster left a comment

Choose a reason for hiding this comment

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

Changes look correct. Can we get test coverage? I was thinking:

  • Assert that attendances is included in the serialized workshop enrollment
  • Assert that the Total Attendance column only shows up for Local Summer workshops

@@ -6,6 +6,7 @@ import {workshopEnrollmentStyles as styles} from "../workshop_enrollment_styles"

const CSF = "CS Fundamentals";
const NA = "N/A";
const LOCAL_SUMMER = "5-day Summer";
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we / should we be sharing these constants with the server code?

apps/Gruntfile.js Outdated Show resolved Hide resolved
apps/package.json Outdated Show resolved Hide resolved
}
Copy link
Contributor

Choose a reason for hiding this comment

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

It'd be nice to get soundLibrary.json entirely out of this PR, but understandable if that's tricky at this point.

workshopEnrollmentSchoolInfo
.find('th')
.filterWhere(col => col.text().includes('Total Attendance'))
).to.have.length(0);
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 I dig it. Thanks for adding additional coverage here!

@clareconstantine clareconstantine merged commit cb06022 into staging Apr 2, 2019
@clareconstantine clareconstantine deleted the add-attendance-column branch April 2, 2019 20:17
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

3 participants