phabricator/lister: Prevent erroneous scheduler tasks disabling
Previously, the Phabricator lister was disabling some loading tasks while it was not supposed to. More precisely, due to an invalid index provided to a database query, the latest created scheduler task was disabled each time a new page of results was provided to the lister by the Phabricator API. Moreover, database queries were not filtered according to the Phabricator instance resulting in possible disabling of scheduler tasks from other instances. Closes T2000
parent
e83902c2
No related branches found
No related tags found
Showing
- swh/lister/core/tests/test_lister.py 31 additions, 1 deletionswh/lister/core/tests/test_lister.py
- swh/lister/phabricator/lister.py 54 additions, 25 deletionsswh/lister/phabricator/lister.py
- swh/lister/phabricator/tests/api_first_response.json 0 additions, 0 deletionsswh/lister/phabricator/tests/api_first_response.json
- swh/lister/phabricator/tests/api_first_response_other_instance.json 2336 additions, 0 deletions.../phabricator/tests/api_first_response_other_instance.json
- swh/lister/phabricator/tests/api_next_response.json 2354 additions, 0 deletionsswh/lister/phabricator/tests/api_next_response.json
- swh/lister/phabricator/tests/test_lister.py 50 additions, 8 deletionsswh/lister/phabricator/tests/test_lister.py
Loading
-
Some references in the commit message have been migrated:
- T2000 is now #2000 (closed)
Please register or sign in to comment