Skip to content

Commit

Permalink
Add more of the team and tweak job annotations (#868)
Browse files Browse the repository at this point in the history
We have a [new feature](#861)
to label job status. Making it more accessible to the wider team
  • Loading branch information
ZainRizvi authored Oct 11, 2022
1 parent 21b283e commit 51d8113
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 4 additions & 4 deletions torchci/components/JobAnnotationToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import { useSession } from "next-auth/react";

export enum JobAnnotation {
NULL = "None",
INFRA_FLAKE = "Infra Flake",
TIME_OUT = "Time Out",
SEV = "Sev",
BROKEN_TRUNK = "Broken Trunk",
TEST_FLAKE = "Test Flake",
TEST_FAILURE = "Test Failure",
INFRA_BROKEN = "Broken Infra",
INFRA_FLAKE = "Infra Flake",
NETWORK = "Network Error",
OTHER = "Other"
}

export default function JobAnnotationToggle({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ import { getDynamoClient } from "lib/dynamo";
import { unstable_getServerSession } from "next-auth";
import { authOptions } from "pages/api/auth/[...nextauth]";

export const annotationEditAllowlist = new Set(["4468967", "34172846"]);
// Get number by going to https://api.github.com/users/<username>
// and copying the "id" field
export const annotationEditAllowlist = new Set([
"34172846", // ZainRizvi
"44682903", // clee2000
"475357", // huydhn
"420184", // kit1980
"2453524", // malfet
]);

export default async function handler(
req: NextApiRequest,
Expand Down

1 comment on commit 51d8113

@vercel
Copy link

@vercel vercel bot commented on 51d8113 Oct 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.