Skip to content

Commit 0e882c3

Browse files
committed
Merge branch 'main' into feat/helper-tests
2 parents 17f3859 + bbb6146 commit 0e882c3

File tree

254 files changed

+39843
-2043
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

254 files changed

+39843
-2043
lines changed

.github/workflows/check.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,29 @@ jobs:
420420
with:
421421
type: minimal
422422

423+
- name: Generate documentation specs with code snippets
424+
if: ${{ needs.setup.outputs.RUN_GEN == 'true' || needs.setup.outputs.RUN_GEN_JAVASCRIPT == 'true' }}
425+
run: yarn cli build specs ${{ fromJSON(needs.setup.outputs.SPECS_MATRIX).toRun }} --docs
426+
427+
- name: Build website
428+
run: yarn website:build
429+
430+
- name: Deploy documentation
431+
uses: nwtgck/[email protected]
432+
with:
433+
publish-dir: 'website/build'
434+
production-branch: main
435+
github-token: ${{ secrets.GITHUB_TOKEN }}
436+
deploy-message: 'Deploy from GitHub Actions'
437+
enable-pull-request-comment: true
438+
enable-commit-comment: true
439+
overwrites-pull-request-comment: true
440+
netlify-config-path: ./netlify.toml
441+
env:
442+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
443+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
444+
timeout-minutes: 5
445+
423446
- name: Push generated code
424447
id: pushGeneratedCode
425448
run: yarn workspace scripts pushGeneratedCode

