Conversation
Review Summary by QodoUpgrade Elasticsearch client and Docker image to v9
WalkthroughsDescription• Upgrade Elasticsearch client from v8 to v9 • Update Elasticsearch Docker image from 7.17.3 to 9.3.3 • Update package dependencies and lock file • Change import from elasticsearch8 npm alias to @elastic/elasticsearch Diagramflowchart LR
A["elasticsearch8<br/>v8.19.1"] -->|"upgrade"| B["@elastic/elasticsearch<br/>v9.3.4"]
C["elasticsearch:7.17.3<br/>Docker image"] -->|"upgrade"| D["elasticsearch:9.3.3<br/>Docker image"]
B -->|"uses"| E["@elastic/transport<br/>v9.3.5"]
E -->|"uses"| F["secure-json-parse<br/>v4.1.0"]
E -->|"uses"| G["undici<br/>v7.24.7"]
File Changes1. test/elasticsearch/test.elasticsearch.spec.ts
|
Code Review by Qodo
|
Review Summary by QodoUpgrade Elasticsearch client and dependencies to v9
WalkthroughsDescription• Upgrade Elasticsearch client from v8 to v9 • Update Elasticsearch container image to 9.3.3 • Update dependencies for transport and security packages • Modernize test infrastructure with latest client version Diagramflowchart LR
A["elasticsearch8<br/>v8.19.1"] -->|"upgrade"| B["@elastic/elasticsearch<br/>v9.3.4"]
C["elasticsearch:7.17.27<br/>container"] -->|"upgrade"| D["elasticsearch:9.3.3<br/>container"]
B -->|"uses"| E["@elastic/transport<br/>v9.3.5"]
E -->|"uses"| F["secure-json-parse<br/>v4.1.0"]
E -->|"uses"| G["undici<br/>v7.24.7"]
File Changes1. test/elasticsearch/test.elasticsearch.spec.ts
|
Code Review by Qodo
|
|
Good start, still a lot to do :) |
| "cli-table3": "^0.6.5", | ||
| "dirty-ts": "^1.1.8", | ||
| "elasticsearch8": "npm:@elastic/elasticsearch@^8.19.1", | ||
| "@elastic/elasticsearch": "^9.3.4", |
There was a problem hiding this comment.
Thought this is better. Idk why this was renamed like this before
| // We deliberately stay on Elasticsearch 7.17.x because the | ||
| // 'migration to schema v2 / existing data' tests below intentionally | ||
| // write data in the legacy ES7 type-based schema (via client.index | ||
| // with `type:`) to verify the v1 -> v2 migration code path. ES 8 |
There was a problem hiding this comment.
I changed the comment because we now use the modern schema
|
Nice! |
Yes do we need to do something else? Otherwise I think we have now a full elasticsearch v9 support |
|
I think qodo has some complaints, if they are invalid just flag them as invalid and LGTM :) |
I think I fixed all of them. Thanks :) |
No description provided.