aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2021-08-30 20:23:23 +0200
committerGravatar Numerlor <[email protected]>2021-08-30 20:23:23 +0200
commit48b1a7b042ec23488243ae471842bdfcce8ee9a4 (patch)
tree5a0ce2f090fed14274f6709fe221fe541620f423 /tests/helpers.py
parentcreate a helper function to get the redis key of a doc item (diff)
Prevent erroneous symbols from always raising stale warnings
Some doc symbols are improperly generated and never exist on the doc page the inventory file defines them in, causing the stale warning to get raised every time the page is parsed (at a maximum every week because of the redis expire). This can be prevented by keeping a counter in redis for the items which were stale, every time the item is warned for the counter is incremented and set to expire in 3 weeks. Then a warning is only raised when the counter is below 3, resulting in the unpreventable warning only being raised twice until it is fixed by the maintainers after it expires in 3 weeks after the last increment.
Diffstat (limited to 'tests/helpers.py')
0 files changed, 0 insertions, 0 deletions