Skip to content

Commit 0770e79

Browse files
authored
Merge branch 'main' into docs/analytics/update_max_pagination_query_limit
2 parents a2a408e + 63200d1 commit 0770e79

File tree

1,889 files changed

+69269
-71664
lines changed

Some content is hidden

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

1,889 files changed

+69269
-71664
lines changed

.eslintrc.cjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ module.exports = {
7171
},
7272
],
7373
},
74+
{
75+
// actions yml linter
76+
files: ['.github/**/*.yml'],
77+
78+
rules: {
79+
'yml/no-empty-mapping-value': 0,
80+
},
81+
},
7482
{
7583
// es linter
7684
files: ['*.ts', '*.js'],

.github/ISSUE_TEMPLATE/Bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ body:
4343
id: client
4444
attributes:
4545
label: Client
46-
description: Which API are you targetting?
46+
description: Which API are you targeting?
4747
options:
4848
- All
4949
- AB testing

.github/actions/setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919
# Java for code generation
2020
- name: Install Java
2121
if: inputs.type != 'minimal'
22-
uses: actions/setup-java@v4.2.2
22+
uses: actions/setup-java@v4.4.0
2323
with:
2424
distribution: zulu
2525
java-version-file: config/.java-version
@@ -201,7 +201,7 @@ runs:
201201
if: ${{ inputs.language == 'swift' }}
202202
id: swiftformat-version
203203
shell: bash
204-
run: echo "SWIFTFORMAT_VERSION=0.54.4" >> $GITHUB_OUTPUT
204+
run: echo "SWIFTFORMAT_VERSION=0.54.5" >> $GITHUB_OUTPUT
205205

206206
- name: Checkout swiftformat
207207
if: ${{ inputs.language == 'swift' }}

.github/workflows/check.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ jobs:
204204
cd clients/algoliasearch-client-javascript/packages
205205
ls | grep -v -E "(client-common|requester-*|algoliasearch)" | xargs rm -rf
206206
cd algoliasearch
207-
ls | grep -v -E "(__tests__|jest.config.ts)" | xargs rm -rf
207+
ls | grep -v -E "__tests__" | xargs rm -rf
208208
209209
- name: Setup
210210
uses: ./.github/actions/setup
@@ -289,7 +289,7 @@ jobs:
289289
path: clients-javascript.zip
290290

291291
client_gen:
292-
timeout-minutes: 10
292+
timeout-minutes: 15
293293
runs-on: ubuntu-22.04
294294
needs:
295295
- setup
@@ -400,7 +400,7 @@ jobs:
400400
path: clients-${{matrix.client.language }}.zip
401401

402402
kotlin_build_macos:
403-
timeout-minutes: 10
403+
timeout-minutes: 15
404404
runs-on: macos-latest
405405
needs:
406406
- setup
@@ -430,13 +430,14 @@ jobs:
430430
type: minimal
431431
language: kotlin
432432

433-
- name: remove previous build from linux
434-
run: |
435-
rm -rf clients/algoliasearch-client-kotlin/build || true
436-
rm -rf clients/algoliasearch-client-kotlin/.kotlin || true
437-
rm -rf clients/algoliasearch-client-kotlin/.gradle || true
433+
- name: Build clients for macOS
434+
id: build
435+
continue-on-error: true
436+
run: yarn cli build clients kotlin
438437

439-
- run: yarn cli build clients kotlin
438+
- name: Retry build
439+
if: ${{ steps.build.outcome == 'failure' }}
440+
run: yarn cli build clients kotlin
440441

441442
- name: Set output
442443
id: setoutput
@@ -478,7 +479,14 @@ jobs:
478479
language: swift
479480
version: ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).version }}
480481

