cfpb / college-costs

⚠️ Deprecated: see note. ⚠️ A tool to help students weigh the costs and rewards of a college program.
https://www.consumerfinance.gov/paying-for-college2/understanding-your-financial-aid-offer/about-this-tool/
50 stars 27 forks source link

Miscellaneous static and dynamic content updates #226

Closed marteki closed 8 years ago

marteki commented 8 years ago

This fixes errors in the static content and error messaging for the tool. It also adjusts the dynamic showing/hiding for job placement rates and program type to address bugs.

Additions

Pull down the branch, and load up a sample URL on localhost.

All JS unit tests should pass. After some package updates and patching, our NPM security test should pass. Functional browser tests are still not passing. They will be re-evaluated and refactored in a coming PR.

Review

marteki commented 8 years ago

The content at the end of Step 1 should state "Think about how borrowing $X,XXX this year will affect your future finances" instead of "Think about how $X,XXX this year will affect your future finances".

For some reason, the dynamic paragraphs for positive/negative cost remaining aren't showing up for me anymore. 😞 I'm filing a bug on our tracker to look into this more.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 99.386% when pulling ad787c7c742af09c76246b9f2c0b257f16967a39 on content-content-content into 83578eea9334dc2d2b9754cbcc277e81d9ed56f0 on master.

mistergone commented 8 years ago

LGTM, aside from the bug you mentioned above.

drwho-thumbs-up

higs4281 commented 8 years ago

on build:

debt_on_build

this PR in standalone:

debt_pr226
coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.4%) to 99.766% when pulling ad787c7c742af09c76246b9f2c0b257f16967a39 on content-content-content into 83578eea9334dc2d2b9754cbcc277e81d9ed56f0 on master.

mistergone commented 8 years ago

@higs4281 I'm not seeing the same NaN. There's no migrate or anything to do, is there?

marteki commented 8 years ago

@higs4281 I also can't replicate that with that program. I'm not even seeing the same number with the default aid offer on build.

Are you inputting any modifications to the given aid offer? If so, what are they, so we can see what might be triggering the NaN for you?

higs4281 commented 8 years ago

Just copied the string from build:

http://localhost:8000/paying-for-college2/understanding-your-financial-aid-offer/offer/?iped=210960&pid=44&oid=fa8283b5b7c939a058889f997949efa566c616a3&book=1500&gib=0&gpl=0&hous=5611&insi=5.0&insl=3000&inst=36&mta=0&othg=100&othr=6079&parl=7000&pelg=1500&perl=5500&ppl=0&prvl=2000&prvf=2.1&prvi=4.55&schg=2000&stag=2000&subl=3500&totl=91004&tran=500&tuit=16360&unsl=2000&wkst=1000
marteki commented 8 years ago

Same. After a manage.py migrate, manage.py loaddata collegedata, and gulp, this is what I see on localhost with no aid offer inputs or adjustments:

screen shot 2016-07-25 at 12 43 04 pm

and

screen shot 2016-07-25 at 12 43 24 pm

Are you seeing at least the first screenshot? Is our data the same?

higs4281 commented 8 years ago

Top is same. must be something local for me.

higs4281 commented 8 years ago

rebuilt branch and got same result. something's odd with that program. here's what I see for Step 1 big picture on build.

build_big_picture
marteki commented 8 years ago

Pull this branch again. I merged in the adjustments you just merged for program length. Otherwise, no program length is set in the dropdown, and that has ripple effects down the page for calculations.

marteki commented 8 years ago

And build won't have that working until the Jenkins job is rebuilt.

higs4281 commented 8 years ago

I say ignore my issues. The program data for that example is wildly different from the offer data. Let me get those more in line in the sample URL, but don't let this hold up the PR. πŸ‘

marteki commented 8 years ago

Merging!