-
+
+ {{ project?.report_incident_instructions }}
+
+
If you suspect an incident and need help, please fill out this form to the best of your
abilities.
@@ -35,7 +38,11 @@
+ Report incident card settings
+
+
+
+
+
+
+
+
+
@@ -207,6 +238,9 @@ export default {
"selected.storage_use_title",
"selected.allow_self_join",
"selected.select_commander_visibility",
+ "selected.report_incident_instructions",
+ "selected.report_incident_title_hint",
+ "selected.report_incident_description_hint",
"dialogs.showCreateEdit",
]),
},
diff --git a/src/dispatch/tag/service.py b/src/dispatch/tag/service.py
index 867d33c516d4..e0c6439cc0ea 100644
--- a/src/dispatch/tag/service.py
+++ b/src/dispatch/tag/service.py
@@ -1,11 +1,12 @@
from typing import Optional
+
from pydantic.error_wrappers import ErrorWrapper, ValidationError
from dispatch.exceptions import NotFoundError
from dispatch.project import service as project_service
from dispatch.tag_type import service as tag_type_service
-from .models import Tag, TagCreate, TagUpdate, TagRead
+from .models import Tag, TagCreate, TagRead, TagUpdate
def get(*, db_session, tag_id: int) -> Optional[Tag]:
@@ -23,7 +24,7 @@ def get_by_name(*, db_session, project_id: int, name: str) -> Optional[Tag]:
)
-def get_by_name_or_raise(*, db_session, project_id: int, tag_in=TagRead) -> TagRead:
+def get_by_name_or_raise(*, db_session, project_id: int, tag_in: TagRead) -> TagRead:
"""Returns the tag specified or raises ValidationError."""
tag = get_by_name(db_session=db_session, project_id=project_id, name=tag_in.name)
diff --git a/src/dispatch/tag_type/service.py b/src/dispatch/tag_type/service.py
index 05b62a3ab03e..7aeff15e8f63 100644
--- a/src/dispatch/tag_type/service.py
+++ b/src/dispatch/tag_type/service.py
@@ -1,8 +1,8 @@
from typing import Optional
from pydantic.error_wrappers import ErrorWrapper, ValidationError
-from dispatch.exceptions import NotFoundError
+from dispatch.exceptions import NotFoundError
from dispatch.project import service as project_service
from .models import TagType, TagTypeCreate, TagTypeRead, TagTypeUpdate
@@ -33,7 +33,7 @@ def get_storage_tag_type_for_project(*, db_session, project_id) -> TagType | Non
)
-def get_by_name_or_raise(*, db_session, project_id: int, tag_type_in=TagTypeRead) -> TagType:
+def get_by_name_or_raise(*, db_session, project_id: int, tag_type_in: TagTypeRead) -> TagType:
"""Returns the tag_type specified or raises ValidationError."""
tag_type = get_by_name(db_session=db_session, project_id=project_id, name=tag_type_in.name)
@@ -56,6 +56,11 @@ def get_all(*, db_session):
return db_session.query(TagType)
+def get_all_by_project(*, db_session, project_id: int):
+ """Gets all tag types by project."""
+ return db_session.query(TagType).filter(TagType.project_id == project_id)
+
+
def create(*, db_session, tag_type_in: TagTypeCreate) -> TagType:
"""Creates a new tag type."""
project = project_service.get_by_name_or_raise(
diff --git a/src/dispatch/workflow/service.py b/src/dispatch/workflow/service.py
index 8a4d47b3a1eb..8161fe20ed85 100644
--- a/src/dispatch/workflow/service.py
+++ b/src/dispatch/workflow/service.py
@@ -1,10 +1,9 @@
from typing import List, Optional
+from pydantic.error_wrappers import ErrorWrapper, ValidationError
from sqlalchemy.orm import Session
from sqlalchemy.sql.expression import true
-from pydantic.error_wrappers import ErrorWrapper, ValidationError
-
from dispatch.case import service as case_service
from dispatch.config import DISPATCH_UI_URL
from dispatch.document import service as document_service
@@ -18,12 +17,12 @@
from .models import (
Workflow,
- WorkflowInstance,
WorkflowCreate,
- WorkflowRead,
- WorkflowUpdate,
+ WorkflowInstance,
WorkflowInstanceCreate,
WorkflowInstanceUpdate,
+ WorkflowRead,
+ WorkflowUpdate,
)
@@ -37,7 +36,7 @@ def get_by_name(*, db_session, name: str) -> Optional[Workflow]:
return db_session.query(Workflow).filter(Workflow.name == name).one_or_none()
-def get_by_name_or_raise(*, db_session: Session, workflow_in=WorkflowRead) -> Workflow:
+def get_by_name_or_raise(*, db_session: Session, workflow_in: WorkflowRead) -> Workflow:
workflow = get_by_name(db_session=db_session, name=workflow_in.name)
if not workflow: