antijob / neuro-parser

Other
3 stars 0 forks source link

bot: inc hide for channels #263

Closed explesy closed 2 months ago

explesy commented 2 months ago

В этой ветке добавлена возмжность скрывать каждую отедльную категорию для каждого канала. Для этого нужно зайти в модель incident type channels найти запись с нужными типом инцидента и ид канала. В настрйоках теперь есть поле show. Если оно включено, то пункт показывает в настройках канала в тг, если нет, то не показывается. При выклчюении поля show также отключается поле status. То есть если мы скрываем катеогрию для канала, то и инциденты из него не прихоят.

github-actions[bot] commented 2 months ago
filepath function $$\textcolor{#23d18b}{\tt{passed}}$$ SUBTOTAL
$$\textcolor{#23d18b}{\tt{server/apps/api/tests/test\_article\_view.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_article\_by\_url}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/apps/api/tests/test\_article\_view.py}}$$ $$\textcolor{#23d18b}{\tt{test\_update\_article\_by\_url}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/apps/api/tests/test\_article\_view.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_article\_by\_url\_not\_found}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/apps/api/tests/test\_article\_view.py}}$$ $$\textcolor{#23d18b}{\tt{test\_delete\_article\_by\_url}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/apps/api/tests/test\_incident\_type\_view.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_incident\_types}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/apps/api/tests/test\_media\_incident\_view.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_media\_incidents}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/apps/api/tests/test\_source\_view.py}}$$ $$\textcolor{#23d18b}{\tt{test\_list\_sources}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/apps/api/tests/test\_source\_view.py}}$$ $$\textcolor{#23d18b}{\tt{test\_list\_sources\_with\_limit}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/apps/api/tests/test\_source\_view.py}}$$ $$\textcolor{#23d18b}{\tt{test\_list\_sources\_invalid\_limit}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/apps/api/tests/test\_source\_view.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_articles\_by\_source\_url}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/apps/api/tests/test\_source\_view.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_articles\_by\_source\_url\_not\_found}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/apps/api/tests/test\_source\_view.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_media\_incidents\_by\_source\_url}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/apps/api/tests/test\_views.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_sources}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/apps/api/tests/test\_views.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_article\_by\_url}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/apps/api/tests/test\_views.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_article\_by\_url\_not\_found}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/libs/tests/handler\_test.py}}$$ $$\textcolor{#23d18b}{\tt{test\_register\_valid\_handler\_with\_can\_handle\_method}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/libs/tests/handler\_test.py}}$$ $$\textcolor{#23d18b}{\tt{test\_register\_non\_handler\_with\_can\_handle\_method}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/libs/tests/handler\_test.py}}$$ $$\textcolor{#23d18b}{\tt{test\_choose\_correct\_handler\_with\_url}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/libs/tests/handler\_test.py}}$$ $$\textcolor{#23d18b}{\tt{test\_choose\_no\_suitable\_handler\_with\_url}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/libs/tests/handler\_test.py}}$$ $$\textcolor{#23d18b}{\tt{test\_register\_and\_choose\_with\_multiple\_url\_handlers}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{TOTAL}}$$ $$\textcolor{#23d18b}{\tt{20}}$$ $$\textcolor{#23d18b}{\tt{20}}$$