Skip to content

Feedback PR only#24

Open
case-eee wants to merge 385 commits into
case-eee:masterfrom
mollybrown:master
Open

Feedback PR only#24
case-eee wants to merge 385 commits into
case-eee:masterfrom
mollybrown:master

Conversation

@case-eee

Copy link
Copy Markdown
Owner

do not merge!

tmikeschu and others added 30 commits December 6, 2016 14:14

@case-eee case-eee left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@tmikeschu @CPowell23 @ethanbennett @mollybrown

great work on this 🎉 i left a few comments so let me know if you have questions or if anything is unclear. keep up the hard work!!

also i LOVE all the commit messages. wooooo 🎉

Comment thread Rakefile
def create_cities
cities = SmarterCSV.process('db/csv/station.csv').map do |row|
row[:city]
end.uniq

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

grabbing just the unique ones. nice 👍

Comment thread Rakefile
end

def create_trips
def format_date(date)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

this method is defined multiple times. how can we DRY up this code and only write this method once?

Comment thread Rakefile
end

end

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

there's a lot going on in each of the methods below. could we create a module to help us parse and clean our data? that way, the behavior will be encapsulated in a module and we can reuse it if necessary

@@ -1,3 +1,158 @@
require_relative '../models/station'

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

you shouldn't need to require your models. this is being done in config/environment.rb

@@ -0,0 +1,10 @@
module BikeShareAppHelper

def format_date(date)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

this method looks really familiar. i like that you've extracted this out to a method

</tr>
<tr>
<td>Subscriber (annual or 30-day member)</td>
<td> <%= Trip.subscriber_breakdown %></td>

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

same here. how can we remove the need to access Trip directly in your views?

<li>Single date with the lowest number of trips with a count of those trips:
<%= Trip.date_with_lowest_number_trips_total %>
</li>
<li>Weather on the day with the highest number of rides (mean temperature): <%= WeatherCondition.weather_on_day_with_highest_rides.first.mean_temperature_f %></li>

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

same WeatherCondition

Comment thread bike_share_dtr.md
@@ -0,0 +1,36 @@
**Group Member Names:** Mike Schutte, Ethan Bennett, Caroline Powell, Molly Brown

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

love that you included your DTR here 👍

WeatherCondition.create(date: "1991-01-02", max_temperature_f: 52, mean_temperature_f: 68, min_temperature_f: 61, mean_humidity: 75, mean_visibility_miles: 7, mean_wind_speed_mph: 12, precipitation_inches: 2.3, zip_code: 94107)
end

it "they see a create form" do

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

i'd say the second test here is sufficient enough to test that a user can create a weather condition 👍

require_relative '../../spec_helper'

describe "When a user visits the new condition path" do
before do

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

woooo before do!

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.

5 participants