-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit e5c641f optimized fetching of checks when displaying a patch by prefetching these checks ahead of time. Unfortunately we missed that this should exclude older versions of checks for a given context. Make the code used to generate the unique checks generic and allow us to use that as a filter to the checks provided to the template, restoring the correct behavior. Conflicts: patchwork/tests/test_detail.py NOTE(stephenfin): Conflicts are due to some differences in imports, however, we also need to drop some usages of f-strings since Patchwork 2.x supported Python 2.x also. We also need to specify an explicit decode value for some strings since Python 2.x defaults to 'ascii', not 'utf-8'. Signed-off-by: Stephen Finucane <[email protected]> Closes: #398 Fixes: e5c641f ("Optimise fetching checks when displaying a patch") (cherry picked from commit a43d6ac) (cherry picked from commit f4ff605)
- Loading branch information
1 parent
c99a933
commit 49d0acc
Showing
3 changed files
with
89 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters