algolia 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/issue.yml +69 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/algolia/api/search_client.rb +4 -4
- data/lib/algolia/models/abtesting/ab_test.rb +0 -10
- data/lib/algolia/models/abtesting/variant.rb +0 -10
- data/lib/algolia/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e17bb4992fec59b9eadf29c8243f9c10f029dc9af23278a0c51230b7d9ef4bb
|
4
|
+
data.tar.gz: a4f61aa37084e234676d7d6abe97a9e3febf78b3069b45eb0eeab6cb49979f6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c508315e7ff164a28ac8e6631d5ed6036cfe815330c99b8ad08b7f74f613317e7c43354afcda3b1a3989653961758468260ddb7b05f160a51393d67af5f76a6
|
7
|
+
data.tar.gz: 610361616a11645b18962e5128f39b20ed6fd9c6fec22bc6076ddb7deb84d7e3a13c01353c297d00603068539ec1be9a66f2528cdc02ed411ec50726ad5d7da5
|
@@ -0,0 +1,69 @@
|
|
1
|
+
name: 'Issue sync with Jira'
|
2
|
+
on:
|
3
|
+
issues:
|
4
|
+
types: [opened]
|
5
|
+
|
6
|
+
permissions:
|
7
|
+
issues: write
|
8
|
+
contents: read
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
sync:
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
steps:
|
14
|
+
- name: Create ticket
|
15
|
+
uses: actions/github-script@v7
|
16
|
+
with:
|
17
|
+
script: |
|
18
|
+
const action = context.payload.action;
|
19
|
+
if (action !== 'opened') {
|
20
|
+
return;
|
21
|
+
}
|
22
|
+
const title = context.payload.issue.title;
|
23
|
+
const body = context.payload.issue.body;
|
24
|
+
|
25
|
+
const res = await fetch('https://algolia.atlassian.net/rest/api/3/issue', {
|
26
|
+
method: 'POST',
|
27
|
+
headers: {
|
28
|
+
'Accept': 'application/json',
|
29
|
+
'Content-Type': 'application/json',
|
30
|
+
'Authorization': `Basic ${{ secrets.JIRA_TOKEN }}`
|
31
|
+
},
|
32
|
+
body: JSON.stringify({
|
33
|
+
fields: {
|
34
|
+
description: {
|
35
|
+
content: [
|
36
|
+
{
|
37
|
+
content: [
|
38
|
+
{
|
39
|
+
text: `Issue created by ${context.actor} at ${context.payload.issue.html_url} \n\n${body}`,
|
40
|
+
type: 'text'
|
41
|
+
}
|
42
|
+
],
|
43
|
+
type: 'paragraph'
|
44
|
+
}
|
45
|
+
],
|
46
|
+
type: 'doc',
|
47
|
+
version: 1
|
48
|
+
},
|
49
|
+
issuetype: {
|
50
|
+
id: '10001'
|
51
|
+
},
|
52
|
+
parent: {
|
53
|
+
key: 'DI-2737'
|
54
|
+
},
|
55
|
+
project: {
|
56
|
+
id: '10118'
|
57
|
+
},
|
58
|
+
summary: `[GH-ISSUE] ${title}`
|
59
|
+
},
|
60
|
+
update: {}
|
61
|
+
})
|
62
|
+
});
|
63
|
+
|
64
|
+
if (!res.ok) {
|
65
|
+
throw new Error(`Failed to create ticket: ${res.statusText} (${res.status}) - ${await res.text()}`);
|
66
|
+
}
|
67
|
+
|
68
|
+
const data = await res.json();
|
69
|
+
console.log(`Created ticket: ${data.key}`);
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## [3.1.1](https://github.com/algolia/algoliasearch-client-ruby/compare/3.1.0...3.1.1)
|
2
|
+
|
3
|
+
- [4cbbce55c](https://github.com/algolia/api-clients-automation/commit/4cbbce55c) fix(clients): highlight and snippet results e2e ([#3567](https://github.com/algolia/api-clients-automation/pull/3567)) by [@shortcuts](https://github.com/shortcuts/)
|
4
|
+
- [7c7de04ab](https://github.com/algolia/api-clients-automation/commit/7c7de04ab) fix(specs): another wrong link ([#3570](https://github.com/algolia/api-clients-automation/pull/3570)) by [@kai687](https://github.com/kai687/)
|
5
|
+
- [f38a9ef12](https://github.com/algolia/api-clients-automation/commit/f38a9ef12) chore(specs): breaking change method names mapping table ([#3568](https://github.com/algolia/api-clients-automation/pull/3568)) by [@shortcuts](https://github.com/shortcuts/)
|
6
|
+
- [9dedfc90f](https://github.com/algolia/api-clients-automation/commit/9dedfc90f) fix(clients): mention `main` branch instead of `master` ([#3566](https://github.com/algolia/api-clients-automation/pull/3566)) by [@shortcuts](https://github.com/shortcuts/)
|
7
|
+
- [0e5ffb1e8](https://github.com/algolia/api-clients-automation/commit/0e5ffb1e8) fix(specs): broken link ([#3559](https://github.com/algolia/api-clients-automation/pull/3559)) by [@kai687](https://github.com/kai687/)
|
8
|
+
|
1
9
|
## [3.1.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.0.2...3.1.0)
|
2
10
|
|
3
11
|
- [d53060d96](https://github.com/algolia/api-clients-automation/commit/d53060d96) feat(specs): add /schedule endpoint ([#3350](https://github.com/algolia/api-clients-automation/pull/3350)) by [@febeck](https://github.com/febeck/)
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
</p>
|
14
14
|
|
15
15
|
<p align="center">
|
16
|
-
<a href="https://www.algolia.com/doc/
|
16
|
+
<a href="https://www.algolia.com/doc/libraries/ruby/" target="_blank">Documentation</a> •
|
17
17
|
<a href="https://github.com/algolia/algoliasearch-rails" target="_blank">Rails</a> •
|
18
18
|
<a href="https://discourse.algolia.com" target="_blank">Community Forum</a> •
|
19
19
|
<a href="http://stackoverflow.com/questions/tagged/algolia" target="_blank">Stack Overflow</a> •
|
@@ -47,7 +47,7 @@ Finally, you may begin searching a object using the `search` method:
|
|
47
47
|
objects = client.search_single_index('your_index_name', 'Foo')
|
48
48
|
```
|
49
49
|
|
50
|
-
For full documentation, visit the **[Algolia Ruby API Client](https://www.algolia.com/doc/
|
50
|
+
For full documentation, visit the **[Algolia Ruby API Client](https://www.algolia.com/doc/libraries/ruby/)**.
|
51
51
|
|
52
52
|
## ❓ Troubleshooting
|
53
53
|
|
@@ -818,7 +818,7 @@ module Algolia
|
|
818
818
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::DeleteApiKeyResponse")
|
819
819
|
end
|
820
820
|
|
821
|
-
# This operation doesn't accept empty queries or filters. It's more efficient to get a list of object IDs with the [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch` operation](tag/Records/operation/batch).
|
821
|
+
# This operation doesn't accept empty queries or filters. It's more efficient to get a list of object IDs with the [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch` operation](#tag/Records/operation/batch).
|
822
822
|
#
|
823
823
|
# Required API Key ACLs:
|
824
824
|
# - deleteIndex
|
@@ -855,7 +855,7 @@ module Algolia
|
|
855
855
|
@api_client.call_api(:POST, path, new_options)
|
856
856
|
end
|
857
857
|
|
858
|
-
# This operation doesn't accept empty queries or filters. It's more efficient to get a list of object IDs with the [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch` operation](tag/Records/operation/batch).
|
858
|
+
# This operation doesn't accept empty queries or filters. It's more efficient to get a list of object IDs with the [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch` operation](#tag/Records/operation/batch).
|
859
859
|
#
|
860
860
|
# Required API Key ACLs:
|
861
861
|
# - deleteIndex
|
@@ -2294,7 +2294,7 @@ module Algolia
|
|
2294
2294
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::AddApiKeyResponse")
|
2295
2295
|
end
|
2296
2296
|
|
2297
|
-
# Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/
|
2297
|
+
# Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
|
2298
2298
|
#
|
2299
2299
|
# Required API Key ACLs:
|
2300
2300
|
# - addObject
|
@@ -2331,7 +2331,7 @@ module Algolia
|
|
2331
2331
|
@api_client.call_api(:POST, path, new_options)
|
2332
2332
|
end
|
2333
2333
|
|
2334
|
-
# Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/
|
2334
|
+
# Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
|
2335
2335
|
#
|
2336
2336
|
# Required API Key ACLs:
|
2337
2337
|
# - addObject
|
@@ -144,34 +144,24 @@ module Algolia
|
|
144
144
|
|
145
145
|
if attributes.key?(:click_significance)
|
146
146
|
self.click_significance = attributes[:click_significance]
|
147
|
-
else
|
148
|
-
self.click_significance = nil
|
149
147
|
end
|
150
148
|
|
151
149
|
if attributes.key?(:conversion_significance)
|
152
150
|
self.conversion_significance = attributes[:conversion_significance]
|
153
|
-
else
|
154
|
-
self.conversion_significance = nil
|
155
151
|
end
|
156
152
|
|
157
153
|
if attributes.key?(:add_to_cart_significance)
|
158
154
|
self.add_to_cart_significance = attributes[:add_to_cart_significance]
|
159
|
-
else
|
160
|
-
self.add_to_cart_significance = nil
|
161
155
|
end
|
162
156
|
|
163
157
|
if attributes.key?(:purchase_significance)
|
164
158
|
self.purchase_significance = attributes[:purchase_significance]
|
165
|
-
else
|
166
|
-
self.purchase_significance = nil
|
167
159
|
end
|
168
160
|
|
169
161
|
if attributes.key?(:revenue_significance)
|
170
162
|
if (value = attributes[:revenue_significance]).is_a?(Hash)
|
171
163
|
self.revenue_significance = value
|
172
164
|
end
|
173
|
-
else
|
174
|
-
self.revenue_significance = nil
|
175
165
|
end
|
176
166
|
|
177
167
|
if attributes.key?(:updated_at)
|
@@ -167,14 +167,10 @@ module Algolia
|
|
167
167
|
|
168
168
|
if attributes.key?(:add_to_cart_rate)
|
169
169
|
self.add_to_cart_rate = attributes[:add_to_cart_rate]
|
170
|
-
else
|
171
|
-
self.add_to_cart_rate = nil
|
172
170
|
end
|
173
171
|
|
174
172
|
if attributes.key?(:average_click_position)
|
175
173
|
self.average_click_position = attributes[:average_click_position]
|
176
|
-
else
|
177
|
-
self.average_click_position = nil
|
178
174
|
end
|
179
175
|
|
180
176
|
if attributes.key?(:click_count)
|
@@ -185,8 +181,6 @@ module Algolia
|
|
185
181
|
|
186
182
|
if attributes.key?(:click_through_rate)
|
187
183
|
self.click_through_rate = attributes[:click_through_rate]
|
188
|
-
else
|
189
|
-
self.click_through_rate = nil
|
190
184
|
end
|
191
185
|
|
192
186
|
if attributes.key?(:conversion_count)
|
@@ -197,8 +191,6 @@ module Algolia
|
|
197
191
|
|
198
192
|
if attributes.key?(:conversion_rate)
|
199
193
|
self.conversion_rate = attributes[:conversion_rate]
|
200
|
-
else
|
201
|
-
self.conversion_rate = nil
|
202
194
|
end
|
203
195
|
|
204
196
|
if attributes.key?(:currencies)
|
@@ -241,8 +233,6 @@ module Algolia
|
|
241
233
|
|
242
234
|
if attributes.key?(:purchase_rate)
|
243
235
|
self.purchase_rate = attributes[:purchase_rate]
|
244
|
-
else
|
245
|
-
self.purchase_rate = nil
|
246
236
|
end
|
247
237
|
|
248
238
|
if attributes.key?(:search_count)
|
data/lib/algolia/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: algolia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- https://alg.li/support
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -118,6 +118,7 @@ executables: []
|
|
118
118
|
extensions: []
|
119
119
|
extra_rdoc_files: []
|
120
120
|
files:
|
121
|
+
- ".github/workflows/issue.yml"
|
121
122
|
- ".github/workflows/release.yml"
|
122
123
|
- ".gitignore"
|
123
124
|
- CHANGELOG.md
|