-
Notifications
You must be signed in to change notification settings - Fork 7
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
Create a proper BaseRepo backend which is API agnostic. Make Gitlab an implementation. #95
Labels
Milestone
Comments
brhoades
added a commit
that referenced
this issue
Jan 19, 2018
Frankly, we really ought to split the GitLab and Git parts of |
I agree, BaseRepo has too much meat. |
brhoades
added a commit
that referenced
this issue
Jan 23, 2018
* Added travis config file. * Added pylint to requirements. Fixed travis call. * Resolved most pylint errors. * StudentRepo.name -> StudentRepo.build_name name was being shadowed by an instance var. * Removed FIXME for something that was fixed, created #95 for the other. * Small changes after a second pass. * Updated changelog. * Updated changelog (again). * Restored ={} default params, split changelog. * Added pylint ignore for ={}, cleaned up unused params. * Added requirements.txt information to CONTRIBUTING. * Passing params that were unused through in baserepo, updated changelog. Made dangerous-default-args a warning again.
@LinuxMercedes changed the scope of this issue. Seems pretty doable. Thoughts? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Edit:
In
baserepo.py
, there are three primary classes:BaseRepo
,Repo
, andStudentRepo
. Those three classes form a backend for interfacing with Gitlab.Let's make
BaseRepo
an abstract base ofRepo
and house it inbackends/base.py
. Additionally, let's addBaseStudentRepo
which is aBaseRepo
that's an abstract base forStudentRepo
. We can also define theBaseBackend
in this file which is an abstract base for a backend.BaseBackend
, for now, will contain generically named class variables (such asstudent_repo
andrepo
) so that assigner commands can be agnostic of the backend. Later this backend can do more fancy stuff.Our current
Repo
andStudentRepo
can then be implementations ofBaseRepo
andBaseStudentRepo
respectively. They can be housed inbackends/gitlab.py
. A newGitlabBackend
(BaseBackend
) will also need to be created.The text was updated successfully, but these errors were encountered: