flagsmith-common 3.13.1__tar.gz → 3.14.0__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-3.13.1 → flagsmith_common-3.14.0}/PKG-INFO +1 -1
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/pyproject.toml +1 -1
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/pyproject.toml.orig +1 -1
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/flagsmith_schemas/dynamodb.py +8 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/decorators.py +9 -1
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/LICENSE +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/README.md +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/app.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/cli/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/cli/healthcheck.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/cli/run.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/constants.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/docgen/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/docgen/events.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/logging.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/main.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/management/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/management/commands/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/management/commands/docgen.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/management/commands/start.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/management/commands/waitfordb.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/metrics.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/middleware.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/otel.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/sentry.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/templates/docgen-events.md +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/templates/docgen-metrics.md +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/types.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/urls.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/utils.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/views.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/environments/permissions.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/features/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/features/multivariate/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/features/multivariate/serializers.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/features/serializers.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/features/versioning/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/features/versioning/serializers.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/gunicorn/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/gunicorn/conf.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/gunicorn/constants.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/gunicorn/logging.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/gunicorn/metrics.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/gunicorn/metrics_server.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/gunicorn/middleware.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/gunicorn/processors.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/gunicorn/utils.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/lint_tests.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/migrations/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/migrations/helpers/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/migrations/helpers/postgres_helpers.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/organisations/permissions.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/projects/permissions.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/prometheus/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/prometheus/utils.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/py.typed +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/test_tools/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/test_tools/plugin.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/test_tools/types.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/test_tools/utils.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/types.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/flagsmith_schemas/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/flagsmith_schemas/api.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/flagsmith_schemas/constants.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/flagsmith_schemas/py.typed +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/flagsmith_schemas/pydantic_types.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/flagsmith_schemas/types.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/flagsmith_schemas/utils.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/flagsmith_schemas/validators.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/admin.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/apps.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/constants.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/exceptions.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/health.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/managers.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/metrics.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/0001_initial.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/0002_healthcheckmodel.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/0003_add_completed_to_task.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/0004_recreate_task_indexes.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/0005_update_conditional_index_conditions.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/0006_auto_20230221_0802.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/0007_add_is_locked.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/0008_add_get_task_to_process_function.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/0009_add_recurring_task_run_first_run_at.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/0010_task_priority.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/0011_add_priority_to_get_tasks_to_process.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/0012_add_locked_at_and_timeout.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/0013_add_last_picked_at.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/0014_add_trace_context.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/0015_add_is_disabled.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/sql/0008_get_recurring_tasks_to_process.sql +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/sql/0008_get_tasks_to_process.sql +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/sql/0011_get_tasks_to_process.sql +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/sql/0012_get_recurringtasks_to_process.sql +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/sql/0013_get_recurringtasks_to_process.sql +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/sql/0015_get_recurringtasks_to_process.sql +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/sql/__init__.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/models.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/monitoring.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/processor.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/py.typed +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/routers.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/serializers.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/task_registry.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/task_run_method.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/tasks.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/threads.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/types.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/urls.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/utils.py +0 -0
- {flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/views.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flagsmith-common
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.14.0
|
|
4
4
|
Summary: Flagsmith's common library
|
|
5
5
|
Author: Matthew Elwell, Gagan Trivedi, Kim Gustyr, Zach Aysan, Francesco Lo Franco, Rodrigo López Dato, Evandro Myller, Wadii Zaim
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -341,6 +341,14 @@ class Identity(TypedDict):
|
|
|
341
341
|
"""List of traits associated with this identity."""
|
|
342
342
|
django_id: NotRequired[DynamoInt | None]
|
|
343
343
|
"""Unique identifier for the identity in Core. If identity created via Core's `edge-identities` API, this can be missing or `None`."""
|
|
344
|
+
dashboard_alias: NotRequired[str | None]
|
|
345
|
+
"""Human-friendly alias for the identity, shown in the dashboard."""
|
|
346
|
+
system_traits: NotRequired[dict[str, DynamoContextValue] | None]
|
|
347
|
+
"""System-owned traits keyed by trait key, written by Core (e.g. cohort membership); not user data.
|
|
348
|
+
|
|
349
|
+
Merged over `identity_traits` for flag evaluation and analytics — on a key clash, the system value wins.
|
|
350
|
+
An attribute stored as `NULL` counts as absent.
|
|
351
|
+
"""
|
|
344
352
|
|
|
345
353
|
|
|
346
354
|
class Environment(
|
|
@@ -4,6 +4,7 @@ from datetime import datetime, time, timedelta
|
|
|
4
4
|
from threading import Thread
|
|
5
5
|
|
|
6
6
|
from django.conf import settings
|
|
7
|
+
from django.db import connections
|
|
7
8
|
from django.db.transaction import on_commit
|
|
8
9
|
from django.utils import timezone
|
|
9
10
|
from opentelemetry import propagate
|
|
@@ -121,7 +122,14 @@ class TaskHandler(typing.Generic[TaskParameters]):
|
|
|
121
122
|
) -> None:
|
|
122
123
|
kwargs = kwargs or {}
|
|
123
124
|
_validate_inputs(*args, **kwargs)
|
|
124
|
-
|
|
125
|
+
|
|
126
|
+
def _run() -> None:
|
|
127
|
+
try:
|
|
128
|
+
self.unwrapped(*args, **kwargs)
|
|
129
|
+
finally:
|
|
130
|
+
connections.close_all()
|
|
131
|
+
|
|
132
|
+
thread = Thread(target=_run, daemon=True)
|
|
125
133
|
|
|
126
134
|
def _start() -> None:
|
|
127
135
|
logger.info(
|
|
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-3.13.1 → flagsmith_common-3.14.0}/src/common/core/management/commands/__init__.py
RENAMED
|
File without changes
|
{flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/management/commands/docgen.py
RENAMED
|
File without changes
|
{flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/management/commands/start.py
RENAMED
|
File without changes
|
{flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/management/commands/waitfordb.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/templates/docgen-events.md
RENAMED
|
File without changes
|
{flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/core/templates/docgen-metrics.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/features/multivariate/__init__.py
RENAMED
|
File without changes
|
{flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/features/multivariate/serializers.py
RENAMED
|
File without changes
|
|
File without changes
|
{flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/features/versioning/__init__.py
RENAMED
|
File without changes
|
{flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/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
|
|
File without changes
|
|
File without changes
|
{flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/common/migrations/helpers/__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
|
|
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-3.13.1 → flagsmith_common-3.14.0}/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
|
{flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/src/task_processor/migrations/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flagsmith_common-3.13.1 → flagsmith_common-3.14.0}/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
|