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

Option to deliver generic national stats #256

Merged
merged 2 commits into from
Aug 5, 2016
Merged

Option to deliver generic national stats #256

merged 2 commits into from
Aug 5, 2016

Conversation

higs4281
Copy link
Member

@higs4281 higs4281 commented Aug 5, 2016

In addition to delivering national salary and grad rates tied to program
length, this delivers fall-back generic salary and grad-rate values when
the bare /api/national-stats/ endpoint is called without providing a school ID
or program ID. This also provides a fallback in case both school ID and program ID are bad.

Additions

  • new URL option

Changes

  • StatsRepresentation view and related tests and functions

Testing

A call to the /api/national-stats/ bare endpoint, with no school or program ID, should return these generic stats, including the $34,300 overall median salary used in college scorecard comparisons:

generic stats

Calls that provide an extra URL field with a schoolID_programID pair will work as before, delivering salary and grad rate values based on program length.

Review

FYI: @saintsoup52

  • Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)

In addition to delivering national salary and grad rates tied to program
length, this delivers fall-back generic salary and grad-rate values when
no school or program is provided or when the bare /api/national-stats/
endpoint is used.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 91f0acb on generic-stats into ffa0acc on master.

@marteki
Copy link
Member

marteki commented Aug 5, 2016

Values I get in browser console when running this without a school or program ID:

screen shot 2016-08-05 at 8 11 35 am

And verified that it still works for school-program pairs and solo schools.

👍

@higs4281 higs4281 merged commit d03c95b into master Aug 5, 2016
@higs4281 higs4281 deleted the generic-stats branch August 5, 2016 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants