Skip to content

Commit

Permalink
Merge branch 'spark-smoke-test-fix-1' of github.com:david-leifker/dat…
Browse files Browse the repository at this point in the history
…ahub into spark-smoke-test-fix-1
  • Loading branch information
david-leifker committed Sep 6, 2023
2 parents f9dbb70 + cd6986f commit 51d8ba8
Show file tree
Hide file tree
Showing 9 changed files with 2,837 additions and 2,758 deletions.
2 changes: 1 addition & 1 deletion datahub-web-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@vx/shape": "^0.0.199",
"@vx/tooltip": "^0.0.199",
"@vx/zoom": "^0.0.199",
"analytics": "^0.7.5",
"analytics": "^0.8.9",
"antd": "4.24.7",
"color-hash": "^2.0.1",
"craco-antd": "^1.19.0",
Expand Down
84 changes: 59 additions & 25 deletions datahub-web-react/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,28 @@
resolved "https://registry.yarnpkg.com/@analytics/amplitude/-/amplitude-0.0.3.tgz#15ccb76094d6f1003979a4f3aa5d3263781bd776"
integrity sha512-VVJWK3rth+Ak3PiyyzLAz/TUsvhToVXJ6ejvtEIggnNE9bwLDVUHak76MeNlBAS/CCW1SzkWcjbKPpYnnn5aLw==

"@analytics/cookie-utils@^0.2.3":
version "0.2.3"
resolved "https://registry.yarnpkg.com/@analytics/cookie-utils/-/cookie-utils-0.2.3.tgz#e6ab923f88d89f7b02da0cfab585ff193977052f"
integrity sha512-RiMAVpSluRbWb2hlT9wMJ0r2l+MUZzScYjY+w2iWRzjOr9Zzzs4tYzJT6Sd94PDz3LzCuf4aGOwS6pkKXTEBLw==
"@analytics/cookie-utils@^0.2.12":
version "0.2.12"
resolved "https://registry.yarnpkg.com/@analytics/cookie-utils/-/cookie-utils-0.2.12.tgz#acc38dd76ead968050776fb8e57e571e6d37cbc7"
integrity sha512-2h/yuIu3kmu+ZJlKmlT6GoRvUEY2k1BbQBezEv5kGhnn9KpmzPz715Y3GmM2i+m7Y0QmBdVUoA260dQZkofs2A==
dependencies:
"@analytics/global-storage-utils" "^0.1.7"

"@analytics/core@^0.12.7":
version "0.12.7"
resolved "https://registry.yarnpkg.com/@analytics/core/-/core-0.12.7.tgz#118b25f1753796a7c73ffabd4b789219d511e050"
integrity sha512-etmIPCoxWLoUZ/o1o2zvIk4cdVHa8I1xUQtTuLA+YXQ4SsFbm75ZoMXJBqWrNSENpqCJgoL6hizl5uTbkNN+1Q==
dependencies:
"@analytics/global-storage-utils" "^0.1.7"
"@analytics/type-utils" "^0.6.2"
analytics-utils "^1.0.12"

"@analytics/core@^0.10.5":
version "0.10.5"
resolved "https://registry.yarnpkg.com/@analytics/core/-/core-0.10.5.tgz#655f62a77e2290750439cfcd76a840e13ca3c480"
integrity sha512-R2W8ybinHXVnWeVLsvI/+ukHzgCWSRT7EoIi6afbWcAsotneFE6vwLwGAKbWIdnGITl1ZaYU6i6wquF6nfF9sQ==
"@analytics/global-storage-utils@^0.1.7":
version "0.1.7"
resolved "https://registry.yarnpkg.com/@analytics/global-storage-utils/-/global-storage-utils-0.1.7.tgz#c6a12eb133a6e44101b7c3529c82e3e89ac9ce46"
integrity sha512-V+spzGLZYm4biZT4uefaylm80SrLXf8WOTv9hCgA46cLcyxx3LD4GCpssp1lj+RcWLl/uXJQBRO4Mnn/o1x6Gw==
dependencies:
analytics-utils "^0.4.4"
"@analytics/type-utils" "^0.6.2"

"@analytics/google-analytics@^0.5.2":
version "0.5.2"
Expand All @@ -34,17 +45,40 @@
dependencies:
universal-analytics "^0.4.20"

"@analytics/localstorage-utils@^0.1.10":
version "0.1.10"
resolved "https://registry.yarnpkg.com/@analytics/localstorage-utils/-/localstorage-utils-0.1.10.tgz#8e9b03604e79a530e9a5ab6748c8ceb96153b95c"
integrity sha512-uJS+Jp1yLG5VFCgA5T82ZODYBS0xuDQx0NtAZrgbqt9j51BX3TcgmOez5LVkrUNu/lpbxjCLq35I4TKj78VmOQ==
dependencies:
"@analytics/global-storage-utils" "^0.1.7"

"@analytics/mixpanel@^0.3.1":
version "0.3.1"
resolved "https://registry.yarnpkg.com/@analytics/mixpanel/-/mixpanel-0.3.1.tgz#d14264774302b1b2039115ebe3d5dbe838376081"
integrity sha512-zYtzBUdcza/tAT1if6CN0s+BAqtrA2k17WoMFfi6nrLYEj8V60h/o3l+6RUDyIfIg1GkoUhiAJVxJvxW+CMnCw==

"@analytics/storage-utils@^0.2.5":
version "0.2.5"
resolved "https://registry.yarnpkg.com/@analytics/storage-utils/-/storage-utils-0.2.5.tgz#bc82a1b5dea8e47ae18718aae687c3408ae7c504"
integrity sha512-RJdKjR4O86eB5fIfApFfhN8Be/Q709DQiRA7UyS0Ymo6w+usnPPxpm6GaKHVop5CIn3vtlMuUxRA4qZhhBrfMw==
"@analytics/session-storage-utils@^0.0.7":
version "0.0.7"
resolved "https://registry.yarnpkg.com/@analytics/session-storage-utils/-/session-storage-utils-0.0.7.tgz#e355c60b14d4fbcf20983e5cfcb7cb838b4c57ab"
integrity sha512-PSv40UxG96HVcjY15e3zOqU2n8IqXnH8XvTkg1X43uXNTKVSebiI2kUjA3Q7ESFbw5DPwcLbJhV7GforpuBLDw==
dependencies:
"@analytics/global-storage-utils" "^0.1.7"

"@analytics/storage-utils@^0.4.2":
version "0.4.2"
resolved "https://registry.yarnpkg.com/@analytics/storage-utils/-/storage-utils-0.4.2.tgz#222717832a533a1a2516aa3a22d5db80d14a881b"
integrity sha512-AXObwyVQw9h2uJh1t2hUgabtVxzYpW+7uKVbdHQK80vr3Td5rrmCxrCxarh7HUuAgSDZ0bZWqmYxVgmwKceaLg==
dependencies:
"@analytics/cookie-utils" "^0.2.3"
"@analytics/cookie-utils" "^0.2.12"
"@analytics/global-storage-utils" "^0.1.7"
"@analytics/localstorage-utils" "^0.1.10"
"@analytics/session-storage-utils" "^0.0.7"
"@analytics/type-utils" "^0.6.2"

"@analytics/type-utils@^0.6.2":
version "0.6.2"
resolved "https://registry.yarnpkg.com/@analytics/type-utils/-/type-utils-0.6.2.tgz#60d706603a98a95681d4b1e9726c703fdd541a9e"
integrity sha512-TD+xbmsBLyYy/IxFimW/YL/9L2IEnM7/EoV9Aeh56U64Ify8o27HJcKjo38XY9Tcn0uOq1AX3thkKgvtWvwFQg==

"@ant-design/[email protected]", "@ant-design/colors@^6.0.0":
version "6.0.0"
Expand Down Expand Up @@ -5691,21 +5725,21 @@ alphanum-sort@^1.0.0:
resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3"
integrity sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=

analytics-utils@^0.4.4:
version "0.4.4"
resolved "https://registry.yarnpkg.com/analytics-utils/-/analytics-utils-0.4.4.tgz#0fc032c8d3dd8a37f6275ea47f678958204d5bf3"
integrity sha512-MJ6sT28L9RdLIxf/rrcfoDmnfWNxmDlF32q5SKbsce+KRPUPu+BuAp4IUUMgM+nYKWZAsxjI/piFXWqOv97awQ==
analytics-utils@^1.0.12:
version "1.0.12"
resolved "https://registry.yarnpkg.com/analytics-utils/-/analytics-utils-1.0.12.tgz#07bd63471d238e80f42d557fba039365f09c50db"
integrity sha512-WvV2YWgsnXLxaY0QYux0crpBAg/0JA763NmbMVz22jKhMPo7dpTBet8G2IlF7ixTjLDzGlkHk1ZaKqqQmjJ+4w==
dependencies:
"@analytics/storage-utils" "^0.2.5"
"@analytics/type-utils" "^0.6.2"
dlv "^1.1.3"

