Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

Update scripts

Corentin Bettiol edited this page Feb 26, 2020 · 9 revisions

General informations

BugHerd uses a sliding window to manage the number of API requests that can be made. You can make an average of 60 requests per minute, with bursts of up to 10 in quick succession. If you make more frequent API calls, a 429 error will be returned instead of the expected result.

BugHerd api

So those scripts are reaaaally slow if you have a lot of tasks.


All scripts in one command

python3.7 manage.py updatebbdb --all

Script #1

python3.7 manage.py updatebbdb
  • Download member list,
  • Download active project list,
  • Download light task list,
  • Download assignee list,
  • Download tag list

Script #2

python3.7 manage.py updatebbdb -t
  • Loop over local task list
    • Update dates, assignees, severity, ...
    • Delete closed tasks (from local db)
    • Get admin urls

Script #3

python3.7 manage.py updatebbdb -c
  • Loop over local task list
    • Download comments