35d70a7746
- Added a new API endpoint for managing ReconConfigs at /api/configs, including GET, POST, PUT, and a test URL feature. - Implemented a new configuration editor UI at /configs for creating and editing ReconConfigs. - Introduced a new configs list page at /configs to display existing configurations with options to edit. - Updated base HTML template to include a link to the new configs page. - Created stub configuration and authentication models for workspace development. - Added a stub configuration module to handle database configuration without a real database.
37 lines
794 B
Python
37 lines
794 B
Python
"""Fake reference-data enums.
|
|
|
|
The real `app.core.refdata` lives in the production repo. This workspace
|
|
extends it with the enums needed by the config editor.
|
|
"""
|
|
from enum import Enum
|
|
|
|
|
|
class ReconJobStatus(str, Enum):
|
|
CREATED = "created"
|
|
RUNNING = "running"
|
|
COMPLETED = "completed"
|
|
FAILED = "failed"
|
|
CANCELLED = "cancelled"
|
|
|
|
|
|
class ReconConfigStatus(str, Enum):
|
|
DRAFT = "draft"
|
|
PUBLISHED = "published"
|
|
ARCHIVED = "archived"
|
|
|
|
|
|
class ReconPatterns(str, Enum):
|
|
ONE_TO_ONE = "one_to_one"
|
|
MANY_TO_ONE = "many_to_one"
|
|
ONE_TO_MANY = "one_to_many"
|
|
POSITIONAL = "positional"
|
|
|
|
|
|
class ProfileFields(str, Enum):
|
|
ROW_COUNT = "row_count"
|
|
NULL_COUNT = "null_count"
|
|
DISTINCT_COUNT = "distinct_count"
|
|
SUM = "sum"
|
|
MIN = "min"
|
|
MAX = "max"
|