2021-07-18 13:38:52 +00:00
{% macro new_issue(engine_name, engine_reliability) %}
< form action = "{{ get_setting('brand.new_issue_url') }}" method = "GET" >
2021-04-23 19:08:48 +00:00
< input name = "title" type = "hidden" value = "Bug: {{ engine_name }} engine" >
< input name = "labels" type = "hidden" value = "bug" >
< input name = "template" type = "hidden" value = "bug-report.md" >
2021-05-16 17:35:49 +00:00
< textarea name = "body" class = "issue-hide" > {{- '' -}}
2021-04-23 19:08:48 +00:00
**Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG**
2021-08-18 08:36:53 +00:00
{% if searx_git_url and searx_git_url != 'unknow' %}
Repository: {{ searx_git_url }}
Branch: {{ searx_git_branch }}
Version: {{ searx_version }}
<!-- Check if these values are correct -->
{% else %}
2021-04-23 19:08:48 +00:00
<!-- If you are running on master branch using git execute this command
in order to fetch the latest commit ID:
```
git log -1
2021-04-28 14:07:21 +00:00
```
2021-10-01 07:48:53 +00:00
If you are using searxng-docker then look at the bottom of the SearXNG page
2021-04-23 19:08:48 +00:00
and check for the version after "Powered by SearXNG"
Please also stipulate if you are using a forked version of SearxNG and
include a link to the fork source code.
-->
2021-08-18 08:36:53 +00:00
{% endif %}
2021-04-23 19:08:48 +00:00
**How did you install SearXNG?**
2021-10-01 07:48:53 +00:00
<!-- Did you install SearXNG using the official wiki or using searxng - docker
2021-04-23 19:08:48 +00:00
or manually by executing the searx/webapp.py file? -->
**What happened?**
<!-- A clear and concise description of what the bug is. -->
**How To Reproduce**
<!-- How can we reproduce this issue? (as minimally and as precisely as possible) -->
**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->
**Screenshots & Logs**
<!-- If applicable, add screenshots, logs to help explain your problem. -->
**Additional context**
<!-- Add any other context about the problem here. -->
**Technical report**
{% for error in engine_reliability.errors %}
{% if secondary %}Warning{% else %}Error{% endif %}
{{'\n '}}* Error: {{ error.exception_classname or error.log_message }}
{{' '}}* Percentage: {{ error.percentage }}
{{' '}}* Parameters: `{{ error.log_parameters }}`
{{' '}}* File name: `{{ error.filename }}:{{ error.line_no }}`
{{' '}}* Function: `{{ error.function }}`
{{' '}}* Code: `{{ error.code }}`
{{'\n'-}}
{%- endfor -%}
{%- for test_name, results in engine_reliability.checker.items() -%}
{%- if loop.first %}Checker{% endif -%}
{{-'\n '}}* {{ test_name }}: {% for result in results%}`{{ result }}`,{% endfor -%}
{%- endfor -%}
< / textarea >
2022-07-03 09:03:20 +00:00
< input type = "checkbox" id = "step1" >
< label for = "step1" > {{ _('Start submiting a new issue on GitHub') }}< / label >
< div class = "step1 step_content" >
< p > < a href = "https://github.com/searxng/searxng/issues?q=is%3Aissue+Bug:%20{{ engine_name }}" target = "_blank" rel = "noreferrer noreferrer" > {{ _('Please check for existing bugs about this engine on GitHub') }}< / a > < / p >
< / div >
< input class = "step1 step1_delay" type = "checkbox" id = "step2" >
< label class = "step1 step1_delay" for = "step2" > {{ _('I confirm there is no existing bug about the issue I encounter') }}< / label >
< div class = "step2 step_content" >
< p > {{ _('If this is a public instance, please specify the URL in the bug report') }}< / p >
< button type = "submit" class = "github-issue-button" title = "{{ get_setting('brand.new_issue_url') }}" > {{ _('Submit a new issue on Github including the above information') }}< / button >
< / div >
2021-04-23 19:08:48 +00:00
< / form >
{% endmacro %}