clients/algoliasearch-client-go/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [4.0.0-beta.5](https://github.com/algolia/algoliasearch-client-go/compare/4.0.0-beta.4...4.0.0-beta.5)
2+
3+
- [115dd1778](https://github.com/algolia/api-clients-automation/commit/115dd1778) chore(go): add missing ACLs in description, remove duplicated deprecation notice ([#2825](https://github.com/algolia/api-clients-automation/pull/2825)) by [@shortcuts](https://github.com/shortcuts/)
4+
15
## [4.0.0-beta.4](https://github.com/algolia/algoliasearch-client-go/compare/4.0.0-beta.3...4.0.0-beta.4)
26

37
- [a138c2fef](https://github.com/algolia/api-clients-automation/commit/a138c2fef) fix(specs): add `queryID` to search response ([#2801](https://github.com/algolia/api-clients-automation/pull/2801)) by [@aallam](https://github.com/aallam/)

clients/algoliasearch-client-go/algolia/abtesting/api_abtesting.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ AddABTests
9292
9393
Creates an A/B test.
9494
95+
Required API Key ACLs:
96+
- editSettings
97+
9598
Request can be constructed by NewApiAddABTestsRequest with parameters below.
9699
97100
@param addABTestsRequest AddABTestsRequest
@@ -828,6 +831,9 @@ DeleteABTest
828831
Delete an A/B test.
829832
To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
830833
834+
Required API Key ACLs:
835+
- editSettings
836+
831837
Request can be constructed by NewApiDeleteABTestRequest with parameters below.
832838
833839
@param id int32 - Unique A/B test ID.
@@ -947,6 +953,9 @@ GetABTest
947953
Get specific details for an A/B test.
948954
To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
949955
956+
Required API Key ACLs:
957+
- analytics
958+
950959
Request can be constructed by NewApiGetABTestRequest with parameters below.
951960
952961
@param id int32 - Unique A/B test ID.
@@ -1119,6 +1128,9 @@ ListABTests
11191128
11201129
List all A/B tests.
11211130
1131+
Required API Key ACLs:
1132+
- analytics
1133+
11221134
Request can be constructed by NewApiListABTestsRequest with parameters below.
11231135
11241136
@param offset int32 - Position of the starting record. Used for paging. 0 is the first record.
@@ -1255,6 +1267,9 @@ If stopped, the test is over and can't be restarted. There is now only one index
12551267
The data gathered for stopped A/B tests is retained.
12561268
To determine the `id` for an A/B test, use the [`listABTests` operation](#tag/abtest/operation/listABTests).
12571269
1270+
Required API Key ACLs:
1271+
- editSettings
1272+
12581273
Request can be constructed by NewApiStopABTestRequest with parameters below.
12591274
12601275
@param id int32 - Unique A/B test ID.

clients/algoliasearch-client-go/algolia/abtesting/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func getDefaultHosts(r Region) []transport.StatefulHost {
9494
}
9595

9696
func getUserAgent() string {
97-
return fmt.Sprintf("Algolia for Go (4.0.0-beta.4); Go (%s); Abtesting (4.0.0-beta.4)", runtime.Version())
97+
return fmt.Sprintf("Algolia for Go (4.0.0-beta.5); Go (%s); Abtesting (4.0.0-beta.5)", runtime.Version())
9898
}
9999

100100
// queryParameterToString convert any query parameters to string.

clients/algoliasearch-client-go/algolia/analytics/api_analytics.go

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,9 @@ GetAverageClickPosition
752752
Return the average click position for the complete time range and for individual days.
753753
> **Note**: If all `positions` have a `clickCount` of `0` or `null`, it means Algolia didn't receive any click events for tracked searches. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
754754
755+
Required API Key ACLs:
756+
- analytics
757+
755758
Request can be constructed by NewApiGetAverageClickPositionRequest with parameters below.
756759
757760
@param index string - Index name to target.
@@ -940,6 +943,9 @@ Show the number of clicks events and their associated position in the search res
940943
941944
> **Note**: If all `positions` have a `clickCount` of `0` or `null`, it means Algolia didn't receive any click events for tracked searches. A _tracked_ search is a search request where the `clickAnalytics` parameter is `true`.
942945
946+
Required API Key ACLs:
947+
- analytics
948+
943949
Request can be constructed by NewApiGetClickPositionsRequest with parameters below.
944950
945951
@param index string - Index name to target.
@@ -1124,6 +1130,9 @@ GetClickThroughRate
11241130
11251131
Returns a [click-through rate (CTR)](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#click-through-rate).
11261132
1133+
Required API Key ACLs:
1134+
- analytics
1135+
11271136
Request can be constructed by NewApiGetClickThroughRateRequest with parameters below.
11281137
11291138
@param index string - Index name to target.
@@ -1308,6 +1317,9 @@ GetConversationRate
13081317
13091318
Return a [conversion rate](https://www.algolia.com/doc/guides/search-analytics/concepts/metrics/#conversion-rate).
13101319
1320+
Required API Key ACLs:
1321+
- analytics
1322+
13111323
Request can be constructed by NewApiGetConversationRateRequest with parameters below.
13121324
13131325
@param index string - Index name to target.
@@ -1492,6 +1504,9 @@ GetNoClickRate
14921504
14931505
Returns the rate at which searches don't lead to any clicks. The endpoint returns a value for the complete given time range, as well as a value per day. It also returns the count of searches and searches without clicks.
14941506
1507+
Required API Key ACLs:
1508+
- analytics
1509+
14951510
Request can be constructed by NewApiGetNoClickRateRequest with parameters below.
14961511
14971512
@param index string - Index name to target.
@@ -1676,6 +1691,9 @@ GetNoResultsRate
16761691
16771692
Returns the rate at which searches didn't return any results.
16781693
1694+
Required API Key ACLs:
1695+
- analytics
1696+
16791697
Request can be constructed by NewApiGetNoResultsRateRequest with parameters below.
16801698
16811699
@param index string - Index name to target.
@@ -1860,6 +1878,9 @@ GetSearchesCount
18601878
18611879
Returns the number of searches within a time range.
18621880
1881+
Required API Key ACLs:
1882+
- analytics
1883+
18631884
Request can be constructed by NewApiGetSearchesCountRequest with parameters below.
18641885
18651886
@param index string - Index name to target.
@@ -2078,6 +2099,9 @@ GetSearchesNoClicks
20782099
20792100
Return the most popular of the last 1,000 searches that didn't lead to any clicks.
20802101
2102+
Required API Key ACLs:
2103+
- analytics
2104+
20812105
Request can be constructed by NewApiGetSearchesNoClicksRequest with parameters below.
20822106
20832107
@param index string - Index name to target.
@@ -2304,6 +2328,9 @@ GetSearchesNoResults
23042328
23052329
Returns the most popular of the latest 1,000 searches that didn't return any results.
23062330
2331+
Required API Key ACLs:
2332+
- analytics
2333+
23072334
Request can be constructed by NewApiGetSearchesNoResultsRequest with parameters below.
23082335
23092336
@param index string - Index name to target.
@@ -2447,6 +2474,9 @@ GetStatus
24472474
Return the latest update time of the Analytics API for an index. If the index has been recently created or no search has been performed yet, `updatedAt` will be `null`.
24482475
> **Note**: The Analytics API is updated every 5 minutes.
24492476
2477+
Required API Key ACLs:
2478+
- analytics
2479+
24502480
Request can be constructed by NewApiGetStatusRequest with parameters below.
24512481
24522482
@param index string - Index name to target.
@@ -2653,6 +2683,9 @@ GetTopCountries
26532683
26542684
Returns top countries. Limited to the 1,000 most frequent ones.
26552685
2686+
Required API Key ACLs:
2687+
- analytics
2688+
26562689
Request can be constructed by NewApiGetTopCountriesRequest with parameters below.
26572690
26582691
@param index string - Index name to target.
@@ -2896,6 +2929,9 @@ GetTopFilterAttributes
28962929
28972930
Return the most popular [filterable attributes](https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/) in the 1,000 most recently used filters.
28982931
2932+
Required API Key ACLs:
2933+
- analytics
2934+
28992935
Request can be constructed by NewApiGetTopFilterAttributesRequest with parameters below.
29002936
29012937
@param index string - Index name to target.
@@ -3155,6 +3191,9 @@ GetTopFilterForAttribute
31553191
31563192
Returns the most popular filter values for an attribute in the 1,000 most recently used filters.
31573193
3194+
Required API Key ACLs:
3195+
- analytics
3196+
31583197
Request can be constructed by NewApiGetTopFilterForAttributeRequest with parameters below.
31593198
31603199
@param attribute string - Attribute name.
@@ -3407,6 +3446,9 @@ GetTopFiltersNoResults
34073446
34083447
Returns top filters for filter-enabled searches that don't return results. Limited to the 1,000 most recently used filters.
34093448
3449+
Required API Key ACLs:
3450+
- analytics
3451+
34103452
Request can be constructed by NewApiGetTopFiltersNoResultsRequest with parameters below.
34113453
34123454
@param index string - Index name to target.
@@ -3671,6 +3713,9 @@ GetTopHits
36713713
36723714
Return the most popular clicked results in the last 1,000 searches.
36733715
3716+
Required API Key ACLs:
3717+
- analytics
3718+
36743719
Request can be constructed by NewApiGetTopHitsRequest with parameters below.
36753720
36763721
@param index string - Index name to target.
@@ -3956,6 +4001,9 @@ GetTopSearches
39564001
39574002
Returns the most popular of the latest 1,000 searches. For each search, also returns the number of hits.
39584003
4004+
Required API Key ACLs:
4005+
- analytics
4006+
39594007
Request can be constructed by NewApiGetTopSearchesRequest with parameters below.
39604008
39614009
@param index string - Index name to target.
@@ -4160,6 +4208,9 @@ GetUsersCount
41604208
41614209
Return the count of unique users.
41624210
4211+
Required API Key ACLs:
4212+
- analytics
4213+
41634214
Request can be constructed by NewApiGetUsersCountRequest with parameters below.
41644215
41654216
@param index string - Index name to target.

clients/algoliasearch-client-go/algolia/analytics/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func getDefaultHosts(r Region) []transport.StatefulHost {
9494
}
9595

9696
func getUserAgent() string {
97-
return fmt.Sprintf("Algolia for Go (4.0.0-beta.4); Go (%s); Analytics (4.0.0-beta.4)", runtime.Version())
97+
return fmt.Sprintf("Algolia for Go (4.0.0-beta.5); Go (%s); Analytics (4.0.0-beta.5)", runtime.Version())
9898
}
9999

100100
// queryParameterToString convert any query parameters to string.

0 commit comments

Comments
 (0)