swh.lister.gitlab: Remove indexable column from gitlab lister

This commit is contained in:
Antoine R. Dumont (@ardumont) 2018-07-12 13:41:47 +02:00
parent 2648f1ae2e
commit 4db15aaf16
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8
6 changed files with 72 additions and 18 deletions

View file

@ -70,7 +70,6 @@ class GitLabLister(PageByPageHttpLister):
return {
'instance': self.instance,
'uid': repo['id'],
'indexable': repo['id'],
'name': repo['name'],
'full_name': repo['path_with_namespace'],
'html_url': repo['web_url'],

View file

@ -16,13 +16,12 @@ class GitLabModel(ModelBase):
id = Column(Integer, primary_key=True)
uid = Column(Integer, index=True)
instance = Column(String, index=True)
indexable = Column(Integer, index=True)
def __init__(self, uid=None, indexable=None, name=None,
full_name=None, html_url=None, origin_url=None,
origin_type=None, description=None, task_id=None,
origin_id=None, instance=None):
super().__init__(uid=uid, indexable=indexable, name=name,
super().__init__(uid=uid, name=name,
full_name=full_name, html_url=html_url,
origin_url=origin_url, origin_type=origin_type,
description=description, task_id=task_id,