Skip to content

Commit

Permalink
Fix dependency error
Browse files Browse the repository at this point in the history
Signed-off-by: Tanisha Agarwal <[email protected]>
  • Loading branch information
tanisha-agarwal committed Sep 1, 2022
1 parent 6a40f7f commit 4a5f101
Show file tree
Hide file tree
Showing 7 changed files with 13,751 additions and 50,517 deletions.
6 changes: 3 additions & 3 deletions external/pxl_documentation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,7 @@
"def": {
"name": "class Client",
"declaration": "Client(self, token: str, server_url: str = 'work.withpixie.ai', use_encryption: bool = False, channel_fn: Callable[[str], grpc.Channel] = None, conn_channel_fn: Callable[[str], grpc.aio._base_channel.Channel] = None )",
"docstring": "Client is the main entry point to the Pixie API.\n\nTo setup the client, you need to generate an API token\nand pass it in as the first argument.\nSee: https://docs.px.dev/using-pixie/api-quick-start/\nfor more info."
"docstring": "Client is the main entry point to the Pixie API.\n\nTo setup the client, you need to generate an API token\nand pass it in as the first argument.\nSee: [https://docs.px.dev/using-pixie/api-quick-start/](https://docs.px.dev/using-pixie/api-quick-start/)\nfor more info."
},
"methods": [
{
Expand Down Expand Up @@ -1384,7 +1384,7 @@
"def": {
"name": "class Row",
"declaration": "Row(self, table: pxapi.data._TableStream, data: List[Any])",
"docstring": "Row represents a row of data for a particular table. You can easily access\ndata in the row by using the column name from the associated table.\n\nSpecifically designed to avoid allocation memory for the relation for each row.\n\nExamples:\n \u003e\u003e\u003e tableA = Table(\"a\", relation=((\"cola\",int), (\"colb\", int), (\"colc\", string)))\n \u003e\u003e\u003e row = Row(tableA, [1,2,\"three\"])\n \u003e\u003e\u003e row[\"cola\"]\n 1\n \u003e\u003e\u003e row[\"colb\"]\n 2\n \u003e\u003e\u003e row[\"colc\"]\n \"three\"\n \u003e\u003e\u003e row\n { \"cola\": 1, \"colb\": 2, \"colc\": \"three\" }"
"docstring": "Row represents a row of data for a particular table. You can easily access\ndata in the row by using the column name from the associated table.\n\nSpecifically designed to avoid allocation memory for the relation for each row.\n\nExamples:\n \u003e\u003e\u003e tableA = Table(\"a\", relation=((\"cola\",int), (\"colb\", int), (\"colc\", string)))\n \u003e\u003e\u003e row = Row(tableA, [1,2,\"three\"])\n \u003e\u003e\u003e row[\"cola\"]\n 1\n \u003e\u003e\u003e row[\"colb\"]\n 2\n \u003e\u003e\u003e row[\"colc\"]\n \"three\"\n \u003e\u003e\u003e row\n {`{ \"cola\": 1, \"colb\": 2, \"colc\": \"three\" }`}"
},
"methods": []
},
Expand Down Expand Up @@ -6145,7 +6145,7 @@
{
"name": "redact_pii_best_effort",
"brief": "Make a best effort to redact Personally Identifiable Information (PII).",
"desc": "Replace instances of PII with '\u003cREDACTED_$TYPE\u003e' eg. '\u003cREDACTED_EMAIL\u003e' or '\u003cREDACTED_IPv4\u003e'. Currently, it will (on a best effort basis) redact IP addresses, email addresses, MAC addresses, IMEI numbers, credit card numbers, and IBAN numbers. However, the redaction is not perfect, so it should not be used in a context where privacy needs to be guaranteed.",
"desc": "Replace instances of PII with {`'\u003cREDACTED_$TYPE\u003e'`} eg. {`'\u003cREDACTED_EMAIL\u003e'`} or {`'\u003cREDACTED_IPv4\u003e'`}. Currently, it will (on a best effort basis) redact IP addresses, email addresses, MAC addresses, IMEI numbers, credit card numbers, and IBAN numbers. However, the redaction is not perfect, so it should not be used in a context where privacy needs to be guaranteed.",
"examples": [
{
"value": "```\ndf.redacted = px.redact_pii_best_effort(df.req_body)\n```"
Expand Down
7 changes: 7 additions & 0 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* See: https://www.gatsbyjs.org/docs/browser-apis/
*/
import React from 'react';
import * as ReactDOM from 'react-dom';
import MainThemeProvider from './src/components/mainThemeProvider.tsx';
import './src/global.css';
import SidebarProvider from './src/components/sidebar/sidebarProvider.tsx';
Expand All @@ -30,6 +31,12 @@ import SearchProvider from './src/components/search-context.tsx';
import { processClientEntry, runZoom } from './src/components/image-zoom-modal.plugin.ts';
import TabSwitcherProvider from './src/components/tabSwitcherProvider.tsx';

export const replaceHydrateFunction = () => {
return (element, container, callback) => {
ReactDOM.render(element, container, callback);
};
};

export const onClientEntry = () => {
processClientEntry();
};
Expand Down
16 changes: 0 additions & 16 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,9 @@ const algolia = {
const plugins = [
'gatsby-plugin-sitemap',
'gatsby-plugin-sharp',
'gatsby-plugin-emotion',
'gatsby-plugin-react-helmet',
'gatsby-plugin-material-ui',
'gatsby-plugin-styled-components',
'gatsby-transformer-json',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'external',
path: `${__dirname}/external`,
},
},
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: ['gatsby-remark-images'],
},
},
{
resolve: 'gatsby-plugin-mdx',
options: {
Expand Down Expand Up @@ -167,7 +152,6 @@ const plugins = [
display: 'block',
},
},
'@pauliescanlon/gatsby-mdx-embed',
'gatsby-plugin-remove-serviceworker',
'gatsby-plugin-meta-redirect',
{
Expand Down
Loading

0 comments on commit 4a5f101

Please sign in to comment.