From 774bae6d432c13cfa0de3ddc2f111927743243fe Mon Sep 17 00:00:00 2001 From: Sascha Date: Thu, 22 Apr 2021 14:02:43 +0200 Subject: Replace occurrences of humanId with the full Id Unless an ID must be shorted for user convenience, the full id should be used to prevent collisions. --- webui/src/pages/identity/BugList.tsx | 6 +++--- webui/src/pages/identity/Identity.tsx | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'webui/src/pages/identity') diff --git a/webui/src/pages/identity/BugList.tsx b/webui/src/pages/identity/BugList.tsx index c7994827..fbddb0fe 100644 --- a/webui/src/pages/identity/BugList.tsx +++ b/webui/src/pages/identity/BugList.tsx @@ -24,14 +24,14 @@ const useStyles = makeStyles((theme) => ({ })); type Props = { - humanId: string; + id: string; }; -function BugList({ humanId }: Props) { +function BugList({ id }: Props) { const classes = useStyles(); const { loading, error, data } = useGetBugsByUserQuery({ variables: { - query: 'author:' + humanId + ' sort:creation', + query: 'author:' + id + ' sort:creation', }, }); diff --git a/webui/src/pages/identity/Identity.tsx b/webui/src/pages/identity/Identity.tsx index 5bfc87c0..5170eeea 100644 --- a/webui/src/pages/identity/Identity.tsx +++ b/webui/src/pages/identity/Identity.tsx @@ -51,9 +51,9 @@ const Identity = ({ identity }: Props) => { const { loading, error, data } = useGetUserStatisticQuery({ variables: { - authorQuery: 'author:' + user?.humanId, - participantQuery: 'participant:' + user?.humanId, - actionQuery: 'actor:' + user?.humanId, + authorQuery: 'author:' + user?.id, + participantQuery: 'participant:' + user?.id, + actionQuery: 'actor:' + user?.id, }, }); @@ -111,7 +111,7 @@ const Identity = ({ identity }: Props) => {

Statistics

@@ -120,7 +120,7 @@ const Identity = ({ identity }: Props) => { @@ -129,7 +129,7 @@ const Identity = ({ identity }: Props) => { -- cgit