Skip to content

Commit

Permalink
Merge branch 'datahub-project:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored Dec 11, 2024
2 parents b4c4155 + e6cc676 commit bb6378f
Show file tree
Hide file tree
Showing 254 changed files with 13,862 additions and 1,309 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/airflow-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ jobs:
!**/binary/**
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: .
directory: ./build/coverage-reports/
fail_ci_if_error: false
flags: airflow,airflow-${{ matrix.extra_pip_extras }}
name: pytest-airflow-${{ matrix.python-version }}-${{ matrix.extra_pip_requirements }}
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,16 @@ jobs:
!**/binary/**
- name: Ensure codegen is updated
uses: ./.github/actions/ensure-codegen-updated
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./build/coverage-reports/
fail_ci_if_error: false
flags: ${{ matrix.timezone }}
name: ${{ matrix.command }}
verbose: true

quickstart-compose-validation:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dagster-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ jobs:
**/junit.*.xml
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: .
directory: ./build/coverage-reports/
fail_ci_if_error: false
flags: dagster-${{ matrix.python-version }}-${{ matrix.extraPythonRequirement }}
name: pytest-dagster
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gx-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ jobs:
**/junit.*.xml
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: .
directory: ./build/coverage-reports/
fail_ci_if_error: false
flags: gx-${{ matrix.python-version }}-${{ matrix.extraPythonRequirement }}
name: pytest-gx
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/metadata-ingestion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ jobs:
!**/binary/**
- name: Upload coverage to Codecov
if: ${{ always() && matrix.python-version == '3.10' }}
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: .
directory: ./build/coverage-reports/
fail_ci_if_error: false
flags: pytest-${{ matrix.command }}
name: pytest-${{ matrix.command }}
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/metadata-io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ jobs:
!**/binary/**
- name: Ensure codegen is updated
uses: ./.github/actions/ensure-codegen-updated
- name: Upload coverage to Codecov
if: ${{ always()}}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./build/coverage-reports/
fail_ci_if_error: false
name: metadata-io-test
verbose: true

event-file:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prefect-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ jobs:
!**/binary/**
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: .
directory: ./build/coverage-reports/
fail_ci_if_error: false
flags: prefect,prefect-${{ matrix.extra_pip_extras }}
name: pytest-prefect-${{ matrix.python-version }}
Expand Down
10 changes: 9 additions & 1 deletion datahub-frontend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ plugins {
id 'org.gradle.playframework'
}

apply from: "../gradle/versioning/versioning.gradle"
apply from: '../gradle/versioning/versioning.gradle'
apply from: './play.gradle'
apply from: '../gradle/coverage/java-coverage.gradle'

ext {
docker_repo = 'datahub-frontend-react'
Expand All @@ -18,6 +19,13 @@ java {
}
}

test {
jacoco {
// jacoco instrumentation is failing when dealing with code of this dependency, excluding it.
excludes = ["com/gargoylesoftware/**"]
}
}

model {
// Must specify the dependency here as "stage" is added by rule based model.
tasks.myTar {
Expand Down
42 changes: 42 additions & 0 deletions datahub-web-react/.storybook/DocTemplate.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import React from 'react';

import { ThemeProvider } from 'styled-components';
import { GlobalStyle } from './styledComponents';

import { Meta, Title, Subtitle, Description, Primary, Controls, Stories } from '@storybook/blocks';
import { CodeBlock } from '../src/alchemy-components/.docs/mdx-components';

{/*
* 👇 The isTemplate property is required to tell Storybook that this is a template
* See https://storybook.js.org/docs/api/doc-block-meta
* to learn how to use
*/}

<Meta isTemplate />

<ThemeProvider theme={{}}>
<GlobalStyle />

<Title />

<Subtitle />

<div className="docsDescription">
<Description />
</div>

<br />

### Import

<CodeBlock />

<br/>

### Customize

<Primary />
<Controls />

<Stories />
</ThemeProvider>
25 changes: 25 additions & 0 deletions datahub-web-react/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Docs for badges: https://storybook.js.org/addons/@geometricpanda/storybook-addon-badges

