new_issue.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {% macro new_issue(engine_name, engine_reliability) %}
  2. <form action="{{ get_setting('brand.new_issue_url') }}" method="GET">
  3. <input name="title" type="hidden" value="Bug: {{ engine_name }} engine">
  4. <input name="labels" type="hidden" value="bug">
  5. <input name="template" type="hidden" value="bug-report.md">
  6. <textarea name="body" class="issue-hide">{{- '' -}}
  7. **Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG**
  8. {% if searx_git_url and searx_git_url != 'unknow' %}
  9. Repository: {{ searx_git_url }}
  10. Branch: {{ searx_git_branch }}
  11. Version: {{ searx_version }}
  12. <!-- Check if these values are correct -->
  13. {% else %}
  14. <!-- If you are running on master branch using git execute this command
  15. in order to fetch the latest commit ID:
  16. ```
  17. git log -1
  18. ```
  19. If you are using searxng-docker then look at the bottom of the SearXNG page
  20. and check for the version after "Powered by SearXNG"
  21. Please also stipulate if you are using a forked version of SearxNG and
  22. include a link to the fork source code.
  23. -->
  24. {% endif %}
  25. **How did you install SearXNG?**
  26. <!-- Did you install SearXNG using the official wiki or using searxng-docker
  27. or manually by executing the searx/webapp.py file? -->
  28. **What happened?**
  29. <!-- A clear and concise description of what the bug is. -->
  30. **How To Reproduce**
  31. <!-- How can we reproduce this issue? (as minimally and as precisely as possible) -->
  32. **Expected behavior**
  33. <!-- A clear and concise description of what you expected to happen. -->
  34. **Screenshots & Logs**
  35. <!-- If applicable, add screenshots, logs to help explain your problem. -->
  36. **Additional context**
  37. <!-- Add any other context about the problem here. -->
  38. **Technical report**
  39. {% for error in engine_reliability.errors %}
  40. {% if secondary %}Warning{% else %}Error{% endif %}
  41. {{'\n '}}* Error: {{ error.exception_classname or error.log_message }}
  42. {{' '}}* Percentage: {{ error.percentage }}
  43. {{' '}}* Parameters: `{{ error.log_parameters }}`
  44. {{' '}}* File name: `{{ error.filename }}:{{ error.line_no }}`
  45. {{' '}}* Function: `{{ error.function }}`
  46. {{' '}}* Code: `{{ error.code }}`
  47. {{'\n'-}}
  48. {%- endfor -%}
  49. {%- for test_name, results in engine_reliability.checker.items() -%}
  50. {%- if loop.first %}Checker{% endif -%}
  51. {{-'\n '}}* {{ test_name }}: {% for result in results%}`{{ result }}`,{% endfor -%}
  52. {%- endfor -%}
  53. </textarea>
  54. <input type="checkbox" id="step1">
  55. <label for="step1">{{ _('Start submitting a new issue on GitHub') }}</label>
  56. <div class="step1 step_content">
  57. <p><a href="{{ get_setting('brand.issue_url') }}?q=is%3Aissue+Bug:%20{{ engine_name }} {{ technical_report }}" target="_blank" rel="noreferrer noreferrer">{{ _('Please check for existing bugs about this engine on GitHub') }}</a></p>
  58. </div>
  59. <input class="step1 step1_delay" type="checkbox" id="step2">
  60. <label class="step1 step1_delay" for="step2" >{{ _('I confirm there is no existing bug about the issue I encounter') }}</label>
  61. <div class="step2 step_content">
  62. <p>{{ _('If this is a public instance, please specify the URL in the bug report') }}</p>
  63. <button type="submit" class="github-issue-button button" title="{{ get_setting('brand.new_issue_url') }}">{{ _('Submit a new issue on Github including the above information') }}</button>
  64. </div>
  65. </form>
  66. {% endmacro %}