Commit d05acd6e9adfc9c18270b63e70304e02aab4cbad
1 parent
885f0559
Exists in
master
and in
5 other branches
Added issue templates [skip ci]
Showing
4 changed files
with
78 additions
and
7 deletions
Show diff stats
.github/ISSUE_TEMPLATE.md
... | ... | @@ -0,0 +1,53 @@ |
1 | +--- | |
2 | +name: Bug report | |
3 | +about: Create a report to help us improve | |
4 | +title: '' | |
5 | +labels: '' | |
6 | +assignees: '' | |
7 | + | |
8 | +--- | |
9 | + | |
10 | +**Describe the bug** | |
11 | +A clear and concise description of what the bug is. | |
12 | + | |
13 | +**To Reproduce** | |
14 | + | |
15 | +Use this code to reproduce: | |
16 | + | |
17 | +```ruby | |
18 | +require "bundler/inline" | |
19 | + | |
20 | +gemfile do | |
21 | + source "https://rubygems.org" | |
22 | + | |
23 | + gem "activerecord", require: "active_record" | |
24 | + gem "activejob", require: "active_job" | |
25 | + gem "sqlite3" | |
26 | + gem "searchkick", git: "https://github.com/ankane/searchkick.git" | |
27 | +end | |
28 | + | |
29 | +puts "Searchkick version: #{Searchkick::VERSION}" | |
30 | +puts "Elasticsearch version: #{Searchkick.server_version}" | |
31 | + | |
32 | +ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:" | |
33 | +ActiveJob::Base.queue_adapter = :inline | |
34 | + | |
35 | +ActiveRecord::Migration.create_table :products do |t| | |
36 | + t.string :name | |
37 | +end | |
38 | + | |
39 | +class Product < ActiveRecord::Base | |
40 | + searchkick | |
41 | +end | |
42 | + | |
43 | +Product.reindex | |
44 | +Product.create!(name: "Test") | |
45 | +Product.search_index.refresh | |
46 | +p Product.search("test", fields: [:name]).response | |
47 | +``` | |
48 | + | |
49 | +**Expected behavior** | |
50 | +A clear and concise description of what you expected to happen. | |
51 | + | |
52 | +**Additional context** | |
53 | +Add any other context about the problem here. | ... | ... |
... | ... | @@ -0,0 +1,20 @@ |
1 | +--- | |
2 | +name: Feature request | |
3 | +about: Suggest an idea for this project | |
4 | +title: '' | |
5 | +labels: '' | |
6 | +assignees: '' | |
7 | + | |
8 | +--- | |
9 | + | |
10 | +**Is your feature request related to a problem? Please describe.** | |
11 | +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | |
12 | + | |
13 | +**Describe the solution you'd like** | |
14 | +A clear and concise description of what you want to happen. | |
15 | + | |
16 | +**Describe alternatives you've considered** | |
17 | +A clear and concise description of any alternative solutions or features you've considered. | |
18 | + | |
19 | +**Additional context** | |
20 | +Add any other context or screenshots about the feature request here. | ... | ... |