aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webui/src/components/Author.tsx2
-rw-r--r--webui/src/components/BugTitleForm/BugTitleForm.tsx2
-rw-r--r--webui/src/components/Identity/CurrentIdentity.tsx2
-rw-r--r--webui/src/graphql/fragments.graphql1
-rw-r--r--webui/src/pages/identity/BugList.tsx6
-rw-r--r--webui/src/pages/identity/Identity.tsx12
-rw-r--r--webui/src/pages/list/BugRow.tsx2
-rw-r--r--webui/src/pages/new/NewBug.graphql4
-rw-r--r--webui/src/pages/new/NewBugPage.tsx2
9 files changed, 17 insertions, 16 deletions
diff --git a/webui/src/components/Author.tsx b/webui/src/components/Author.tsx
index 272ca5b5..593b5d36 100644
--- a/webui/src/components/Author.tsx
+++ b/webui/src/components/Author.tsx
@@ -15,7 +15,7 @@ type Props = AuthoredFragment & {
const Author = ({ author, ...props }: Props) => {
return (
<Tooltip title={`Goto the ${author.displayName}'s profile.`}>
- <Link {...props} component={RouterLink} to={`/user/${author.humanId}`}>
+ <Link {...props} component={RouterLink} to={`/user/${author.id}`}>
{author.displayName}
</Link>
</Tooltip>
diff --git a/webui/src/components/BugTitleForm/BugTitleForm.tsx b/webui/src/components/BugTitleForm/BugTitleForm.tsx
index 1092b203..2a3c4db0 100644
--- a/webui/src/components/BugTitleForm/BugTitleForm.tsx
+++ b/webui/src/components/BugTitleForm/BugTitleForm.tsx
@@ -90,7 +90,7 @@ function BugTitleForm({ bug }: Props) {
setTitle({
variables: {
input: {
- prefix: bug.humanId,
+ prefix: bug.id,
title: issueTitleInput.value,
},
},
diff --git a/webui/src/components/Identity/CurrentIdentity.tsx b/webui/src/components/Identity/CurrentIdentity.tsx
index 1fd424c1..2d62dcdb 100644
--- a/webui/src/components/Identity/CurrentIdentity.tsx
+++ b/webui/src/components/Identity/CurrentIdentity.tsx
@@ -96,7 +96,7 @@ const CurrentIdentity = () => {
color="inherit"
className={classes.profileLink}
component={RouterLink}
- to={`/user/${user.humanId}`}
+ to={`/user/${user.id}`}
>
Open profile
</Link>
diff --git a/webui/src/graphql/fragments.graphql b/webui/src/graphql/fragments.graphql
index d01c488a..227d00b2 100644
--- a/webui/src/graphql/fragments.graphql
+++ b/webui/src/graphql/fragments.graphql
@@ -16,5 +16,6 @@ fragment authored on Authored {
displayName
avatarUrl
humanId
+ id
}
}
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) => {
<h1 className={classes.header}>Statistics</h1>
<Link
component={RouterLink}
- to={`/?q=author%3A${user?.humanId}+sort%3Acreation`}
+ to={`/?q=author%3A${user?.id}+sort%3Acreation`}
color={'inherit'}
>
<Typography variant="subtitle1">
@@ -120,7 +120,7 @@ const Identity = ({ identity }: Props) => {
</Link>
<Link
component={RouterLink}
- to={`/?q=participant%3A${user?.humanId}+sort%3Acreation`}
+ to={`/?q=participant%3A${user?.id}+sort%3Acreation`}
color={'inherit'}
>
<Typography variant="subtitle1">
@@ -129,7 +129,7 @@ const Identity = ({ identity }: Props) => {
</Link>
<Link
component={RouterLink}
- to={`/?q=actor%3A${user?.humanId}+sort%3Acreation`}
+ to={`/?q=actor%3A${user?.id}+sort%3Acreation`}
color={'inherit'}
>
<Typography variant="subtitle1">
diff --git a/webui/src/pages/list/BugRow.tsx b/webui/src/pages/list/BugRow.tsx
index a1466d63..562149f3 100644
--- a/webui/src/pages/list/BugRow.tsx
+++ b/webui/src/pages/list/BugRow.tsx
@@ -106,7 +106,7 @@ function BugRow({ bug }: Props) {
<TableCell className={classes.cell}>
<BugStatus status={bug.status} className={classes.status} />
<div className={classes.expand}>
- <Link to={'bug/' + bug.humanId}>
+ <Link to={'bug/' + bug.id}>
<div className={classes.bugTitleWrapper}>
<span className={classes.title}>{bug.title}</span>
{bug.labels.length > 0 &&
diff --git a/webui/src/pages/new/NewBug.graphql b/webui/src/pages/new/NewBug.graphql
index 92df016e..ef024e41 100644
--- a/webui/src/pages/new/NewBug.graphql
+++ b/webui/src/pages/new/NewBug.graphql
@@ -1,7 +1,7 @@
mutation newBug($input: NewBugInput!) {
newBug(input: $input) {
bug {
- humanId
+ id
}
}
-} \ No newline at end of file
+}
diff --git a/webui/src/pages/new/NewBugPage.tsx b/webui/src/pages/new/NewBugPage.tsx
index 4dc60e3c..cdec3558 100644
--- a/webui/src/pages/new/NewBugPage.tsx
+++ b/webui/src/pages/new/NewBugPage.tsx
@@ -62,7 +62,7 @@ function NewBugPage() {
},
},
}).then(function (data) {
- const id = data.data?.newBug.bug.humanId;
+ const id = data.data?.newBug.bug.id;
history.push('/bug/' + id);
});
issueTitleInput.value = '';