mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-03-02 18:10:36 +00:00
* Adding dependencies * Disconnect from /v1/auths for auth list. hardcoded for now. * Revert changes * WIP * Getting hardcoded v2 auths into the frontend * Better url for v2 oauth * Pass the auth token from the frontend, don't verify token to start the auth process * Manually verify the token from the querystring * WIP * WIP * WIP, refactor SPIFF_SECRET handling, move dependencies * Construct remote_app * WIP * WIP * WIP * WIP * Ugly but getting the grant screen * WIP * WIP * Github oauth ok * Verify token, save access token * Let secret name work with regex * Getting bin_pyl to pass * New component * Load up the current config in an editor * Getting bin_pyl to pass * End point to update auth config * Linting * Adding configuration model * Adding configuration model * Prep to read config from db * Read config from the db * Save/reload poor man's styling * Getting bin_pyl to pass * Getting bin_pyl to pass * Getting bin_pyl to pass * Better handling of invalid json * Getting bin_pyl to pass
93 lines
3.4 KiB
Python
93 lines
3.4 KiB
Python
"""Loads and sets up all database models for SQLAlchemy.
|
|
|
|
autoflake8 will remove these lines without the noqa comment
|
|
|
|
NOTE: make sure this file is ignored by reorder-python-imports since
|
|
some models need to be loaded before others for relationships and to
|
|
avoid circular imports
|
|
"""
|
|
|
|
# unused imports are needed for SQLAlchemy to load the models
|
|
# ruff: noqa: F401
|
|
|
|
# we do not want to sort imports in this file, since the order matters
|
|
# ruff: noqa: I001
|
|
|
|
from spiffworkflow_backend.models.db import add_listeners
|
|
|
|
# must load these before UserModel and GroupModel for relationships
|
|
from spiffworkflow_backend.models.user_group_assignment import (
|
|
UserGroupAssignmentModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.principal import PrincipalModel # noqa: F401
|
|
|
|
|
|
from spiffworkflow_backend.models.human_task import HumanTaskModel # noqa: F401
|
|
from spiffworkflow_backend.models.spec_reference import (
|
|
SpecReferenceCache,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.process_caller import (
|
|
ProcessCallerCacheModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.message_instance import (
|
|
MessageInstanceModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.message_triggerable_process_model import (
|
|
MessageTriggerableProcessModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.permission_assignment import (
|
|
PermissionAssignmentModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.permission_target import (
|
|
PermissionTargetModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.process_instance import (
|
|
ProcessInstanceModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.process_instance_report import (
|
|
ProcessInstanceReportModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.refresh_token import RefreshTokenModel # noqa: F401
|
|
from spiffworkflow_backend.models.secret_model import SecretModel # noqa: F401
|
|
from spiffworkflow_backend.models.user import UserModel # noqa: F401
|
|
from spiffworkflow_backend.models.group import GroupModel # noqa: F401
|
|
from spiffworkflow_backend.models.process_instance_metadata import (
|
|
ProcessInstanceMetadataModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.process_instance_file_data import (
|
|
ProcessInstanceFileDataModel,
|
|
) # noqa: F401
|
|
|
|
from spiffworkflow_backend.models.bpmn_process import BpmnProcessModel # noqa: F401
|
|
from spiffworkflow_backend.models.bpmn_process_definition import (
|
|
BpmnProcessDefinitionModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.task import TaskModel # noqa: F401
|
|
from spiffworkflow_backend.models.task_definition import (
|
|
TaskDefinitionModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.json_data import JsonDataModel # noqa: F401
|
|
from spiffworkflow_backend.models.bpmn_process_definition_relationship import (
|
|
BpmnProcessDefinitionRelationshipModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.process_instance_queue import (
|
|
ProcessInstanceQueueModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.active_user import (
|
|
ActiveUserModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.process_model_cycle import (
|
|
ProcessModelCycleModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.typeahead import (
|
|
TypeaheadModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.task_draft_data import (
|
|
TaskDraftDataModel,
|
|
) # noqa: F401
|
|
from spiffworkflow_backend.models.configuration import (
|
|
ConfigurationModel,
|
|
) # noqa: F401
|
|
|
|
add_listeners()
|