export default {
framework: '@storybook/react-vite',
features: {
buildStoriesJson: true,
},
core: {
disableTelemetry: true,
},
stories: [
'../src/alchemy-components/.docs/*.mdx',
'../src/alchemy-components/components/**/*.stories.@(js|jsx|mjs|ts|tsx)'
],
addons: [
'@storybook/addon-onboarding',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-links',
'@geometricpanda/storybook-addon-badges',
],
typescript: {
reactDocgen: 'react-docgen-typescript',
},
}
33 changes: 33 additions & 0 deletions datahub-web-react/.storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<style type="text/css">
/* Regular */
@font-face {
font-family: 'Mulish';
font-style: normal;
font-weight: 400;
src: url('../src/fonts/Mulish-Regular.ttf') format('truetype');
}

/* Medium */
@font-face {
font-family: 'Mulish';
font-style: normal;
font-weight: 500;
src: url('../src/fonts/Mulish-Medium.ttf') format('truetype');
}

/* SemiBold */
@font-face {
font-family: 'Mulish';
font-style: normal;
font-weight: 600;
src: url('../src/fonts/Mulish-SemiBold.ttf') format('truetype');
}

/* Bold */
@font-face {
font-family: 'Mulish';
font-style: normal;
font-weight: 700;
src: url('../src/fonts/Mulish-Bold.ttf') format('truetype');
}
</style>
15 changes: 15 additions & 0 deletions datahub-web-react/.storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import './storybook-theme.css';

import { addons } from '@storybook/manager-api';
import acrylTheme from './storybook-theme.js';

// Theme setup
addons.setConfig({
theme: acrylTheme,
});

// Favicon
const link = document.createElement('link');
link.setAttribute('rel', 'shortcut icon');
link.setAttribute('href', 'https://www.acryldata.io/icons/favicon.ico');
document.head.appendChild(link);
33 changes: 33 additions & 0 deletions datahub-web-react/.storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<style type="text/css">
/* Regular */
@font-face {
font-family: 'Mulish';
font-style: normal;
font-weight: 400;
src: url('../src/fonts/Mulish-Regular.ttf') format('truetype');
}

/* Medium */
@font-face {
font-family: 'Mulish';
font-style: normal;
font-weight: 500;
src: url('../src/fonts/Mulish-Medium.ttf') format('truetype');
}

/* SemiBold */
@font-face {
font-family: 'Mulish';
font-style: normal;
font-weight: 600;
src: url('../src/fonts/Mulish-SemiBold.ttf') format('truetype');
}

/* Bold */
@font-face {
font-family: 'Mulish';
font-style: normal;
font-weight: 700;
src: url('../src/fonts/Mulish-Bold.ttf') format('truetype');
}
</style>
84 changes: 84 additions & 0 deletions datahub-web-react/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
import './storybook-theme.css';
// FYI: import of antd styles required to show components based on it correctly
import 'antd/dist/antd.css';

import { BADGE, defaultBadgesConfig } from '@geometricpanda/storybook-addon-badges';
import DocTemplate from './DocTemplate.mdx';

const preview = {
tags: ['!dev', 'autodocs'],
parameters: {
previewTabs: {
'storybook/docs/panel': { index: -1 },
},
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
options: {
storySort: {
method: 'alphabetical',
order: [
// Order of Docs Pages
'Introduction',
'Style Guide',
'Design Tokens',
'Style Utilities',
'Icons',

// Order of Components
'Layout',
'Forms',
'Data Display',
'Feedback',
'Typography',
'Overlay',
'Disclosure',
'Navigation',
'Media',
'Other',
],
locales: '',
},
},
docs: {
page: DocTemplate,
toc: {
disable: false,
},
docs: {
source: {
format: true,
},
},
},

// Reconfig the premade badges with better titles
badgesConfig: {
stable: {
...defaultBadgesConfig[BADGE.STABLE],
title: 'Stable',
tooltip: 'This component is stable but may have frequent changes. Use at own discretion.',
},
productionReady: {
...defaultBadgesConfig[BADGE.STABLE],
title: 'Production Ready',
tooltip: 'This component is production ready and has been tested in a production environment.',
},
WIP: {
...defaultBadgesConfig[BADGE.BETA],
title: 'WIP',
tooltip: 'This component is a work in progress and may not be fully functional or tested.',
},
readyForDesignReview: {
...defaultBadgesConfig[BADGE.NEEDS_REVISION],
title: 'Ready for Design Review',
tooltip: 'This component is ready for design review and feedback.',
},
},
},
};

export default preview;
1 change: 1 addition & 0 deletions datahub-web-react/.storybook/storybook-logo.svg
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 bb6378f

Please sign in to comment.