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

Rename PersonCard#memberships to PersonCard#legislative_memberships #15620

Merged
merged 1 commit into from
Feb 28, 2017

Conversation

chrismytton
Copy link
Contributor

@chrismytton chrismytton commented Feb 28, 2017

What does this do?

This renames PersonCard#memberships to PersonCard#legislative_memberships.

Why was this needed?

We want to add a PersonCard#cabinet_memberships method as part of #24. Therefore it makes sense to rename this method to #legislative_memberships to make it clear that it's only returning a subset of the memberships.

Relevant Issue(s)

Extracted from #15616

Part of #24

@tmtmtmtm tmtmtmtm temporarily deployed to everypolitician-viewe-pr-15620 February 28, 2017 15:43 Inactive
We want to add another method to the PersonCard class which returns
cabinet memberships. Therefore it makes sense to rename this method to
legislative_memberships to make it clear that it's only returning a
subset of the memberships.
@chrismytton chrismytton force-pushed the split-person-card-memberships branch from b5f2b6a to 52bf18b Compare February 28, 2017 16:06
@chrismytton chrismytton changed the title Add PersonCard#legislative_memberships method Rename PersonCard#memberships to PersonCard#legislative_memberships Feb 28, 2017
@chrismytton chrismytton requested a review from tmtmtmtm February 28, 2017 16:22
Copy link
Contributor

@tmtmtmtm tmtmtmtm left a comment

Choose a reason for hiding this comment

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

👍

@tmtmtmtm tmtmtmtm merged commit 1f04365 into master Feb 28, 2017
@tmtmtmtm tmtmtmtm removed the 3 - WIP label Feb 28, 2017
@tmtmtmtm tmtmtmtm deleted the split-person-card-memberships branch December 16, 2017 16:57
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