Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-chopper-requester-package
Browse files Browse the repository at this point in the history
# Conflicts:
#	generators/src/main/java/com/algolia/codegen/AlgoliaDartGenerator.java
  • Loading branch information
techouse committed Aug 24, 2024
2 parents 7bd6833 + 7d08d1e commit 17e3cd9
Show file tree
Hide file tree
Showing 1,379 changed files with 27,611 additions and 13,030 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runs:
# Java for code generation
- name: Install Java
if: inputs.type != 'minimal'
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
distribution: zulu
java-version-file: config/.java-version
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

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

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

- name: Push specs to algolia documentation
- name: Create GitHub release
run: yarn workspace scripts createGitHubReleases ${{ steps.spreadGeneration.outputs.PUSHED_LANGUAGES }}
env:
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}

- name: Push generation to the Algolia docs
run: yarn workspace scripts pushToAlgoliaDoc
env:
GITHUB_TOKEN: ${{ secrets.ALGOLIA_BOT_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ pubspec.lock
*.DotSettings.user

swiftformat

foo
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

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

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

Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ The Algolia API clients are generated from [OpenAPI specs](https://swagger.io/sp

**Migration note from current API clients**

> 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/).
> 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/).
## 💡 Getting Started with the clients

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).
You can read `getting started` guides and how to use the API clients on [our documentation](https://www.algolia.com/doc/libraries/).

## ✨ Contributing

> 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).
> 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).
### Setup repository tooling

Expand All @@ -41,31 +41,31 @@ nvm use && yarn
yarn docker:setup
```

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

### CLI

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

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

### Guides and requirements

Read the guides and requirements to:

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

### Tests

Test the generated clients by running:

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

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

## ❓ Troubleshooting

Expand Down
55 changes: 55 additions & 0 deletions clients/algoliasearch-client-csharp/.github/workflows/issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: 'Issue sync with Jira'
on:
issues:
types: [opened]

permissions:
issues: write
contents: read

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Create ticket
uses: actions/github-script@v7
with:
script: |
const action = context.payload.action;
if (action !== 'opened') {
return;
}
const title = context.payload.issue.title;
const body = context.payload.issue.body;
const res = await fetch('https://algolia.atlassian.net/rest/api/2/issue', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Authorization': `Basic ${{ secrets.JIRA_TOKEN }}`
},
body: JSON.stringify({
fields: {
description: `Issue created by ${context.actor} at [${context.payload.issue.html_url}](${context.payload.issue.html_url}) \n\n${body}`,
issuetype: {
id: '10001'
},
parent: {
key: 'DI-2737'
},
project: {
id: '10118'
},
summary: `[GH-ISSUE] ${title}`
},
update: {}
})
});
if (!res.ok) {
throw new Error(`Failed to create ticket: ${res.statusText} (${res.status}) - ${await res.text()}`);
}
const data = await res.json();
console.log(`Created ticket: ${data.key}`);
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release packages
on:
push:
branches:
- next
- main

jobs:
release:
Expand Down
51 changes: 51 additions & 0 deletions clients/algoliasearch-client-csharp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,54 @@
## [7.1.1](https://github.com/algolia/algoliasearch-client-csharp/compare/7.1.0...7.1.1)

- [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/)
- [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/)
- [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/)
- [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/)
- [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/)

## [7.1.0](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.2...7.1.0)

- [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/)

## [7.0.2](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.1...7.0.2)

- [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/)

## [7.0.1](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.0...7.0.1)

- [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/)

## [7.0.0](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.0-beta.16...7.0.0)

New major version released! Browse [our documentation](https://www.algolia.com/doc/libraries/csharp)

- [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/)

## [7.0.0-beta.16](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.0-beta.15...7.0.0-beta.16)

- [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/)

## [7.0.0-beta.15](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.0-beta.14...7.0.0-beta.15)

- [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/)

## [7.0.0-beta.14](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.0-beta.13...7.0.0-beta.14)

- [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/)
- [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/)
- [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/)

## [7.0.0-beta.13](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.0-beta.12...7.0.0-beta.13)

- [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/)
- [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/)
- [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/)
- [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/)
- [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/)
- [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/)
- [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/)
- [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/)

## [7.0.0-beta.12](https://github.com/algolia/algoliasearch-client-csharp/compare/7.0.0-beta.11...7.0.0-beta.12)

- [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/)
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions clients/algoliasearch-client-csharp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</p>

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

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

## ❓ Troubleshooting

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)

## Contributing

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).
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).

## 📄 License

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
<PackageId>Algolia.Search</PackageId>
<Company>Algolia</Company>
<PackageTags>Algolia;Search;SearchEngine;Service;Instant;Typo-Tolerance;Realtime;Analytics</PackageTags>
<PackageReleaseNotes>https://github.com/algolia/algoliasearch-client-csharp/blob/master/CHANGELOG.md</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/algolia/algoliasearch-client-csharp/blob/main/CHANGELOG.md</PackageReleaseNotes>
<PackageIconUrl>https://s.gravatar.com/avatar/ef38ca989ef6a4a6373435c257373b84?s=80</PackageIconUrl>
<PackageDescription>
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.
</PackageDescription>
<PackageIcon>icon.png</PackageIcon>
<PackageProjectUrl>https://www.algolia.com/doc/api-client/getting-started/install/csharp/</PackageProjectUrl>
<PackageProjectUrl>https://www.algolia.com/doc/libraries/csharp/</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/algolia/algoliasearch-client-csharp</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<RequireLicenseAcceptance>false</RequireLicenseAcceptance>
<Copyright>Copyright 2019 Algolia</Copyright>
<Version>7.0.0-beta.12</Version>
<Version>7.1.1</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TargetFrameworks>netstandard2.1;netstandard2.0</TargetFrameworks>
<IncludeSymbols>true</IncludeSymbols>
Expand Down Expand Up @@ -56,4 +56,4 @@
</Content>
</ItemGroup>

</Project>
</Project>
Loading

0 comments on commit 17e3cd9

Please sign in to comment.