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 contributors #45

Merged
merged 6 commits into from Apr 14, 2016
Merged

Show contributors #45

merged 6 commits into from Apr 14, 2016

Conversation

durden
Copy link
Contributor

@durden durden commented Apr 14, 2016

No description provided.

- This uses the github commits API.  A guide 'contributor' is classified as
  someone other than the original author that shows up in the commits as an
  'author' i.e. they've contributed at least 1 line to the guide itself.
- Note this doesn't handle pagination for the commit API yet so the
  contributors list only reflects data from the most recent 30 commits to a
  guide.
- Related to #34
- The commit history can include an author multiple times.  Sometimes that
  history can have the author's full name and login and other times it can only
  include login.  This change makes sure we don't ever count a user as a
  contributor more than once regardless of whether there were commits with and
  without their real name.
- Also changed contributors property to return a list of tuples instead of a
  list of User objects, which will make it easy to serialize and cache.
… text

- This effectively makes sure we cache the guide with the list of contributors
  when showing published guide pages.
@durden
Copy link
Contributor Author

durden commented Apr 14, 2016

Need to handle pagination of commits via the API.

@durden
Copy link
Contributor Author

durden commented Apr 14, 2016

This PR addresses this issue.

- The metadata is meant as peristent storage for things that do not change very
  often.  The list of contributors can change often and that information is
  already persistent in the commit history.
@durden durden merged commit e056d2b into master Apr 14, 2016
@durden durden deleted the show_contributors branch April 14, 2016 10:42
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.

None yet

1 participant