Conversation
FedericoCeratto
commented
Aug 26, 2021
•
edited
edited
- Bugfix
- Add ability to disable an URL or category completely by setting a very low negative priority
- Improve testing
d57060c
to
8c00795
Compare
9be1bde
to
f7f50ee
Compare
d393a25
to
161520b
Compare
): Path("url_priorities_us.json"), | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since these tests are based on deterministic database dumps, perhaps we can also add a check which verifies that the sorting of the returned URLs matches the expected result (i.e. the priorities are in fact being respected)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed the diff and it looks good to me. I left a couple of comments for improvements that can either be done as part of this PR or as future work.