Skip to content

Commit

Permalink
Merge pull request #53022 from github/fix-index-workflow
Browse files Browse the repository at this point in the history
include already-conforming index versions in the ES version map
  • Loading branch information
Ebonsignori authored Nov 7, 2024
2 parents cee2f30 + 93b6a93 commit 90e0168
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/search/lib/elasticsearch-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ for (const versionSource of Object.values(allVersions)) {
}
}

// Add the values to the keys as well so that the map value -> value works for versions that are already conformed to the indexVersion syntax
for (const [, value] of Object.entries(versionToIndexVersionMap)) {
versionToIndexVersionMap[value] = value
}

// All of the possible keys that can be input to access a version
export const allIndexVersionKeys = Array.from(
new Set([...Object.keys(versionToIndexVersionMap), ...Object.keys(allVersions)]),
Expand Down

0 comments on commit 90e0168

Please sign in to comment.