Skip to content

HCK-6956: upgrade Elasticsearch driver#42

Merged
chulanovskyi-bs merged 3 commits into
developfrom
feature/HCK-6956
May 12, 2026
Merged

HCK-6956: upgrade Elasticsearch driver#42
chulanovskyi-bs merged 3 commits into
developfrom
feature/HCK-6956

Conversation

@taras-dubyk
Copy link
Copy Markdown
Contributor

Content

Upgrades reverse engineering from the deprecated elasticsearch (v16) package to @elastic/elasticsearch@7, which was already used by forward engineering for Apply to Instance.

Changes:

  • elasticsearchClientFactory.js — moved client factory to shared location so both FE and RE use a single source of truth
  • clientFactory.js — replaced with a re-export shim pointing at the shared factory
  • api.js — replaced manual connectionParams construction with ElasticSearchClientFactory.getByConnectionInfo(); updated testConnection to async/await with ping timeout as second argument. Updated getCount/search/getIndexes to destructure { body } from responses
  • SchemaCreator.js — updated getMapping, getSettings, getAliases to destructure { body } from responses

@taras-dubyk taras-dubyk self-assigned this May 12, 2026
Comment thread reverse_engineering/api.js Outdated
@sonarqubecloud
Copy link
Copy Markdown

@chulanovskyi-bs chulanovskyi-bs enabled auto-merge (squash) May 12, 2026 14:22
@chulanovskyi-bs chulanovskyi-bs merged commit 64e154d into develop May 12, 2026
8 checks passed
@chulanovskyi-bs chulanovskyi-bs deleted the feature/HCK-6956 branch May 12, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants