-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make LocalSettingsContext more robust to priority
The relation data for for the LocalSettings context could cause the priority sorting to break if the priority key wasn't cmpable (e.g. using <, > or ==). This patch fixes the associated bug, by making the sorting extra robust and ensuring that un-cmp-able values are 'greater' (e.g. further down the list) that cmp-able values, and equal to each other. E.g. a partially ordered set. This change also pins jsonschema in test-requirements.txt to fix py310 failures due to newer versions of jsonschema pulling in rpds-py and therefore the Rust toolchain. Change-Id: I6bbf7e5f81a772ffc6ea859c9ab7c05f2eb9fdc5 Closes-bug: #2023404 (cherry picked from commit e8d0ca3)
- Loading branch information
1 parent
7cb1d9f
commit 4bb148c
Showing
3 changed files
with
182 additions
and
2 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