Skip to content

Commit

Permalink
Remove SUPPORTED_VERSIONS in favor of pattern match + ORDER BY
Browse files Browse the repository at this point in the history
  • Loading branch information
eramongodb committed Oct 24, 2024
1 parent 8e1699f commit 9cdcfd4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .evergreen/mongodl.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@
from typing import (IO, TYPE_CHECKING, Any, Callable, Iterable, Iterator, Optional,
NamedTuple, Sequence, cast)

# The named supported minor and major versions.
SUPPORTED_VERSIONS = ["3.6", "4.0", "4.2", "4.4", "5.0", "6.0", "7.0", "8.0"]

# These versions are used for performance benchmarking. Do not update to a newer version.
PERF_VERSIONS = {
"v6.0-perf": "6.0.6",
Expand Down Expand Up @@ -387,16 +384,6 @@ def _import_json_data(self, data: 'Any') -> None:
UNIQUE(key, download_id)
)
''')
# Inject supported versions
versions = dict(zip(SUPPORTED_VERSIONS, [None for _ in SUPPORTED_VERSIONS]))
for ver in data['versions']:
version = ver['version']
key = version[:3]
if key in versions and versions[key] is None:
ver = ver.copy()
ver['version'] = key
versions[key] = ver
data['versions'].extend(versions.values())

for ver in data['versions']:
version = ver['version']
Expand Down

0 comments on commit 9cdcfd4

Please sign in to comment.