antijob / neuro-parser

Other
3 stars 0 forks source link

Refactoring of pipline to send messages about new incidents #296

Closed explesy closed 2 weeks ago

explesy commented 3 weeks ago

Переписан пайплайн отправки инцидентво ботом. Теперь все нужные функуции вызываютс последовательно из селри таски, а не по старнной цепочке. После. обработки таски по созданию инциеднтов возвращается список в котором есть результат выполнения каждой таски по отправке сообщений

github-actions[bot] commented 2 weeks 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/core/fetcher/clients/tests/test\_http\_client.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_article\_success}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/core/fetcher/clients/tests/test\_http\_client.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_article\_redirect}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/core/fetcher/clients/tests/test\_http\_client.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_article\_bad\_code}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/core/fetcher/clients/tests/test\_http\_client.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_source\_success}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/core/fetcher/clients/tests/test\_http\_client.py}}$$ $$\textcolor{#23d18b}{\tt{test\_get\_source\_bad\_code}}$$ $$\textcolor{#23d18b}{\tt{1}}$$ $$\textcolor{#23d18b}{\tt{1}}$$
$$\textcolor{#23d18b}{\tt{server/core/article\_parser/tests/article\_parser\_test.py}}$$ $$\textcolor{#23d18b}{\tt{test\_registry\_choose}}$$ $$\textcolor{#23d18b}{\tt{4}}$$ $$\textcolor{#23d18b}{\tt{4}}$$
$$\textcolor{#23d18b}{\tt{server/core/article\_parser/tests/article\_parser\_test.py}}$$ $$\textcolor{#23d18b}{\tt{test\_postprocess\_article\_with\_html}}$$ $$\textcolor{#23d18b}{\tt{2}}$$ $$\textcolor{#23d18b}{\tt{2}}$$
$$\textcolor{#23d18b}{\tt{server/core/source\_parser/tests/source\_parser\_test.py}}$$ $$\textcolor{#23d18b}{\tt{test\_registry\_choose}}$$ $$\textcolor{#23d18b}{\tt{5}}$$ $$\textcolor{#23d18b}{\tt{5}}$$
$$\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{36}}$$ $$\textcolor{#23d18b}{\tt{36}}$$