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

Show all the people related with a state in the place page #88

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

octopusinvitro
Copy link
Contributor

@octopusinvitro octopusinvitro commented Mar 3, 2017

WIP

@octopusinvitro octopusinvitro mentioned this pull request Mar 5, 2017
@octopusinvitro octopusinvitro force-pushed the people-in-state-page branch 14 times, most recently from ca5d89b to 88626e2 Compare March 9, 2017 23:47
@octopusinvitro octopusinvitro force-pushed the people-in-state-page branch 3 times, most recently from 257f13d to 3679ef1 Compare March 23, 2017 12:29
@octopusinvitro octopusinvitro force-pushed the people-in-state-page branch 3 times, most recently from bde8c38 to fa24cc9 Compare April 10, 2017 16:01
@octopusinvitro octopusinvitro force-pushed the people-in-state-page branch 2 times, most recently from 91e1efd to ede6920 Compare April 18, 2017 15:08
Rewritten to make it work as the same method in MembershipCSV
people
Use safe navigation operator (&.) for checks (available from Ruby 2.3 on)
instead of the longer:

    people_by_legislature.current_term_start_date.year
      if people_by_legislature.current_term_start_date

The parent place pages don't show a current term start date. The
information related with the legislature is taken from the people.
Since parent places receive an instance of people that returns nil
for the legislature related methods (legislature name and current
term start date) we have to do this check before we ask it for the
year.
@coveralls
Copy link

coveralls commented Jul 12, 2017

Coverage Status

Coverage increased (+0.02%) to 99.775% when pulling 449509e on people-in-state-page into bb527fe on master.

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.

2 participants