Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 74589224e4a9dfd0bd386963bf645d8818de0583
https://github.com/WebKit/WebKit/commit/74589224e4a9dfd0bd386963bf645d8818de0583
Author: Anfernee Viduya <[email protected]>
Date: 2024-11-05 (Tue, 05 Nov 2024)
Changed paths:
M
Tools/Scripts/libraries/resultsdbpy/resultsdbpy/controller/commit_controller.py
M
Tools/Scripts/libraries/resultsdbpy/resultsdbpy/controller/commit_controller_unittest.py
Log Message:
-----------
[resultsdbpy] Fix _find() method in commit_controller.py return amount to
abide by the limit amount passed.
https://bugs.webkit.org/show_bug.cgi?id=282625
rdar://139298383
Reviewed by Jonathan Bedard.
Issue:
Right now when invoking _find() method in commit_controller.py with an
explicit limit argument it returns the (limit*amount_of_repositories) amount.
Fix:
Slice the list outside the sorted() method by the limit amount that was passed.
*
Tools/Scripts/libraries/resultsdbpy/resultsdbpy/controller/commit_controller.py:
(CommitController._find):
*
Tools/Scripts/libraries/resultsdbpy/resultsdbpy/controller/commit_controller_unittest.py:
(CommitControllerTest.test_find_range_uuid):
(CommitControllerTest):
(CommitControllerTest.test_find_limit):
(CommitControllerTest.test_siblings):
Canonical link: https://commits.webkit.org/286184@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes