Skip to content

Commit

Permalink
Merge branch 'master' into fix-athena-database-is-none
Browse files Browse the repository at this point in the history
  • Loading branch information
bossenti authored Nov 20, 2023
2 parents 4afe238 + 1ad4f96 commit 1223c05
Show file tree
Hide file tree
Showing 20 changed files with 453 additions and 239 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import { OwnershipList } from './OwnershipList';
const PageContainer = styled.div`
padding-top: 20px;
width: 100%;
display: flex;
flex-direction: column;
overflow: auto;
`;

const PageHeaderContainer = styled.div`
Expand All @@ -20,7 +23,11 @@ const PageTitle = styled(Typography.Title)`
}
`;

const ListContainer = styled.div``;
const ListContainer = styled.div`
display: flex;
flex-direction: column;
overflow: auto;
`;

/**
* Component used for displaying the 'Manage Ownership' experience.
Expand Down
9 changes: 8 additions & 1 deletion datahub-web-react/src/app/entity/view/ManageViews.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import { ViewsList } from './ViewsList';
const PageContainer = styled.div`
padding-top: 20px;
width: 100%;
display: flex;
flex-direction: column;
overflow: auto;
`;

const PageHeaderContainer = styled.div`
Expand All @@ -20,7 +23,11 @@ const PageTitle = styled(Typography.Title)`
}
`;

const ListContainer = styled.div``;
const ListContainer = styled.div`
display: flex;
flex-direction: column;
overflow: auto;
`;

/**
* Component used for displaying the 'Manage Views' experience.
Expand Down
9 changes: 8 additions & 1 deletion datahub-web-react/src/app/identity/ManageIdentities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import { UserList } from './user/UserList';
const PageContainer = styled.div`
padding-top: 20px;
width: 100%;
overflow: auto;
flex: 1;
display: flex;
flex-direction: column;
`;

const PageHeaderContainer = styled.div`
Expand All @@ -23,11 +27,14 @@ const PageTitle = styled(Typography.Title)`
`;

const Content = styled.div`
display: flex;
flex-direction: column;
overflow: auto;
&&& .ant-tabs-nav {
margin: 0;
}
color: #262626;
height: calc(100vh - 60px);
// height: calc(100vh - 60px);
&&& .ant-tabs > .ant-tabs-nav .ant-tabs-nav-wrap {
padding-left: 28px;
Expand Down
9 changes: 8 additions & 1 deletion datahub-web-react/src/app/identity/group/GroupList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,16 @@ import { GROUPS_CREATE_GROUP_ID, GROUPS_INTRO_ID } from '../../onboarding/config
import { OnboardingTour } from '../../onboarding/OnboardingTour';
import { addGroupToListGroupsCache, DEFAULT_GROUP_LIST_PAGE_SIZE, removeGroupFromListGroupsCache } from './cacheUtils';

const GroupContainer = styled.div``;
const GroupContainer = styled.div`
display: flex;
flex-direction: column;
overflow: auto;
`;

const GroupStyledList = styled(List)`
display: flex;
flex-direction: column;
overflow: auto;
&&& {
width: 100%;
border-color: ${(props) => props.theme.styles['border-color-base']};
Expand Down
9 changes: 8 additions & 1 deletion datahub-web-react/src/app/identity/user/UserList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,16 @@ import { useUpdateEducationStepIdsAllowlist } from '../../onboarding/useUpdateEd
import { DEFAULT_USER_LIST_PAGE_SIZE, removeUserFromListUsersCache } from './cacheUtils';
import { useUserContext } from '../../context/useUserContext';

const UserContainer = styled.div``;
const UserContainer = styled.div`
display: flex;
flex-direction: column;
overflow: auto;
`;

const UserStyledList = styled(List)`
display: flex;
flex-direction: column;
overflow: auto;
&&& {
width: 100%;
border-color: ${(props) => props.theme.styles['border-color-base']};
Expand Down
7 changes: 6 additions & 1 deletion datahub-web-react/src/app/permissions/ManagePermissions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import { ManageRoles } from './roles/ManageRoles';
const PageContainer = styled.div`
padding-top: 20px;
width: 100%;
display: flex;
flex-direction: column;
overflow: auto;
`;

const PageHeaderContainer = styled.div`
Expand All @@ -27,7 +30,9 @@ const Content = styled.div`
margin: 0;
}
color: #262626;
height: calc(100vh - 60px);
display: flex;
flex-direction: column;
overflow: auto;
&&& .ant-tabs > .ant-tabs-nav .ant-tabs-nav-wrap {
padding-left: 28px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ import analytics, { EventType } from '../../analytics';
import { POLICIES_CREATE_POLICY_ID, POLICIES_INTRO_ID } from '../../onboarding/config/PoliciesOnboardingConfig';
import { OnboardingTour } from '../../onboarding/OnboardingTour';

const SourceContainer = styled.div``;
const SourceContainer = styled.div`
overflow: auto;
display: flex;
flex-direction: column;
`;

const PaginationContainer = styled.div`
display: flex;
Expand Down Expand Up @@ -75,6 +79,9 @@ const EditPolicyButton = styled(Button)`

const PageContainer = styled.span`
width: 100%;
display: flex;
flex-direction: column;
overflow: auto;
`;

const DEFAULT_PAGE_SIZE = 10;
Expand Down
9 changes: 8 additions & 1 deletion datahub-web-react/src/app/permissions/roles/ManageRoles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ import { OnboardingTour } from '../../onboarding/OnboardingTour';
import { ROLES_INTRO_ID } from '../../onboarding/config/RolesOnboardingConfig';
import { clearUserListCache } from '../../identity/user/cacheUtils';

const SourceContainer = styled.div``;
const SourceContainer = styled.div`
overflow: auto;
display: flex;
flex-direction: column;
`;

const PaginationContainer = styled.div`
display: flex;
Expand All @@ -35,6 +39,9 @@ const RoleName = styled.span`

const PageContainer = styled.span`
width: 100%;
display: flex;
flex-direction: column;
overflow: auto;
`;

const ActionsContainer = styled.div`
Expand Down
3 changes: 3 additions & 0 deletions datahub-web-react/src/app/settings/AccessTokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ const SourceContainer = styled.div`
padding-top: 20px;
padding-right: 40px;
padding-left: 40px;
display: flex;
flex-direction: column;
overflow: auto;
`;

const TokensContainer = styled.div`
Expand Down
9 changes: 7 additions & 2 deletions datahub-web-react/src/app/settings/SettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ import ManagePosts from './posts/ManagePosts';

const PageContainer = styled.div`
display: flex;
overflow: auto;
`;

const SettingsBarContainer = styled.div`
padding-top: 20px;
min-height: 100vh;
max-height: 100vh;
border-right: 1px solid ${ANTD_GRAY[5]};
display: flex;
flex-direction: column;
`;

const SettingsBarHeader = styled.div`
Expand All @@ -54,6 +57,8 @@ const ItemTitle = styled.span`
margin-left: 8px;
`;

const menuStyle = { width: 256, 'margin-top': 8, overflow: 'hidden auto' };

/**
* URL Paths for each settings page.
*/
Expand Down Expand Up @@ -108,7 +113,7 @@ export const SettingsPage = () => {
<Menu
selectable={false}
mode="inline"
style={{ width: 256, marginTop: 8 }}
style={menuStyle}
selectedKeys={[activePath]}
onClick={(newPath) => {
history.replace(`${url}/${newPath.key}`);
Expand Down
10 changes: 8 additions & 2 deletions datahub-web-react/src/app/settings/posts/ManagePosts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import { PostList } from './PostsList';
const PageContainer = styled.div`
padding-top: 20px;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
overflow: auto;
`;

const PageHeaderContainer = styled.div`
Expand All @@ -21,7 +23,11 @@ const PageTitle = styled(Typography.Title)`
}
`;

const ListContainer = styled.div``;
const ListContainer = styled.div`
display: flex;
flex-direction: column;
overflow: auto;
`;

export default function ManagePosts() {
return (
Expand Down
6 changes: 5 additions & 1 deletion datahub-web-react/src/app/settings/posts/PostsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ import { SearchBar } from '../../search/SearchBar';
import { StyledTable } from '../../entity/shared/components/styled/StyledTable';
import { POST_TYPE_TO_DISPLAY_TEXT } from './constants';

const PostsContainer = styled.div``;
const PostsContainer = styled.div`
display: flex;
flex-direction: column;
overflow: auto;
`;

export const PostsPaginationContainer = styled.div`
display: flex;
Expand Down
11 changes: 9 additions & 2 deletions datahub-web-react/src/app/shared/RoutedTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Route, Switch, useRouteMatch, useLocation } from 'react-router-dom';
import { Redirect, useHistory } from 'react-router';
import { Tabs } from 'antd';
import { TabsProps } from 'antd/lib/tabs';
import styled from 'styled-components';

const { TabPane } = Tabs;

Expand All @@ -19,6 +20,12 @@ interface Props extends TabsProps {
onTabChange?: (selectedTab: string) => void;
}

const RoutedTabsStyle = styled.div`
display: flex;
flex-direction: column;
overflow: auto;
`;

/**
* A tab view where each tab is associated with a route mounted on top of the current path.
* This permits direct navigation to a particular tab via URL.
Expand All @@ -33,7 +40,7 @@ export const RoutedTabs = ({ defaultPath, tabs, onTabChange, ...props }: Props)
const providedPath = splitPathName[splitPathName.length - 1];
const activePath = subRoutes.includes(providedPath) ? providedPath : defaultPath.replace('/', '');
return (
<div>
<RoutedTabsStyle>
<Tabs
defaultActiveKey={activePath}
activeKey={activePath}
Expand Down Expand Up @@ -62,6 +69,6 @@ export const RoutedTabs = ({ defaultPath, tabs, onTabChange, ...props }: Props)
/>
))}
</Switch>
</div>
</RoutedTabsStyle>
);
};
34 changes: 21 additions & 13 deletions docs-website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,16 @@ module.exports = {
],
},
{
Integrations: [
type: "category",
label: "Integrations",
link: { type: "doc", id: "metadata-ingestion/README" },
items: [
// The purpose of this section is to provide a deeper understanding of how ingestion works.
// Readers should be able to find details for ingesting from all systems, apply transformers, understand sinks,
// and understand key concepts of the Ingestion Framework (Sources, Sinks, Transformers, and Recipes)
{
type: "doc",
label: "Introduction",
id: "metadata-ingestion/README",
},
{
"Quickstart Guides": [
"metadata-ingestion/cli-ingestion",
{
BigQuery: [
"docs/quick-ingestion-guides/bigquery/overview",
Expand Down Expand Up @@ -85,15 +84,18 @@ module.exports = {
},
],
},
"metadata-ingestion/recipe_overview",
{
Sources: [
type: "category",
label: "Sources",
link: { type: "doc", id: "metadata-ingestion/source_overview" },
items: [
// collapse these; add push-based at top
{
type: "doc",
id: "docs/lineage/airflow",
label: "Airflow",
},

//"docker/airflow/local_airflow",
"metadata-integration/java/spark-lineage/README",
"metadata-ingestion/integration_docs/great-expectations",
Expand All @@ -106,18 +108,24 @@ module.exports = {
],
},
{
Sinks: [
type: "category",
label: "Sinks",
link: { type: "doc", id: "metadata-ingestion/sink_overview" },
items: [
{
type: "autogenerated",
dirName: "metadata-ingestion/sink_docs",
},
],
},
{
Transformers: [
"metadata-ingestion/docs/transformer/intro",
"metadata-ingestion/docs/transformer/dataset_transformer",
],
type: "category",
label: "Transformers",
link: {
type: "doc",
id: "metadata-ingestion/docs/transformer/intro",
},
items: ["metadata-ingestion/docs/transformer/dataset_transformer"],
},
{
"Advanced Guides": [
Expand Down
Loading

0 comments on commit 1223c05

Please sign in to comment.