Commit 05e5d861469ad55943a154a829be2e9d4cfcd8f0
Exists in
master
and in
24 other branches
Merge branch 'fixed_gitlab_import' into 'master'
Fixed gitlab import See merge request !99
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
colab/plugins/gitlab/data_importer.py
@@ -150,6 +150,15 @@ class GitlabProjectImporter(GitlabDataImporter): | @@ -150,6 +150,15 @@ class GitlabProjectImporter(GitlabDataImporter): | ||
150 | datum.save() | 150 | datum.save() |
151 | 151 | ||
152 | 152 | ||
153 | +class GitlabGroupImporter(GitlabDataImporter): | ||
154 | + | ||
155 | + def fetch_data(self): | ||
156 | + LOGGER.info("Importing Group") | ||
157 | + groups_list = self.fetch_groups() | ||
158 | + for datum in groups_list: | ||
159 | + datum.save() | ||
160 | + | ||
161 | + | ||
153 | class GitlabMergeRequestImporter(GitlabDataImporter): | 162 | class GitlabMergeRequestImporter(GitlabDataImporter): |
154 | 163 | ||
155 | def fetch_data(self): | 164 | def fetch_data(self): |