From 535394114061c97112704ae3955c89857db459f9 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Thu, 18 Nov 2021 23:06:34 +0100 Subject: [PATCH 1/2] Disable users on items for now --- .../Todo.Core/Application/Queries/Todos/GetTodoByIdQuery.cs | 4 ++-- src/client/src/components/todos/todoItem.tsx | 3 +++ src/client/src/core/entities/todo.tsx | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/backend/server/src/Todo.Core/Application/Queries/Todos/GetTodoByIdQuery.cs b/src/backend/server/src/Todo.Core/Application/Queries/Todos/GetTodoByIdQuery.cs index 7653ab4..51923a0 100644 --- a/src/backend/server/src/Todo.Core/Application/Queries/Todos/GetTodoByIdQuery.cs +++ b/src/backend/server/src/Todo.Core/Application/Queries/Todos/GetTodoByIdQuery.cs @@ -24,8 +24,8 @@ public record GetTodoByIdQuery([Required] string TodoId) : IRequest = (props) => { {props.todo.description && (
)} + {!props.todo.authorId && ( +
+ )}
{props.displayProject && props.todo.project && (
diff --git a/src/client/src/core/entities/todo.tsx b/src/client/src/core/entities/todo.tsx index b2204f6..4d60ca3 100644 --- a/src/client/src/core/entities/todo.tsx +++ b/src/client/src/core/entities/todo.tsx @@ -12,6 +12,7 @@ export interface Todo { description?: string; status: StatusState; project?: string; + authorId?: string; } export const asTodo = (item: Todo): Todo => { -- 2.45.2 From 71ab8706cdbe592ccf5bdb4659c06a473dc56499 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Thu, 18 Nov 2021 23:08:43 +0100 Subject: [PATCH 2/2] Disabled drone --- .drone.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index f84d568..0000000 --- a/.drone.yml +++ /dev/null @@ -1,17 +0,0 @@ -kind: pipeline -name: default - -steps: -- name: apply ansible production - image: plugins/ansible:latest - settings: - playbook: deployment/todo-setup.yml - inventory: deployment/prod/hosts - galaxy: deployment/requirements.yml - private_key: - from_secret: ansible_private_key - verbose: 3 - when: - event: - - push - -- 2.45.2