gitlab.lister: Override filtering as it's not possible as is

This commit is contained in:
Antoine R. Dumont (@ardumont) 2018-06-28 13:33:26 +02:00
parent 1335a5b25f
commit 7a0e3a2379
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8

View file

@ -18,6 +18,13 @@ class GitlabLister(SWHIndexingHttpLister):
# id
API_URL_INDEX_RE = re.compile(r'^.*/projects.*\&page=(\d+).*')
def filter_before_inject(self, models_list):
"""We do not filter as we cannot. The indexable field and the page
identifier used for pagination are not related.
"""
return models_list
def get_model_from_repo(self, repo):
return {
'uid': repo['id'],