Commit d67d36e
authored
Migrate release endpoint (#98)
This pull request updates the source URL used to fetch Elasticsearch
release data across multiple implementations in the codebase. The main
change is switching from the legacy
`https://artifacts.elastic.co/releases/stack.json` endpoint to the new
`https://ela.st/past-stack-releases` endpoint, ensuring consistent and
up-to-date data retrieval for Elasticsearch versions.
**Endpoint update for Elasticsearch release data:**
* Python (`main.py`): Changed the fetch URL in
`get_latest_elasticsearch_version` to use the new endpoint.
* .NET (`Program.cs`): Updated the HTTP request in `GetLatestVersion` to
use the new URL.
* Java (`ElasticsearchTools.java`): Modified the `WebClient` request to
point to the new endpoint.
* JavaScript (`index.js`): Updated the fetch call in
`getLatestElasticsearchVersion` to use the new URL.
**Test and cassette updates:**
* YAML cassette (`test_main.yaml`): Updated both the request URI and the
returned manifest field to reflect the new endpoint, ensuring test
coverage matches the production change.
[[1]](diffhunk://#diff-55217b7d75be834356ba5990e38ad0c928e8e3175f51c9c52f19527b5eb80ee2L185-R185)
[[2]](diffhunk://#diff-55217b7d75be834356ba5990e38ad0c928e8e3175f51c9c52f19527b5eb80ee2L2444-R2444)1 parent ca0a5b9 commit d67d36e
5 files changed
Lines changed: 6 additions & 6 deletions
File tree
- genai-function-calling
- openai-agents
- cassettes
- semantic-kernel-dotnet
- spring-ai/src/main/java/example
- vercel-ai
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
2441 | 2441 | | |
2442 | 2442 | | |
2443 | 2443 | | |
2444 | | - | |
| 2444 | + | |
2445 | 2445 | | |
2446 | 2446 | | |
2447 | 2447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments