Skip to content

Commit

Permalink
Merge branch 'master' into feat(ingestion/neo4j)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-bartlett authored Nov 5, 2024
2 parents 888b33c + edb87ff commit 1e274ae
Show file tree
Hide file tree
Showing 81 changed files with 1,435 additions and 369 deletions.
4 changes: 2 additions & 2 deletions datahub-graphql-core/src/main/resources/entity.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ type Mutation {
updateERModelRelationship(
"The urn of the ERModelRelationship to update"
urn: String!,
"Input required to updat an existing DataHub View"
"Input required to update an existing DataHub View"
input: ERModelRelationshipUpdateInput!): Boolean

"""
Expand Down Expand Up @@ -795,7 +795,7 @@ type Mutation {
updateView(
"The urn of the View to update"
urn: String!,
"Input required to updat an existing DataHub View"
"Input required to update an existing DataHub View"
input: UpdateViewInput!): DataHubView

"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,6 @@ public void testMCPBatch() throws IOException {
OP_CONTEXT
.getObjectMapper()
.readTree(
"{\"source\":{\"type\":\"datahub-gc\",\"config\":{\"cleanup_expired_tokens\":false,\"truncate_indices\":true,\"dataprocess_cleanup\":{\"retention_days\":10,\"delete_empty_data_jobs\":true,\"delete_empty_data_flows\":true,\"hard_delete_entities\":false,\"keep_last_n\":5},\"soft_deleted_entities_cleanup\":{\"retention_days\":10}}}}"));
"{\"source\":{\"type\":\"datahub-gc\",\"config\":{\"cleanup_expired_tokens\":false,\"truncate_indices\":true,\"dataprocess_cleanup\":{\"retention_days\":10,\"delete_empty_data_jobs\":true,\"delete_empty_data_flows\":true,\"hard_delete_entities\":false,\"keep_last_n\":5},\"soft_deleted_entities_cleanup\":{\"retention_days\":10},\"execution_request_cleanup\":{\"keep_history_min_count\":10,\"keep_history_max_count\":1000,\"keep_history_max_days\":30,\"batch_read_size\":100,\"enabled\":false}}}}"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@
keep_last_n: {{dataprocess_cleanup.keep_last_n}}{{^dataprocess_cleanup.keep_last_n}}5{{/dataprocess_cleanup.keep_last_n}}
soft_deleted_entities_cleanup:
retention_days: {{soft_deleted_entities_cleanup.retention_days}}{{^soft_deleted_entities_cleanup.retention_days}}10{{/soft_deleted_entities_cleanup.retention_days}}
execution_request_cleanup:
keep_history_min_count: {{execution_request_cleanup.keep_history_min_count}}{{^execution_request_cleanup.keep_history_min_count}}10{{/execution_request_cleanup.keep_history_min_count}}
keep_history_max_count: {{execution_request_cleanup.keep_history_max_count}}{{^execution_request_cleanup.keep_history_max_count}}1000{{/execution_request_cleanup.keep_history_max_count}}
keep_history_max_days: {{execution_request_cleanup.keep_history_max_days}}{{^execution_request_cleanup.keep_history_max_days}}30{{/execution_request_cleanup.keep_history_max_days}}
batch_read_size: {{execution_request_cleanup.batch_read_size}}{{^execution_request_cleanup.batch_read_size}}100{{/execution_request_cleanup.batch_read_size}}
enabled: {{execution_request_cleanup.enabled}}{{^execution_request_cleanup.enabled}}false{{/execution_request_cleanup.enabled}}
extraArgs: {}
debugMode: false
executorId: default
headers: {}
headers: {}
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
import React, { useState } from 'react';
import { message, Modal, Button, Form, Input, Typography, Select } from 'antd';
import { useApolloClient } from '@apollo/client';
import TextArea from 'antd/lib/input/TextArea';
import styled from 'styled-components';
import analytics, { EventType, EntityActionType } from '../../../../../analytics';
import { useEntityData } from '../../../EntityContext';
import { EntityType, IncidentSourceType, IncidentState, IncidentType } from '../../../../../../types.generated';
import { INCIDENT_DISPLAY_TYPES, PAGE_SIZE, addActiveIncidentToCache } from '../incidentUtils';
import { useRaiseIncidentMutation } from '../../../../../../graphql/mutations.generated';
import handleGraphQLError from '../../../../../shared/handleGraphQLError';
import { useUserContext } from '../../../../../context/useUserContext';
import { Editor } from '../../Documentation/components/editor/Editor';
import { ANTD_GRAY } from '../../../constants';

const StyledEditor = styled(Editor)`
border: 1px solid ${ANTD_GRAY[4.5]};
`;

type AddIncidentProps = {
open: boolean;
Expand Down Expand Up @@ -112,6 +118,7 @@ export const AddIncidentModal = ({ open, onClose, refetch }: AddIncidentProps) =
open={open}
destroyOnClose
onCancel={handleClose}
width={600}
footer={[
<Button type="text" onClick={handleClose}>
Cancel
Expand Down Expand Up @@ -174,7 +181,17 @@ export const AddIncidentModal = ({ open, onClose, refetch }: AddIncidentProps) =
},
]}
>
<TextArea placeholder="Provide some additional details" />
<StyledEditor
doNotFocus
className="add-incident-description"
onKeyDown={(e) => {
// Preventing the modal from closing when the Enter key is pressed
if (e.key === 'Enter') {
e.preventDefault();
e.stopPropagation();
}
}}
/>
</Form.Item>
</Form>
</Modal>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { useUpdateIncidentStatusMutation } from '../../../../../../graphql/mutat
import { ResolveIncidentModal } from './ResolveIncidentModal';
import handleGraphQLError from '../../../../../shared/handleGraphQLError';
import { MenuItemStyle } from '../../../../view/menu/item/styledComponent';
import MarkdownViewer from '../../../components/legacy/MarkdownViewer';

type Props = {
incident: any;
Expand Down Expand Up @@ -227,7 +228,7 @@ export default function IncidentListItem({ incident, refetch }: Props) {
</TitleContainer>
<DescriptionContainer>
<IncidentDescriptionLabel>Description</IncidentDescriptionLabel>
<IncidentDescriptionText>{incident?.description}</IncidentDescriptionText>
<MarkdownViewer source={incident?.description} />
{incident.status.state === IncidentState.Resolved ? (
<>
<IncidentDescriptionLabel>Resolution Note</IncidentDescriptionLabel>
Expand Down
10 changes: 10 additions & 0 deletions docs-website/adoptionStoriesIndexes.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@
"category": "Financial & Fintech",
"description": "<i>\"We found DataHub to provide excellent coverage for our needs. What we appreciate most about DataHub is <b>its powerful API platform.</b>\"<br /><br /><div style='color: gray;'>— Jean-Pierre Dijcks, Sr. Dir. Product Management at VISA</div></i><br />"
},
{
"name": "Apple",
"slug": "apple",
"link": "https://youtu.be/5eFZuzG4c-s?feature=shared",
"linkType": "video",
"tagline": "How Apple built a solid foundation for observability, governance, and data sharing with DataHub",
"category": "B2B & B2C",
"platform": "cloud",
"description": "Discover how DataHub provides a solid foundation for observability, governance, and data sharing, while we explore its role in managing AI and data metadata."
},
{
"name": "Notion",
"slug": "notion",
Expand Down
4 changes: 2 additions & 2 deletions docs-website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ module.exports = {
// },
// }),
announcementBar: {
id: "announcement-2",
id: "announcement-3",
content:
'<div style="display: flex; justify-content: center; align-items: center;width: 100%;"><!--img src="/img/acryl-logo-white-mark.svg" / --><div style="font-size: .8rem; font-weight: 600; background-color: white; color: #111; padding: 0px 8px; border-radius: 4px; margin-right:12px;">NEW</div><p>Join us at Metadata & AI Summit, Oct. 29 & 30!</p><a href="http://www.acryldata.io/conference?utm_source=datahub_web&utm_medium=metadata_ai_2024&utm_campaign=home_banner" target="_blank" class="button">Register<span> →</span></a></div>',
'<div style="display: flex; justify-content: center; align-items: center;width: 100%;"><!--img src="/img/acryl-logo-white-mark.svg" / --><!--div style="font-size: .8rem; font-weight: 600; background-color: white; color: #111; padding: 0px 8px; border-radius: 4px; margin-right:12px;">NEW</div--><p>Watch Metadata & AI Summit sessions on-demand.</p><a href="https://www.youtube.com/@DataHubProject/videos" target="_blank" class="button">Watch Now<span> →</span></a></div>',
backgroundColor: "#111",
textColor: "#ffffff",
isCloseable: false,
Expand Down
2 changes: 2 additions & 0 deletions docs-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@octokit/plugin-throttling": "^3.5.1",
"@octokit/rest": "^18.6.2",
"@radix-ui/react-visually-hidden": "^1.0.2",
"@servicebell/widget": "^0.1.6",
"@supabase/supabase-js": "^2.33.1",
"@swc/core": "^1.4.2",
"antd": "^5.0.7",
Expand All @@ -47,6 +48,7 @@
"markprompt": "^0.1.7",
"react": "^18.2.0",
"react-dom": "18.2.0",
"react-use-draggable-scroll": "^0.4.7",
"sass": "^1.43.2",
"swc-loader": "^0.2.6",
"swiper": "^11.1.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
flex: 1;
}
.cardLink {
user-select: none;
-webkit-user-drag: none;

color: #000;

&:hover {
Expand Down Expand Up @@ -88,6 +91,8 @@
z-index: 10;
filter: brightness(2);
opacity: .9;
user-select: none;
-webkit-user-drag: none;
}
.cardImageBackground {
position: absolute;
Expand Down
10 changes: 10 additions & 0 deletions docs-website/src/pages/_components/CaseStudy/caseStudyContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ const caseStudyData = [
image: "https://datahubproject.io/img/logos/companies/netflix.png",
link: "https://datahubproject.io/adoption-stories/#netflix",
},
{
title: "A Solid Foundation For Data and AI",
description:
"How Apple built a solid foundation for observability, governance, and data sharing with DataHub.",
tag: "Technology",
backgroundImage:
"https://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Aerial_view_of_Apple_Park_dllu.jpg/2560px-Aerial_view_of_Apple_Park_dllu.jpg",
image: "/img/logos/companies/apple_text.png",
link: "https://datahubproject.io/adoption-stories/#apple",
},
{
title: "Scaling Data Governance",
description:
Expand Down
16 changes: 10 additions & 6 deletions docs-website/src/pages/_components/CaseStudy/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import React from "react";
import React, { useRef } from "react";
import styles from "./case-study.module.scss";
import Link from '@docusaurus/Link'
import { Carousel } from "antd";
import { useDraggable } from "react-use-draggable-scroll";
import caseStudyData from "./caseStudyContent";


const CaseStudy = () => {
const containerRef = useRef(null);

const { events } = useDraggable(containerRef);

return (
<div className={styles.container}>
{/* Section-1 */}
Expand All @@ -15,16 +19,16 @@ const CaseStudy = () => {
<p>Across finance, healthcare, e-commerce, and countless more.</p>
</div>

<div className={styles.card_row}>
<div className={styles.card_row_wrapper} >
<div className={styles.card_row} {...events} ref={containerRef}>
<div className={styles.card_row_wrapper}>
{caseStudyData.map((caseStudy) => (
<div className={styles.card} key={caseStudy.link}>
<a className={styles.cardLink} href={caseStudy.link} style={caseStudy.backgroundImage ? null : {
<a draggable={false} className={styles.cardLink} href={caseStudy.link} style={caseStudy.backgroundImage ? null : {
opacity: .5
}}>
{caseStudy.tag ? <span className={styles.card_tag}>{caseStudy.tag}</span> : null}
<div className={styles.card_image} style={{ backgroundColor: caseStudy.backgroundImage ? null : '#eee' }}>
<img src={caseStudy.image} alt="" />
<img src={caseStudy.image} draggable={false} alt="" />
<div className={styles.cardImageBackground} style={{ backgroundImage: `url(${caseStudy.backgroundImage})` }} />
</div>
<div className={styles.card_heading_div}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,14 @@

.numberContainer {
display: inline-block;
width: 11rem;
width: 12rem;
text-align: right;
}

.numberChange {
display: inline-block;
animation: slideIn 0.5s ease-in-out;
width: 11rem;
width: 12rem;
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@

.quickstart__content {
display: flex;
margin-bottom: 3rem;
margin-bottom: 6rem;
width: 100%;

.quickstart__text {
Expand Down
9 changes: 8 additions & 1 deletion docs-website/src/pages/cloud/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import React, { useEffect, useState } from "react";
import Layout from "@theme/Layout";
import Link from "@docusaurus/Link";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
Expand All @@ -10,8 +10,11 @@ import UnifiedTabs from "./UnifiedTabs";
import FeatureCards from "./FeatureCards";
import Hero from "./Hero";
import DemoForm from "./DemoForm";
import ServiceBell from "@servicebell/widget";
import DemoFormModal from "./DemoFormModal";

const SERVICE_BELL_ID = "00892146e5bc46d98d55ecc2b2fa67e2";

function Home() {
const context = useDocusaurusContext();
const { siteConfig = {} } = context;
Expand All @@ -24,6 +27,10 @@ function Home() {
window.location.replace("/docs");
}

useEffect(() => {
ServiceBell("init", SERVICE_BELL_ID, { hidden: false });
}, []);

return !siteConfig.customFields.isSaas ? (
<Layout
title={'DataHub Cloud - Unify Data Observability, Governance and Discovery'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const Integrations = () => {
</div>
</div>
</div>
<a href="/integrations">See all →</a>
</div>
);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
.container {
display: flex;
flex-direction: column;
>a {
text-decoration: none;
text-align: center;
margin-top: 1rem;
margin-bottom: 1rem;
font-size: 1.25rem;
}

.section_header {
color: var(--primitives-text-tex-subtext, #777E99);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Integrations = () => {
<div className={styles.slide_track}>
{[...Array(1)].map((_, i) => (
<React.Fragment key={i}>
{[1, 2, 3, 4, 5, 6].map((item, index) => (
{[1, 2, 3, 4, 5, 6, 7, 8].map((item, index) => (
<div className={styles.slide} key={index} style={{ backgroundImage: `url(${useBaseUrl(`${integrationsPath}/logo-integration-${item}.png`)})` }}>
</div>
))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,22 @@

.slider {
position: relative;
display: flex;
}

.slide_track {
display: flex;
width: max-content;
width: 80%;
margin: auto;
flex-direction: row;
align-items: center;
justify-content: space-evenly;
}

.slide {
width: 100px;
height: 100px;
margin: auto 3rem;
width: 80px;
height: 80px;
margin: auto 0;
display: flex;
justify-content: space-between;
overflow: hidden;
Expand All @@ -99,9 +103,12 @@
max-width: 100vw;
min-width: auto;
}
.slide_track {
width: 95%;
}
.slide {
width: 80px;
height: 80px;
margin: auto 1rem;
width: 40px;
height: 40px;
margin: auto 0;
}
}
6 changes: 5 additions & 1 deletion docs-website/src/theme/Footer/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import React from "react";
import { useLocation } from "react-router-dom"; // Import useLocation from react-router-dom
import Footer from "@theme-original/Footer";
import MarkpromptHelp from "../../components/MarkpromptHelp";

export default function FooterWrapper(props) {
const location = useLocation(); // Get the current location
const isDocsPage = location.pathname.startsWith("/docs"); // Check if the path starts with /docs

return (
<>
<MarkpromptHelp />
{isDocsPage && <MarkpromptHelp />}
<Footer {...props} />
</>
);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 1e274ae

Please sign in to comment.