Skip to content

Commit 17e3cd9

Browse files
committed
Merge branch 'main' into feat/add-chopper-requester-package
# Conflicts: # generators/src/main/java/com/algolia/codegen/AlgoliaDartGenerator.java
2 parents 7bd6833 + 7d08d1e commit 17e3cd9

File tree

1,379 files changed

+27611
-13030
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,379 files changed

+27611
-13030
lines changed

.github/actions/setup/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ runs:
1616
# Java for code generation
1717
- name: Install Java
1818
if: inputs.type != 'minimal'
19-
uses: actions/[email protected].1
19+
uses: actions/[email protected].2
2020
with:
2121
distribution: zulu
2222
java-version-file: config/.java-version

.github/workflows/check.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
concurrency:
1313
group: ${{ github.ref }}
14-
cancel-in-progress: true
14+
cancel-in-progress: ${{ !contains(github.event.head_commit.message, 'prepare release')}}
1515

1616
# Uncomment the line below to enable artifacts debugging
1717
# env:
@@ -492,6 +492,10 @@ jobs:
492492
- name: Read benchmark results
493493
id: benchmark
494494
run: |
495+
if [[ $(find tests/output -name benchmarkResult.json | wc -l) -eq 0 ]]; then
496+
echo "No benchmark results found"
497+
exit 0
498+
fi
495499
# merge all benchmark results into a single json, and remove the files
496500
results=$(jq -s 'add' -c tests/output/**/benchmarkResult.json)
497501
{
@@ -501,8 +505,8 @@ jobs:
501505
echo "" # empty line is required to make the table work
502506
echo "Benchmarks performed on the `search` method using a mock server, the results might not reflect the real-world performance."
503507
# format the json to a markdown table with column "Language" and "rate"
504-
echo "| Language | Rate |"
505-
echo "| :------- | ---: |"
508+
echo "| Language | Req/s |"
509+
echo "| :------- | ----: |"
506510
echo "$results" | jq -r 'to_entries | map([.key, .value.rate]) | sort_by(.[1]) | reverse | .[] | @tsv' | awk -F'\t' '{printf "| %-10s | %10d |\n", $1, $2}'
507511
echo "</details>"
508512
echo 'EOF'
@@ -621,7 +625,12 @@ jobs:
621625
env:
622626
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
623627

624-
- name: Push specs to algolia documentation
628+
- name: Create GitHub release
629+
run: yarn workspace scripts createGitHubReleases ${{ steps.spreadGeneration.outputs.PUSHED_LANGUAGES }}
630+
env:
631+
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
632+
633+
- name: Push generation to the Algolia docs
625634
run: yarn workspace scripts pushToAlgoliaDoc
626635
env:
627636
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,5 @@ pubspec.lock
5353
*.DotSettings.user
5454

5555
swiftformat
56+
57+
foo

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Welcome to the contributing guide for the api-clients-automation repository!
44

5-
Please read [our contributing guides](https://api-clients-automation.netlify.app/docs/contributing/introduction/) for advanced usage.
5+
Please read [our contributing guides](https://api-clients-automation.netlify.app/docs/introduction/) for advanced usage.
66

77
If you can't find what you are looking for, please [open an issue](https://github.com/algolia/api-clients-automation/issues/new/choose).
88

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ The Algolia API clients are generated from [OpenAPI specs](https://swagger.io/sp
1717

1818
**Migration note from current API clients**
1919

20-
> In July 2022, we released an alpha version generated API clients for the JavaScript, Java and PHP languages. If you are using the latest stable of those clients and looking to upgrade, read the [migration guide](https://api-clients-automation.netlify.app/docs/clients/migration-guides/). You can still browse the documentation of the stable clients on [the Algolia documentation](https://www.algolia.com/doc/).
20+
> In July 2022, we released an alpha version generated API clients for the JavaScript, Java and PHP languages. If you are using the latest stable of those clients and looking to upgrade, read the [migration guide](https://www.algolia.com/doc/libraries/). You can still browse the documentation of the stable clients on [the Algolia documentation](https://www.algolia.com/doc/).
2121
2222
## 💡 Getting Started with the clients
2323

24-
You can read `getting started` guides and how to use the API clients on [our documentation](https://api-clients-automation.netlify.app/docs/clients/installation).
24+
You can read `getting started` guides and how to use the API clients on [our documentation](https://www.algolia.com/doc/libraries/).
2525

2626
## ✨ Contributing
2727

28-
> Looking to add a new client, or fix a bug? Make sure to take a look at [our contribution guides](https://api-clients-automation.netlify.app/docs/contributing/introduction).
28+
> Looking to add a new client, or fix a bug? Make sure to take a look at [our contribution guides](https://api-clients-automation.netlify.app/docs/introduction).
2929
3030
### Setup repository tooling
3131

@@ -41,31 +41,31 @@ nvm use && yarn
4141
yarn docker:setup
4242
```
4343

44-
[Read more on our documentation](https://api-clients-automation.netlify.app/docs/contributing/setup-repository)
44+
[Read more on our documentation](https://api-clients-automation.netlify.app/docs/setup-repository)
4545

4646
### CLI
4747

4848
The CLI allows you to make changes locally and run commands through the docker container.
4949

50-
- [Specs CLI commands](https://api-clients-automation.netlify.app/docs/contributing/CLI/specs-commands)
51-
- [Clients CLI commands](https://api-clients-automation.netlify.app/docs/contributing/CLI/clients-commands)
52-
- [CTS CLI commands](https://api-clients-automation.netlify.app/docs/contributing/CLI/cts-commands)
50+
- [Specs CLI commands](https://api-clients-automation.netlify.app/docs/CLI/specs-commands)
51+
- [Clients CLI commands](https://api-clients-automation.netlify.app/docs/CLI/clients-commands)
52+
- [CTS CLI commands](https://api-clients-automation.netlify.app/docs/CLI/cts-commands)
5353

5454
### Guides and requirements
5555

5656
Read the guides and requirements to:
5757

58-
- [Add a new client](https://api-clients-automation.netlify.app/docs/contributing/add-new-api-client)
59-
- [Add a new language](https://api-clients-automation.netlify.app/docs/contributing/add-new-api-language)
58+
- [Add a new client](https://api-clients-automation.netlify.app/docs/add-new-api-client)
59+
- [Add a new language](https://api-clients-automation.netlify.app/docs/add-new-api-language)
6060

6161
### Tests
6262

6363
Test the generated clients by running:
6464

65-
- The [`playground`](./playground) (see [documentation](https://api-clients-automation.netlify.app/docs/contributing/testing/playground))
66-
- The [`Common Test Suite`](./tests/) (see [documentation](https://api-clients-automation.netlify.app/docs/contributing/testing/common-test-suite)).
65+
- The [`playground`](./playground) (see [documentation](https://api-clients-automation.netlify.app/docs/testing/playground))
66+
- The [`Common Test Suite`](./tests/) (see [documentation](https://api-clients-automation.netlify.app/docs/testing/common-test-suite)).
6767

68-
For full documentation, visit the **[online documentation](https://api-clients-automation.netlify.app/docs/contributing/introduction)**.
68+
For full documentation, visit the **[online documentation](https://api-clients-automation.netlify.app/docs/introduction)**.
6969

7070
## ❓ Troubleshooting
7171

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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/2/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: `Issue created by ${context.actor} at [${context.payload.issue.html_url}](${context.payload.issue.html_url}) \n\n${body}`,
35+
issuetype: {
36+
id: '10001'
37+
},
38+
parent: {
39+
key: 'DI-2737'
40+
},
41+
project: {
42+
id: '10118'
43+
},
44+
summary: `[GH-ISSUE] ${title}`
45+
},
46+
update: {}
47+
})
48+
});
49+
50+
if (!res.ok) {
51+
throw new Error(`Failed to create ticket: ${res.statusText} (${res.status}) - ${await res.text()}`);
52+
}
53+
54+
const data = await res.json();
55+
console.log(`Created ticket: ${data.key}`);

clients/algoliasearch-client-csharp/.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release packages
33
on:
44
push:
55
branches:
6-
- next
6+
- main
77

88
jobs:
99
release:

clients/algoliasearch-client-csharp/CHANGELOG.md

+51
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
## [7.1.1](https://github.com/algolia/algoliasearch-client-csharp/compare/7.1.0...7.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+
9+
## [7.1.0](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.2...7.1.0)
10+
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/)
12+
13+
## [7.0.2](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.1...7.0.2)
14+
15+
- [6cfc2d479](https://github.com/algolia/api-clients-automation/commit/6cfc2d479) chore(specs): update rendered title for search params ([#3553](https://github.com/algolia/api-clients-automation/pull/3553)) by [@shortcuts](https://github.com/shortcuts/)
16+
17+
## [7.0.1](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.0...7.0.1)
18+
19+
- [40c5d47bd](https://github.com/algolia/api-clients-automation/commit/40c5d47bd) fix(specs): delete user token processing time ([#3525](https://github.com/algolia/api-clients-automation/pull/3525)) by [@kai687](https://github.com/kai687/)
20+
21+
## [7.0.0](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.0-beta.16...7.0.0)
22+
23+
New major version released! Browse [our documentation](https://www.algolia.com/doc/libraries/csharp)
24+
25+
- [22348001a](https://github.com/algolia/api-clients-automation/commit/22348001a) fix(specs): required ingestion search params ([#3516](https://github.com/algolia/api-clients-automation/pull/3516)) by [@shortcuts](https://github.com/shortcuts/)
26+
27+
## [7.0.0-beta.16](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.0-beta.15...7.0.0-beta.16)
28+
29+
- [4c052002e](https://github.com/algolia/api-clients-automation/commit/4c052002e) feat(specs): recursive snippets and highlights result ([#3497](https://github.com/algolia/api-clients-automation/pull/3497)) by [@shortcuts](https://github.com/shortcuts/)
30+
31+
## [7.0.0-beta.15](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.0-beta.14...7.0.0-beta.15)
32+
33+
- [7d2ab99ce](https://github.com/algolia/api-clients-automation/commit/7d2ab99ce) feat(specs): add authentications to ingestion transformations ([#3494](https://github.com/algolia/api-clients-automation/pull/3494)) by [@shortcuts](https://github.com/shortcuts/)
34+
35+
## [7.0.0-beta.14](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.0-beta.13...7.0.0-beta.14)
36+
37+
- [2c6147ee7](https://github.com/algolia/api-clients-automation/commit/2c6147ee7) feat(specs): add generate code endpoint to ingestion specs ([#3489](https://github.com/algolia/api-clients-automation/pull/3489)) by [@shortcuts](https://github.com/shortcuts/)
38+
- [6c62a81a7](https://github.com/algolia/api-clients-automation/commit/6c62a81a7) fix(specs): ingestion docker task input ([#3488](https://github.com/algolia/api-clients-automation/pull/3488)) by [@shortcuts](https://github.com/shortcuts/)
39+
- [eab2887f8](https://github.com/algolia/api-clients-automation/commit/eab2887f8) fix(specs): ingestion search endpoint ([#3487](https://github.com/algolia/api-clients-automation/pull/3487)) by [@shortcuts](https://github.com/shortcuts/)
40+
41+
## [7.0.0-beta.13](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.0-beta.12...7.0.0-beta.13)
42+
43+
- [ac0cadb8a](https://github.com/algolia/api-clients-automation/commit/ac0cadb8a) feat(specs): add transformation copilot to ingestion ([#3479](https://github.com/algolia/api-clients-automation/pull/3479)) by [@Fluf22](https://github.com/Fluf22/)
44+
- [08a04dec8](https://github.com/algolia/api-clients-automation/commit/08a04dec8) fix(specs): ingestion destination reject indexPrefix ([#3478](https://github.com/algolia/api-clients-automation/pull/3478)) by [@shortcuts](https://github.com/shortcuts/)
45+
- [cdd673d33](https://github.com/algolia/api-clients-automation/commit/cdd673d33) fix(specs): ingestion destinations and transformations ([#3477](https://github.com/algolia/api-clients-automation/pull/3477)) by [@shortcuts](https://github.com/shortcuts/)
46+
- [b4742be76](https://github.com/algolia/api-clients-automation/commit/b4742be76) fix(clients): move the license to the root ([#3457](https://github.com/algolia/api-clients-automation/pull/3457)) by [@millotp](https://github.com/millotp/)
47+
- [e5d14171c](https://github.com/algolia/api-clients-automation/commit/e5d14171c) fix(specs): dictionary entry for stopwords has type property ([#3456](https://github.com/algolia/api-clients-automation/pull/3456)) by [@kai687](https://github.com/kai687/)
48+
- [7af1e75e9](https://github.com/algolia/api-clients-automation/commit/7af1e75e9) fix(specs): body is not required in multiple batch request ([#3454](https://github.com/algolia/api-clients-automation/pull/3454)) by [@kai687](https://github.com/kai687/)
49+
- [b90bef261](https://github.com/algolia/api-clients-automation/commit/b90bef261) feat(specs): add runSource endpoint ([#3453](https://github.com/algolia/api-clients-automation/pull/3453)) by [@millotp](https://github.com/millotp/)
50+
- [27679b7fd](https://github.com/algolia/api-clients-automation/commit/27679b7fd) chore(clients): remove mention of GA ([#3452](https://github.com/algolia/api-clients-automation/pull/3452)) by [@millotp](https://github.com/millotp/)
51+
152
## [7.0.0-beta.12](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.0-beta.11...7.0.0-beta.12)
253

354
- [e982ddf0a](https://github.com/algolia/api-clients-automation/commit/e982ddf0a) fix(specs): built-in ops accept also int ([#3450](https://github.com/algolia/api-clients-automation/pull/3450)) by [@kai687](https://github.com/kai687/)

clients/algoliasearch-client-csharp/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</p>
1313

1414
<p align="center">
15-
<a href="https://api-clients-automation.netlify.app/docs/clients/csharp/" target="_blank">Documentation</a> •
15+
<a href="https://www.algolia.com/doc/libraries/csharp/v7/" target="_blank">Documentation</a> •
1616
<a href="https://discourse.algolia.com" target="_blank">Community Forum</a> •
1717
<a href="http://stackoverflow.com/questions/tagged/algolia" target="_blank">Stack Overflow</a> •
1818
<a href="https://github.com/algolia/algoliasearch-client-csharp/issues" target="_blank">Report a bug</a> •
@@ -90,15 +90,15 @@ var response = await client.SearchAsync<Object>(
9090
);
9191
```
9292

93-
For full documentation, visit the **[Algolia CSharp API Client](https://www.algolia.com/doc/api-client/getting-started/install/csharp/)**.
93+
For full documentation, visit the **[Algolia CSharp API Client](https://www.algolia.com/doc/libraries/csharp/)**.
9494

9595
## ❓ Troubleshooting
9696

9797
Encountering an issue? Before reaching out to support, we recommend heading to our [FAQ](https://www.algolia.com/doc/api-client/troubleshooting/faq/csharp/) where you will find answers for the most common issues and gotchas with the client. You can also open [a GitHub issue](https://github.com/algolia/api-clients-automation/issues/new?assignees=&labels=&projects=&template=Bug_report.md)
9898

9999
## Contributing
100100

101-
This repository hosts the code of the generated Algolia API client for CSharp, if you'd like to contribute, head over to the [main repository](https://github.com/algolia/api-clients-automation). You can also find contributing guides on [our documentation website](https://api-clients-automation.netlify.app/docs/contributing/introduction).
101+
This repository hosts the code of the generated Algolia API client for CSharp, if you'd like to contribute, head over to the [main repository](https://github.com/algolia/api-clients-automation). You can also find contributing guides on [our documentation website](https://api-clients-automation.netlify.app/docs/introduction).
102102

103103
## 📄 License
104104

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
<PackageId>Algolia.Search</PackageId>
1010
<Company>Algolia</Company>
1111
<PackageTags>Algolia;Search;SearchEngine;Service;Instant;Typo-Tolerance;Realtime;Analytics</PackageTags>
12-
<PackageReleaseNotes>https://github.com/algolia/algoliasearch-client-csharp/blob/master/CHANGELOG.md</PackageReleaseNotes>
12+
<PackageReleaseNotes>https://github.com/algolia/algoliasearch-client-csharp/blob/main/CHANGELOG.md</PackageReleaseNotes>
1313
<PackageIconUrl>https://s.gravatar.com/avatar/ef38ca989ef6a4a6373435c257373b84?s=80</PackageIconUrl>
1414
<PackageDescription>
1515
Algolia is a powerful search-as-a-service solution, made easy to use with API clients, UI libraries, and pre-built integrations. Algolia API Client for the .NET framework lets you easily use the Algolia Search REST API from your .NET code.
1616
</PackageDescription>
1717
<PackageIcon>icon.png</PackageIcon>
18-
<PackageProjectUrl>https://www.algolia.com/doc/api-client/getting-started/install/csharp/</PackageProjectUrl>
18+
<PackageProjectUrl>https://www.algolia.com/doc/libraries/csharp/</PackageProjectUrl>
1919
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2020
<RepositoryUrl>https://github.com/algolia/algoliasearch-client-csharp</RepositoryUrl>
2121
<RepositoryType>git</RepositoryType>
2222
<RequireLicenseAcceptance>false</RequireLicenseAcceptance>
2323
<Copyright>Copyright 2019 Algolia</Copyright>
24-
<Version>7.0.0-beta.12</Version>
24+
<Version>7.1.1</Version>
2525
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2626
<TargetFrameworks>netstandard2.1;netstandard2.0</TargetFrameworks>
2727
<IncludeSymbols>true</IncludeSymbols>
@@ -56,4 +56,4 @@
5656
</Content>
5757
</ItemGroup>
5858

59-
</Project>
59+
</Project>

0 commit comments

Comments
 (0)