481-
- run: yarn cli cts run swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }} -v ${{ !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-e2e]') && '--no-e2e' || '' }}
482+
- name: Run tests on macOS
483+
id: run-test
484+
continue-on-error: true
485+
run: yarn cli cts run swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }} -v ${{ !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-e2e]') && '--no-e2e' || '' }}
486+
487+
- name: Retry tests
488+
if: ${{ steps.run-test.outcome == 'failure' }}
489+
run: yarn cli cts run swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }} -v ${{ !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-e2e]') && '--no-e2e' || '' }}
482490

483491
- name: Set output
484492
id: setoutput
@@ -622,7 +630,7 @@ jobs:
622630
623631
push_and_release:
624632
runs-on: ubuntu-22.04
625-
timeout-minutes: 15
633+
timeout-minutes: 30
626634
needs:
627635
- codegen
628636
- check_green
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Push specs and snippets to Algolia doc
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
release:
7+
name: Scheduled Release
8+
runs-on: ubuntu-22.04
9+
steps:
10+
- uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
ref: main
14+
15+
- name: Setup
16+
id: setup
17+
uses: ./.github/actions/setup
18+
with:
19+
type: minimal
20+
21+
- run: yarn workspace scripts pushToAlgoliaDoc
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
24+
FORCE: true

.github/workflows/renovate.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ on:
44
schedule:
55
- cron: '0 14 * * 5' # At 14:00 on Friday.
66
workflow_dispatch:
7-
inputs:
8-
fake_input:
9-
description: input needed to satisfy the yaml linter
10-
required: false
117

128
jobs:
139
renovate:

.github/workflows/scheduled-release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ on:
44
schedule:
55
- cron: '30 6 * * 2'
66
workflow_dispatch:
7-
inputs:
8-
fake_input:
9-
description: input needed to satisfy the yaml linter
10-
required: false
117

128
jobs:
139
release:

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.7.0
1+
22.9.0

.yarn/releases/yarn-4.4.1.cjs renamed to .yarn/releases/yarn-4.5.0.cjs

Lines changed: 162 additions & 162 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,10 @@ enableGlobalCache: false
44

55
nodeLinker: node-modules
66

7-
yarnPath: .yarn/releases/yarn-4.4.1.cjs
7+
yarnPath: .yarn/releases/yarn-4.5.0.cjs
8+
9+
# esbuild use native binaries, we need both to work locally and on the CI.
10+
supportedArchitectures:
11+
os:
12+
- darwin
13+
- linux
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Do not edit files in this repository
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopen
9+
branches:
10+
- 'main'
11+
12+
jobs:
13+
auto_close_pr:
14+
name: Close PR
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Close PR
20+
env:
21+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
PR_NUMBER: ${{ github.event.pull_request.number }}
23+
run: |
24+
gh pr close "${PR_NUMBER}" -d -c "Thanks for contributing to our API clients! Sorry to close your PR, but this repository is fully generated, you can port your changes to [the API Clients Automation repository](https://github.com/algolia/api-clients-automation). If you need some guidance, feel free to [open an issue](https://github.com/algolia/api-clients-automation/issues) or [read our contribution guide](https://api-clients-automation.netlify.app/docs/introduction)."

clients/algoliasearch-client-csharp/CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
## [7.5.0](https://github.com/algolia/algoliasearch-client-csharp/compare/7.4.3...7.5.0)
2+
3+
- [788483537](https://github.com/algolia/api-clients-automation/commit/788483537) chore(clients): add workflow to auto-close PR ([#3834](https://github.com/algolia/api-clients-automation/pull/3834)) by [@shortcuts](https://github.com/shortcuts/)
4+
- [e59dd41d5](https://github.com/algolia/api-clients-automation/commit/e59dd41d5) fix(specs): API key description will be obfuscated ([#3840](https://github.com/algolia/api-clients-automation/pull/3840)) by [@kai687](https://github.com/kai687/)
5+
- [dc28c0268](https://github.com/algolia/api-clients-automation/commit/dc28c0268) feat(specs): add recommend batch rules endpoint ([#3782](https://github.com/algolia/api-clients-automation/pull/3782)) by [@raed667](https://github.com/raed667/)
6+
- [6f58ae2dc](https://github.com/algolia/api-clients-automation/commit/6f58ae2dc) chore(deps): dependencies 2024-09-30 ([#3842](https://github.com/algolia/api-clients-automation/pull/3842)) by [@algolia-bot](https://github.com/algolia-bot/)
7+
8+
## [7.4.3](https://github.com/algolia/algoliasearch-client-csharp/compare/7.4.2...7.4.3)
9+
10+
- [022131871](https://github.com/algolia/api-clients-automation/commit/022131871) fix(specs): correct query params for ingestion [skip-bc] ([#3830](https://github.com/algolia/api-clients-automation/pull/3830)) by [@millotp](https://github.com/millotp/)
11+
12+
## [7.4.2](https://github.com/algolia/algoliasearch-client-csharp/compare/7.4.1...7.4.2)
13+
14+
- [1939114e1](https://github.com/algolia/api-clients-automation/commit/1939114e1) chore(deps): dependencies 2024-09-23 ([#3790](https://github.com/algolia/api-clients-automation/pull/3790)) by [@algolia-bot](https://github.com/algolia-bot/)
15+
- [4e8275165](https://github.com/algolia/api-clients-automation/commit/4e8275165) fix(clients): deserialization ([#3822](https://github.com/algolia/api-clients-automation/pull/3822)) by [@Fluf22](https://github.com/Fluf22/)
16+
17+
## [7.4.1](https://github.com/algolia/algoliasearch-client-csharp/compare/7.4.0...7.4.1)
18+
19+
- [1a73994ff](https://github.com/algolia/api-clients-automation/commit/1a73994ff) fix(specs): recommend remove unsupported query parameters [RECO-2345] [skip-bc] ([#3692](https://github.com/algolia/api-clients-automation/pull/3692)) by [@raed667](https://github.com/raed667/)
20+
- [92438873c](https://github.com/algolia/api-clients-automation/commit/92438873c) fix(specs): remove models from ingestion specs [skip-bc] ([#3774](https://github.com/algolia/api-clients-automation/pull/3774)) by [@shortcuts](https://github.com/shortcuts/)
21+
22+
## [7.4.0](https://github.com/algolia/algoliasearch-client-csharp/compare/7.3.2...7.4.0)
23+
24+
- [e74af8d71](https://github.com/algolia/api-clients-automation/commit/e74af8d71) fix(csharp): remove global enum converter ([#3765](https://github.com/algolia/api-clients-automation/pull/3765)) by [@morganleroi](https://github.com/morganleroi/)
25+
26+
## [7.3.2](https://github.com/algolia/algoliasearch-client-csharp/compare/7.3.1...7.3.2)
27+
28+
- [638058eae](https://github.com/algolia/api-clients-automation/commit/638058eae) fix(specs): update search api specs [skip-bc] ([#3760](https://github.com/algolia/api-clients-automation/pull/3760)) by [@Fluf22](https://github.com/Fluf22/)
29+
- [08d8ee6de](https://github.com/algolia/api-clients-automation/commit/08d8ee6de) chore(deps): dependencies 2024-09-16 [skip-bc] ([#3704](https://github.com/algolia/api-clients-automation/pull/3704)) by [@algolia-bot](https://github.com/algolia-bot/)
30+
131
## [7.3.1](https://github.com/algolia/algoliasearch-client-csharp/compare/7.3.0...7.3.1)
232

333
- [d4df544d6](https://github.com/algolia/api-clients-automation/commit/d4df544d6) fix(specs): remove usage [skip-bc] ([#3691](https://github.com/algolia/api-clients-automation/pull/3691)) by [@kai687](https://github.com/kai687/)

clients/algoliasearch-client-csharp/algoliasearch/Algolia.Search.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<RepositoryUrl>https://github.com/algolia/algoliasearch-client-csharp</RepositoryUrl>
2121
<RepositoryType>git</RepositoryType>
2222
<RequireLicenseAcceptance>false</RequireLicenseAcceptance>
23-
<Version>7.3.1</Version>
23+
<Version>7.5.0</Version>
2424
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2525
<TargetFrameworks>netstandard2.1;netstandard2.0</TargetFrameworks>
2626
<IncludeSymbols>true</IncludeSymbols>
@@ -38,7 +38,7 @@
3838

3939
<ItemGroup>
4040
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
41-
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
41+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
4242
<PackageReference Include="System.Text.Json" Version="8.0.4" />
4343
</ItemGroup>
4444

clients/algoliasearch-client-csharp/algoliasearch/Clients/AbtestingConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public sealed class AbtestingConfig : AlgoliaConfig
2828
/// <param name="appId">Your application ID</param>
2929
/// <param name="apiKey">Your API Key</param>
3030
/// <param name="region">Targeted region (optional)</param>
31-
public AbtestingConfig(string appId, string apiKey, string region = null) : base(appId, apiKey, "Abtesting", "7.3.1")
31+
public AbtestingConfig(string appId, string apiKey, string region = null) : base(appId, apiKey, "Abtesting", "7.5.0")
3232
{
3333
DefaultHosts = GetDefaultHosts(region);
3434
Compression = CompressionType.None;

clients/algoliasearch-client-csharp/algoliasearch/Clients/AnalyticsConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public sealed class AnalyticsConfig : AlgoliaConfig
2828
/// <param name="appId">Your application ID</param>
2929
/// <param name="apiKey">Your API Key</param>
3030
/// <param name="region">Targeted region (optional)</param>
31-
public AnalyticsConfig(string appId, string apiKey, string region = null) : base(appId, apiKey, "Analytics", "7.3.1")
31+
public AnalyticsConfig(string appId, string apiKey, string region = null) : base(appId, apiKey, "Analytics", "7.5.0")
3232
{
3333
DefaultHosts = GetDefaultHosts(region);
3434
Compression = CompressionType.None;

0 commit comments

Comments
 (0)