Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

(perf): Adding url param to http request #64

Merged
merged 2 commits into from
Jun 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/testlist/tcs-detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { EmptyImg } from "../../../static/empty.png"

export interface TcsDetailProps {
close?: () => void
tc: string
tc: string | null
}

const useStyles = makeStyles(() => ({
Expand Down
8 changes: 4 additions & 4 deletions src/components/testlist/tcs-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ import {navigate} from "gatsby";
import { POLLING_INTERVAL } from "../../constants";

export interface TestTabProps {
app: string
app: string | null
refetch: () => void
tc: string
setTc: React.Dispatch<React.SetStateAction<string>>
index:number
tc: string | null
setTc: React.Dispatch<React.SetStateAction<string | null>>
index:number | null
}

export interface TcRow {
Expand Down
2 changes: 1 addition & 1 deletion src/components/testlist/test-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function TestList() {
aria-label="Vertical tabs endpoints"
className={classes.tabs}>
{[...data.apps].map((e, i) => (
<CustomTab key={e.id}onClick={()=>{setTc("");navigate(`?index=${i}`)}} label={<React.Fragment>
<CustomTab key={e.id} onClick={()=>{setTc("");navigate(`?index=${i}`)}} label={<React.Fragment>
<Link to={`${e.id}`} style={{ textDecoration: 'none' }}>
<Grid container >
<Typography className={classes.url}>{e.id}</Typography>
Expand Down
3 changes: 0 additions & 3 deletions src/components/testrun/testrun-detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ export default function TestRunDetail(props: TestRunDetailProps) {
setValue(newValue)
}

// @ts-ignore
// @ts-ignore
// @ts-ignore
return (
<React.Fragment>
<SEO title="Test Run Details" />
Expand Down
5 changes: 5 additions & 0 deletions src/services/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ query getRecentTestRuns($id : String) {
req {
protoMajor
protoMinor
url
urlParam {
key
value
Expand Down Expand Up @@ -133,6 +134,7 @@ query getTc ($id : String!) {
httpReq {
protoMajor
protoMinor
url
urlParam {
key
value
Expand Down Expand Up @@ -192,6 +194,7 @@ query getTc ($app : String!) {
protoMajor
protoMinor
method
url
}
httpResp {
statusCode
Expand All @@ -217,6 +220,7 @@ query getTc ($app : String!) {
httpReq {
protoMajor
protoMinor
url
urlParam {
key
value
Expand Down Expand Up @@ -379,6 +383,7 @@ export interface HttpReq {
protoMajor?: number
protoMinor?: number
urlParam?: KV[]
url?: string
header?: Header[]
method?: Method
body?: string
Expand Down