Fix variable usage impacting schema build performance (#4910)
This commit is contained in:
@@ -113,8 +113,6 @@ def build_integrations_manifest(
|
||||
def build_integrations_schemas(overwrite: bool, integration: str | None = None) -> None:
|
||||
"""Builds a new local copy of integration-schemas.json.gz from EPR integrations."""
|
||||
|
||||
saved_integration_schemas = {}
|
||||
|
||||
# Check if the file already exists and handle accordingly
|
||||
if overwrite and SCHEMA_FILE_PATH.exists():
|
||||
SCHEMA_FILE_PATH.unlink()
|
||||
@@ -139,7 +137,7 @@ def build_integrations_schemas(overwrite: bool, integration: str | None = None)
|
||||
print(f"processing {package}")
|
||||
final_integration_schemas.setdefault(package, {}) # type: ignore[reportUnknownMemberType]
|
||||
for version, manifest in versions.items():
|
||||
if package in saved_integration_schemas and version in saved_integration_schemas[package]:
|
||||
if package in final_integration_schemas and version in final_integration_schemas[package]:
|
||||
continue
|
||||
|
||||
# Download the zip file
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "detection_rules"
|
||||
version = "1.3.9"
|
||||
version = "1.3.10"
|
||||
description = "Detection Rules is the home for rules used by Elastic Security. This repository is used for the development, maintenance, testing, validation, and release of rules for Elastic Security’s Detection Engine."
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.12"
|
||||
|
||||
Reference in New Issue
Block a user