Skip to content

Merge stable into develop #6375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 31 commits into from
Apr 29, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f6f8aca
docs: add different content types for artifacts
wvandeun Apr 24, 2025
c2c33a2
docs: clarify supported transformation output formats
wvandeun Apr 24, 2025
658af4e
Refactor computed attribute update_computed_attribute_value_jinja2
ogenstad Apr 23, 2025
6cbf94f
Update vulnerable h11 package
ogenstad Apr 25, 2025
1494d53
Merge pull request #6353 from opsmill/wvd-20250424-add-artifact-conte…
wvandeun Apr 25, 2025
22e5c66
Merge pull request #6348 from opsmill/pog-refactor-computed-attribute…
ogenstad Apr 25, 2025
f9dfb54
Merge pull request #6360 from opsmill/pog-update-h11
ogenstad Apr 25, 2025
81d9f74
Mutating a backend node with extra attrs logs instead of raising (#6350)
LucasG0 Apr 25, 2025
0170e9a
fix(backend): improve IPPrefixReconcileQuery performance (#6249)
fatih-acar Apr 25, 2025
0b6d612
improve video player appearance
petercrocker Apr 26, 2025
7ceb878
update frontend dependencies
bilalabbad Apr 28, 2025
93b89f9
Merge pull request #6365 from opsmill/pmc-20250426-videos
petercrocker Apr 28, 2025
c773767
bump sdk to 1.11.1
lykinsbd Apr 28, 2025
2dda891
v1.2.7 release prep
lykinsbd Apr 28, 2025
979144c
chore: update docker-compose
opsmill-bot Apr 28, 2025
6f7f027
AggregatedConstraintChecker correctly raises errors (#6369)
LucasG0 Apr 28, 2025
f1ed7a3
fix(docs): bad pg_dump command with docker
fatih-acar Apr 28, 2025
afddfc6
fix(backend): reintroduce attribute value indexes
fatih-acar Apr 7, 2025
69e108e
fix(backend): improve node uniqueness constraint query
fatih-acar Apr 7, 2025
aa873bb
fix(backend): add db value index feature flag
fatih-acar Apr 25, 2025
e0feb8c
fix(backend, tests): failing migration test due to indexes
fatih-acar Apr 25, 2025
e0d98f6
ensure database index manager uses the correct database object
ajtmccarty Apr 28, 2025
847ea56
remove duplicate txn from Migration014
ajtmccarty Apr 28, 2025
2236fab
fix infrahub version in repository dispatch call in release workflow
wvandeun Apr 29, 2025
78b0d70
Upgrade Prefect to 3.3.7
ogenstad Apr 29, 2025
4853eb8
Merge pull request #6371 from opsmill/pog-prefect-3.3.7
ogenstad Apr 29, 2025
ba4f0c9
Fix flaky e2e test tutorial-1 (#6362)
pa-lem Apr 29, 2025
f2ed542
Merge pull request #6370 from opsmill/wvd-fix-repository-dispatch-wor…
wvandeun Apr 29, 2025
048608f
Move database constants to constants folder (#6372)
LucasG0 Apr 29, 2025
c0f9a31
Separate the query for object details and tasks count into two distin…
bilalabbad Apr 29, 2025
c621075
Merge branch 'stable' into develop
bilalabbad Apr 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move database constants to constants folder (#6372)
  • Loading branch information
LucasG0 authored Apr 29, 2025
commit 048608f6888597339f033084d9d8ca90f87496fd
2 changes: 1 addition & 1 deletion backend/infrahub/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from pydantic_settings import BaseSettings, SettingsConfigDict
from typing_extensions import Self

from infrahub.database.constants import DatabaseType
from infrahub.constants.database import DatabaseType
from infrahub.exceptions import InitializationError, ProcessingError

if TYPE_CHECKING:
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion backend/infrahub/core/graph/index.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from infrahub.database.constants import IndexType
from infrahub.constants.database import IndexType
from infrahub.database.index import IndexItem

node_indexes: list[IndexItem] = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

from typing import TYPE_CHECKING, Sequence

from infrahub.constants.database import IndexType
from infrahub.core.migrations.shared import MigrationResult
from infrahub.core.query import Query # noqa: TC001
from infrahub.database import DatabaseType
from infrahub.database.constants import IndexType
from infrahub.database.index import IndexItem

from ..shared import GraphMigration
Expand Down
2 changes: 1 addition & 1 deletion backend/infrahub/database/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
from typing_extensions import Self

from infrahub import config, lock
from infrahub.constants.database import DatabaseType, Neo4jRuntime
from infrahub.core import registry
from infrahub.core.query import QueryType
from infrahub.exceptions import DatabaseError
from infrahub.log import get_logger
from infrahub.utils import InfrahubStringEnum

from .constants import DatabaseType, Neo4jRuntime
from .memgraph import DatabaseManagerMemgraph
from .metrics import CONNECTION_POOL_USAGE, QUERY_EXECUTION_METRICS, TRANSACTION_RETRIES
from .neo4j import DatabaseManagerNeo4j
Expand Down
2 changes: 1 addition & 1 deletion backend/infrahub/database/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from pydantic import BaseModel

from .constants import EntityType, IndexType # noqa: TC001
from infrahub.constants.database import EntityType, IndexType # noqa: TC001

if TYPE_CHECKING:
from infrahub.database import InfrahubDatabase
Expand Down
3 changes: 2 additions & 1 deletion backend/infrahub/database/memgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

from typing import TYPE_CHECKING

from .constants import EntityType, IndexType
from infrahub.constants.database import EntityType, IndexType

from .index import IndexInfo, IndexItem, IndexManagerBase
from .manager import DatabaseManager

Expand Down
2 changes: 1 addition & 1 deletion backend/infrahub/database/neo4j.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

from typing import TYPE_CHECKING

from infrahub.constants.database import EntityType, IndexType
from infrahub.core.query import QueryType

from .constants import EntityType, IndexType
from .index import IndexInfo, IndexItem, IndexManagerBase
from .manager import DatabaseManager

Expand Down
4 changes: 2 additions & 2 deletions backend/infrahub/git_credential/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import typer
from infrahub_sdk import Config, InfrahubClientSync
from infrahub_sdk.protocols import CoreGenericRepository

from infrahub import config
from infrahub.core.constants import InfrahubKind

logging.getLogger("httpx").setLevel(logging.ERROR)
app = typer.Typer()
Expand Down Expand Up @@ -51,7 +51,7 @@ def get(
raise typer.Exit(1) from exc

client = InfrahubClientSync(config=Config(address=config.SETTINGS.main.internal_address, insert_tracker=True))
repo = client.get(kind=InfrahubKind.GENERICREPOSITORY, location__value=location)
repo = client.get(kind=CoreGenericRepository.__name__, location__value=location)

if not repo:
print("Repository not found in the database.")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from dataclasses import dataclass

from infrahub.database import Neo4jRuntime
from infrahub.constants.database import Neo4jRuntime
from tests.helpers.constants import NEO4J_ENTERPRISE_IMAGE


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
from neo4j import Record

from infrahub.config import SETTINGS
from infrahub.constants.database import Neo4jRuntime
from infrahub.core.query import QueryType
from infrahub.database import InfrahubDatabase
from infrahub.database.constants import Neo4jRuntime
from infrahub.log import get_logger
from tests.helpers.constants import NEO4J_ENTERPRISE_IMAGE

Expand Down
2 changes: 1 addition & 1 deletion backend/tests/query_benchmark/test_diff_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

import pytest

from infrahub.constants.database import Neo4jRuntime
from infrahub.core import registry
from infrahub.core.diff.calculator import DiffCalculator
from infrahub.core.initialization import create_branch
from infrahub.core.timestamp import Timestamp
from infrahub.database.constants import Neo4jRuntime
from infrahub.log import get_logger
from tests.helpers.constants import NEO4J_COMMUNITY_IMAGE, NEO4J_ENTERPRISE_IMAGE
from tests.helpers.query_benchmark.benchmark_config import BenchmarkConfig
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/query_benchmark/test_node_get_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import pytest

from infrahub.constants.database import Neo4jRuntime
from infrahub.core import registry
from infrahub.core.query.node import NodeGetListQuery
from infrahub.database.constants import Neo4jRuntime
from infrahub.log import get_logger
from tests.helpers.constants import NEO4J_ENTERPRISE_IMAGE
from tests.helpers.query_benchmark.benchmark_config import BenchmarkConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import pytest

from infrahub.constants.database import Neo4jRuntime
from infrahub.core import registry
from infrahub.core.validators.uniqueness.model import (
NodeUniquenessQueryRequest,
Expand All @@ -11,7 +12,6 @@
)
from infrahub.core.validators.uniqueness.query import NodeUniqueAttributeConstraintQuery
from infrahub.database import QueryConfig
from infrahub.database.constants import Neo4jRuntime
from infrahub.log import get_logger
from tests.helpers.constants import NEO4J_COMMUNITY_IMAGE, NEO4J_ENTERPRISE_IMAGE
from tests.helpers.query_benchmark.benchmark_config import BenchmarkConfig
Expand Down
2 changes: 1 addition & 1 deletion backend/tests/unit/core/migrations/graph/test_014.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from infrahub.constants.database import IndexType
from infrahub.core.migrations.graph.m014_remove_index_attr_value import (
Migration014,
)
from infrahub.database import DatabaseType, InfrahubDatabase
from infrahub.database.constants import IndexType
from infrahub.database.index import IndexItem


Expand Down
2 changes: 1 addition & 1 deletion tasks/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def get_enum_mappings() -> dict:
TraceTransportProtocol,
WorkflowDriver,
)
from infrahub.database.constants import DatabaseType
from infrahub.constants.database import DatabaseType

enum_mappings = {}

Expand Down
Loading