bitbucket: Allow to specify the number of repos per api request
This is independent but still, it somehow fixes the issue occurring on #1826 (closed) (at least for the full lister... which is weird...)
Related #1826 (closed)
Depends on !74 (closed) Depends on !75 (closed)
Test Plan
tox docker-dev
Migrated from D1631 (view on Phabricator)
Merge request reports
Activity
Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DLS/job/tox/219/ See console output for more information: https://jenkins.softwareheritage.org/job/DLS/job/tox/219/console
76 86 else: 77 87 ret = lower <= inner <= upper 78 88 except Exception as e: 79 logger.error(str(e) + ': %s, %s, %s' % 80 (('inner=%s%s' % (type(inner), inner)), 81 ('lower=%s%s' % (type(lower), lower)), 82 ('upper=%s%s' % (type(upper), upper))) 83 ) 89 logger.error(str(e) + ': %s, %s, %s', 90 ('inner=%s%s' % (type(inner), inner)), 91 ('lower=%s%s' % (type(lower), lower)), 92 ('upper=%s%s' % (type(upper), upper))) 17 17 18 DEFAULT_BITBUCKET_PAGE = 10 19 20 18 21 class BitBucketLister(IndexingHttpLister): 19 22 PATH_TEMPLATE = '/repositories?after=%s' 20 23 MODEL = BitBucketModel 21 24 LISTER_NAME = 'bitbucket' 22 25 instance = 'bitbucket' 23 26 27 def __init__(self, api_baseurl, override_config=None, per_page=100): 28 super().__init__( 29 api_baseurl=api_baseurl, override_config=override_config) 30 if per_page != DEFAULT_BITBUCKET_PAGE: 31 self.PATH_TEMPLATE = '%s&pagelen=%s' % ( 32 self.PATH_TEMPLATE, per_page) Build has FAILED
Link to build: https://jenkins.softwareheritage.org/job/DLS/job/tox/220/ See console output for more information: https://jenkins.softwareheritage.org/job/DLS/job/tox/220/console
Build is green See https://jenkins.softwareheritage.org/job/DLS/job/tox/221/ for more details.
Some references in the commit message have been migrated:
- T1826 is now #1826 (closed)
- T1826 is now #1826 (closed)
Build is green See https://jenkins.softwareheritage.org/job/DLS/job/tox/222/ for more details.