def get_all_by_incident_id(*, db_session, incident_id: int) -> List[Optional[Task]]:
    'Get all tasks by incident id.'
    return db_session.query(Task).filter((Task.incident_id == incident_id))
Get all tasks by incident id.
def get_all_by_incident_id(*, db_session, incident_id: int) -> List[Optional[Task]]:
    
    return db_session.query(Task).filter((Task.incident_id == incident_id))