Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
otenav committed Sep 27, 2024
1 parent 476a7a8 commit c50d853
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 69 deletions.
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
106 changes: 58 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"date-fns": "^3.6.0",
"html-react-parser": "^5.1.10",
"isomorphic-dompurify": "^2.4.0",
"next": "^14.1.3",
"next": "^14.2.13",
"prom-client": "^15.1.2",
"prop-types": "^15.8.1",
"react": "^18.2.0",
Expand Down
10 changes: 0 additions & 10 deletions src/app/(sok)/_components/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,6 @@ export default function Search({ searchResult, aggregations, locations, postcode
<Heading size="small">searchQuery</Heading>
<BodyShort>size: {searchQuery.size}</BodyShort>
<BodyShort>typeof size: {typeof searchQuery.size}</BodyShort>
<BodyShort>typeof has: {typeof searchQuery.has}</BodyShort>
<BodyShort>has("v"): {searchQuery.has("v") ? "true" : "false"}</BodyShort>
<BodyShort>get("v"): {searchQuery.get("v")}</BodyShort>

<Heading size="small">searchQuery.urlSearchParams</Heading>
<BodyShort>size: {searchQuery.urlSearchParams.size}</BodyShort>
<BodyShort>typeof size: {typeof searchQuery.urlSearchParams.size}</BodyShort>
<BodyShort>typeof has: {typeof searchQuery.urlSearchParams.has}</BodyShort>
<BodyShort>has("v"): {searchQuery.urlSearchParams.has("v") ? "true" : "false"}</BodyShort>
<BodyShort>get("v"): {searchQuery.urlSearchParams.get("v")}</BodyShort>
</Box>
)}
<SearchBox aggregations={aggregations} locations={locations} postcodes={postcodes} />
Expand Down
11 changes: 2 additions & 9 deletions src/app/_common/monitoring/callId.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
import { headers } from "next/headers";
import { v4 as uuidv4, validate as uuidValidate } from "uuid";
import { v4 as uuidv4 } from "uuid";

export const NAV_CALL_ID_TAG = "Nav-CallId";

export function getCallId() {
let callId = headers().get(NAV_CALL_ID_TAG);

if (!uuidValidate(callId)) {
callId = uuidv4();
}

return callId;
return uuidv4();
}

0 comments on commit c50d853

Please sign in to comment.