analytics@^0.7.5:
version "0.7.5"
resolved "https://registry.yarnpkg.com/analytics/-/analytics-0.7.5.tgz#c65deb0605e6db840415c5f371f894d3dc627919"
integrity sha512-qOQuczBCux574jxfksdVMhD0in9iw8L7PEEjZ/h/OEolbY2UBpFXqydOSyNRG+oF28bBlSPaDQDc3g8f2CwhKA==
analytics@^0.8.9:
version "0.8.9"
resolved "https://registry.yarnpkg.com/analytics/-/analytics-0.8.9.tgz#71648ec804fbf01f05abbd0e27bc11049d959786"
integrity sha512-oTbUzQpncMTslakqfK70GgB6bopk5hY+uuekwnadMkDyqNLgcD02KRzteTnO7q5Ko6wDECVtT8xi/6OuAMZykA==
dependencies:
"@analytics/core" "^0.10.5"
"@analytics/storage-utils" "^0.2.5"
"@analytics/core" "^0.12.7"
"@analytics/storage-utils" "^0.4.2"

ansi-colors@^3.0.0:
version "3.2.4"
Expand Down
11 changes: 6 additions & 5 deletions docs-website/generateDocsDir.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { execSync } from "child_process";
import * as matter from "gray-matter";
import matter from "gray-matter";
import * as fs from "fs";
import * as path from "path";
import { Octokit } from "@octokit/rest";
Expand All @@ -26,7 +26,7 @@ const sidebars_text = fs.readFileSync(SIDEBARS_DEF_PATH).toString();
const MyOctokit = Octokit.plugin(retry).plugin(throttling);
const octokit = new MyOctokit({
throttle: {
onRateLimit: (retryAfter, options) => {
onRateLimit: (retryAfter: number, options: any) => {
// Retry twice after rate limit is hit.
if (options.request.retryCount <= 2) {
return true;
Expand Down Expand Up @@ -157,7 +157,7 @@ function get_slug(filepath: string): string {
// There's no need to do this cleanup, but it does make the URLs a bit more aesthetic.

if (filepath in hardcoded_slugs) {
return hardcoded_slugs[filepath];
return hardcoded_slugs[filepath as keyof typeof hardcoded_slugs];
}

let slug = get_id(filepath);
Expand Down Expand Up @@ -218,9 +218,10 @@ function markdown_guess_title(

let title: string;
if (filepath in hardcoded_titles) {
title = hardcoded_titles[filepath];
title = hardcoded_titles[filepath as keyof typeof hardcoded_titles];
if (filepath in hardcoded_descriptions) {
contents.data.description = hardcoded_descriptions[filepath];
contents.data.description =
hardcoded_descriptions[filepath as keyof typeof hardcoded_descriptions];
}
if (hardcoded_hide_title.includes(filepath)) {
contents.data.hide_title = true;
Expand Down
10 changes: 5 additions & 5 deletions docs-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
},
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@docusaurus/core": "^2.1.0",
"@docusaurus/plugin-content-docs": "^2.1.0",
"@docusaurus/plugin-ideal-image": "^2.1.0",
"@docusaurus/preset-classic": "^2.1.0",
"@docusaurus/core": "^2.4.1",
"@docusaurus/plugin-content-docs": "2.4.1",
"@docusaurus/plugin-ideal-image": "^2.4.1",
"@docusaurus/preset-classic": "^2.4.1",
"@markprompt/react": "^0.3.5",
"@octokit/plugin-retry": "^3.0.9",
"@octokit/plugin-throttling": "^3.5.1",
Expand Down Expand Up @@ -55,7 +55,7 @@
},
"devDependencies": {
"prettier": "^2.3.0",
"ts-node": "^9.1.1",
"ts-node": "^10.9.1",
"typescript": "^4.1.5"
}
}
5 changes: 3 additions & 2 deletions docs-website/src/pages/docs/_components/SearchBar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import ExecutionEnvironment from "@docusaurus/ExecutionEnvironment";
import { usePluralForm, useEvent } from "@docusaurus/theme-common";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import { useAllDocsData } from "@docusaurus/plugin-content-docs/client";
import { useSearchPage } from "@docusaurus/theme-common/internal";
import { useSearchQueryString } from '@docusaurus/theme-common';
import {useTitleFormatter} from '@docusaurus/theme-common/internal';
import Translate, { translate } from "@docusaurus/Translate";
import styles from "./search.module.scss";

Expand Down Expand Up @@ -103,7 +104,7 @@ function SearchBar() {
const documentsFoundPlural = useDocumentsFoundPlural();

const docsSearchVersionsHelpers = useDocsSearchVersionsHelpers();
const { searchQuery, setSearchQuery } = useSearchPage()
const [searchQuery, setSearchQuery] = useSearchQueryString();
const initialSearchResultState = {
items: [],
query: null,
Expand Down
Loading

0 comments on commit 51d8ba8

Please sign in to comment.