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

Make GithubUser and GithubOrganisation less GitHub specific #1169

Closed
7 tasks done
andrew opened this issue Feb 16, 2017 · 0 comments
Closed
7 tasks done

Make GithubUser and GithubOrganisation less GitHub specific #1169

andrew opened this issue Feb 16, 2017 · 0 comments

Comments

@andrew
Copy link
Contributor

andrew commented Feb 16, 2017

To be able to pull in and store Users and Orgs from Bitbucket and Gitlab we need to change the GithubUser and GithubOrganisation classes into something like RepositoryUser and RepositoryOrganisation

note: GitLab calls their organisations "Groups" and Bitbucket calls their orgs "Teams"

Steps

  • Rename GithubUser and GithubOrganisation classes
  • Add host_type to GithubUser and GithubOrganisation tables
  • Rename github specific fields in GithubUser and GithubOrganisation tables (with aliases for API responses)
  • Deploy with migrations
  • Prefill all existing user and org records host_type with GitHub
  • Scope all user/org queries by host_type
  • Extract github specific methods into a repository owner module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant