We want a tooltip to display the description corresponding to the warning code when the user hovers over the warning code of an issue
To implement this feature you will likely need to:
Query the warning_messages table to find the corresponding warning code. You can use the get_warning_message_range function in queries.py as a reference on how to write your own query with SQLAlchemy.
Replace the following line in Issue.js with HumanReadable and pass in the description we queried for in step 1
Make sure you handle the case where the warning_messages table is empty or we don't find a description for the warning code
We use the following linters internally, so to save everyone's time, please make sure you run the following linters locally and fix errors related to the files you modified before submitting a PR:
black && usort format . && flake8
To install the linters, you can run the following command:
Description:
We want a tooltip to display the description corresponding to the warning code when the user hovers over the warning code of an issue
To implement this feature you will likely need to:
warning_messages
table to find the corresponding warning code. You can use theget_warning_message_range
function inqueries.py
as a reference on how to write your own query with SQLAlchemy.Issue.js
withHumanReadable
and pass in the description we queried for in step 1warning_messages
table is empty or we don't find a description for the warning codeSteps to Reproduce:
Submitting a PR
We use the following linters internally, so to save everyone's time, please make sure you run the following linters locally and fix errors related to the files you modified before submitting a PR:
To install the linters, you can run the following command: