flagsmith-common 2.2.3__tar.gz → 2.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/PKG-INFO +1 -1
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/pyproject.toml +1 -1
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/utils.py +9 -4
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/LICENSE +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/README.md +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/__init__.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/__init__.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/app.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/cli/__init__.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/cli/healthcheck.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/logging.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/main.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/management/__init__.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/management/commands/__init__.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/management/commands/docgen.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/management/commands/start.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/management/commands/waitfordb.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/metrics.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/middleware.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/templates/docgen-metrics.md +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/urls.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/views.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/environments/permissions.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/features/__init__.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/features/multivariate/__init__.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/features/multivariate/serializers.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/features/serializers.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/features/versioning/__init__.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/features/versioning/serializers.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/gunicorn/__init__.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/gunicorn/conf.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/gunicorn/constants.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/gunicorn/logging.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/gunicorn/metrics.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/gunicorn/middleware.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/gunicorn/utils.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/migrations/__init__.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/migrations/helpers/__init__.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/migrations/helpers/postgres_helpers.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/organisations/permissions.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/projects/permissions.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/prometheus/__init__.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/prometheus/utils.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/py.typed +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/test_tools/__init__.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/test_tools/plugin.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/test_tools/types.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/test_tools/utils.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/types.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/__init__.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/admin.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/apps.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/decorators.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/exceptions.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/health.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/managers.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/metrics.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/0001_initial.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/0002_healthcheckmodel.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/0003_add_completed_to_task.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/0004_recreate_task_indexes.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/0005_update_conditional_index_conditions.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/0006_auto_20230221_0802.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/0007_add_is_locked.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/0008_add_get_task_to_process_function.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/0009_add_recurring_task_run_first_run_at.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/0010_task_priority.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/0011_add_priority_to_get_tasks_to_process.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/0012_add_locked_at_and_timeout.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/0013_add_last_picked_at.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/__init__.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/sql/0008_get_recurring_tasks_to_process.sql +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/sql/0008_get_tasks_to_process.sql +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/sql/0011_get_tasks_to_process.sql +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/sql/0012_get_recurringtasks_to_process.sql +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/sql/0013_get_recurringtasks_to_process.sql +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/sql/__init__.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/models.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/monitoring.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/processor.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/py.typed +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/routers.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/serializers.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/task_registry.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/task_run_method.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/tasks.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/threads.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/types.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/urls.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/utils.py +0 -0
- {flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/views.py +0 -0
|
@@ -7,6 +7,7 @@ import tempfile
|
|
|
7
7
|
from functools import lru_cache
|
|
8
8
|
from itertools import cycle
|
|
9
9
|
from typing import (
|
|
10
|
+
TYPE_CHECKING,
|
|
10
11
|
Iterator,
|
|
11
12
|
Literal,
|
|
12
13
|
NotRequired,
|
|
@@ -17,19 +18,23 @@ from typing import (
|
|
|
17
18
|
|
|
18
19
|
from django.conf import settings
|
|
19
20
|
from django.contrib.auth import get_user_model
|
|
20
|
-
from django.contrib.auth.models import AbstractBaseUser
|
|
21
21
|
from django.db import connections
|
|
22
|
-
from django.db.models import Manager, Model
|
|
23
22
|
from django.db.utils import OperationalError
|
|
24
23
|
|
|
25
24
|
from common.core import ReplicaReadStrategy
|
|
26
25
|
|
|
26
|
+
if TYPE_CHECKING:
|
|
27
|
+
from django.contrib.auth.models import AbstractBaseUser
|
|
28
|
+
from django.db.models.base import Model
|
|
29
|
+
from django.db.models.manager import Manager
|
|
30
|
+
|
|
31
|
+
|
|
27
32
|
logger = logging.getLogger(__name__)
|
|
28
33
|
|
|
29
34
|
UNKNOWN = "unknown"
|
|
30
35
|
VERSIONS_INFO_FILE_LOCATION = ".versions.json"
|
|
31
36
|
|
|
32
|
-
ManagerType = TypeVar("ManagerType", bound=Manager[Model])
|
|
37
|
+
ManagerType = TypeVar("ManagerType", bound="Manager[Model]")
|
|
33
38
|
|
|
34
39
|
ReplicaNamePrefix = Literal["replica_", "cross_region_replica_"]
|
|
35
40
|
_replica_sequential_names_by_prefix: dict[ReplicaNamePrefix, Iterator[str]] = {}
|
|
@@ -102,7 +107,7 @@ def get_version_info() -> VersionInfo:
|
|
|
102
107
|
version_json["image_tag"] = manifest_versions["."]
|
|
103
108
|
|
|
104
109
|
if not _is_saas:
|
|
105
|
-
user_objects: Manager[AbstractBaseUser] = getattr(get_user_model(), "objects")
|
|
110
|
+
user_objects: "Manager[AbstractBaseUser]" = getattr(get_user_model(), "objects")
|
|
106
111
|
|
|
107
112
|
version_json["self_hosted_data"] = {
|
|
108
113
|
"has_users": user_objects.exists(),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/management/commands/__init__.py
RENAMED
|
File without changes
|
{flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/management/commands/docgen.py
RENAMED
|
File without changes
|
{flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/management/commands/start.py
RENAMED
|
File without changes
|
{flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/management/commands/waitfordb.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/core/templates/docgen-metrics.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/features/multivariate/__init__.py
RENAMED
|
File without changes
|
{flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/features/multivariate/serializers.py
RENAMED
|
File without changes
|
|
File without changes
|
{flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/features/versioning/__init__.py
RENAMED
|
File without changes
|
{flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/features/versioning/serializers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/common/migrations/helpers/postgres_helpers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/0001_initial.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flagsmith_common-2.2.3 → flagsmith_common-2.2.4}/src/task_processor/migrations/sql/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|