mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-02 11:49:23 +00:00
Catch up fe to internal - includes module consolidations for faster build times (#1947)
This commit is contained in:
parent
bfd012f258
commit
4a80baaeb5
@ -55,7 +55,8 @@ module.exports = {
|
||||
'**/testem.js',
|
||||
'**/index.js',
|
||||
'**/config/**/*.js',
|
||||
'**/lib/*/**.js'
|
||||
'**/lib/*/**.js',
|
||||
'**/eyeglass-exports.js'
|
||||
],
|
||||
parserOptions: {
|
||||
sourceType: 'script',
|
||||
|
||||
@ -33,7 +33,8 @@
|
||||
"ember-cli-typescript": "^3.1.3",
|
||||
"ember-fetch": "^7.0.0",
|
||||
"ember-lodash": "^4.18.0",
|
||||
"faker": "^4.1.0"
|
||||
"faker": "^4.1.0",
|
||||
"ember-cli-eyeglass": "^6.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.8.4",
|
||||
|
||||
@ -2,7 +2,7 @@ import { INachoTableConfigs } from '@nacho-ui/table/types/nacho-table';
|
||||
import { KeyNamesWithValueType } from '@datahub/utils/types/base';
|
||||
import { IDynamicComponent } from '@datahub/shared/types/dynamic-component';
|
||||
import { IStandardDynamicProperty } from '@datahub/data-models/types/entity/rendering/properties-panel';
|
||||
import { INachoDropdownOption } from '@nacho-ui/dropdown/types/nacho-dropdown';
|
||||
import { INachoDropdownOption } from '@nacho-ui/core/types/nacho-dropdown';
|
||||
|
||||
// TODO https://jira01.corp.linkedin.com:8443/browse/META-10764: Investigate how to solve the 'wrapper' components scalability issue in generic entity page and search
|
||||
/**
|
||||
|
||||
@ -19,8 +19,6 @@ The following styling requirements should be met in order to apply stylings for
|
||||
|
||||
```scss
|
||||
// Host application app.scss
|
||||
@import 'nacho-core-theme';
|
||||
@import 'nacho-core';
|
||||
@import 'nacho-table';
|
||||
@import 'nacho-pill';
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
<div class="row dataset-schema__header">
|
||||
<div class="col-xs-12">
|
||||
<div class="btn-group">
|
||||
<Placeholder::NachoToggle
|
||||
<NachoButton::NachoToggle
|
||||
aria-label="Toggle Table / JSON Schema View"
|
||||
@value={{this.isShowingTable}}
|
||||
@leftOptionValue={{true}}
|
||||
|
||||
@ -13,7 +13,7 @@ import {
|
||||
filterLineageByType
|
||||
} from '@datahub/datasets-core/utils/lineage';
|
||||
import { AppRoute } from '@datahub/data-models/types/entity/shared';
|
||||
import { INachoDropdownOption } from '@nacho-ui/dropdown/types/nacho-dropdown';
|
||||
import { INachoDropdownOption } from '@nacho-ui/core/types/nacho-dropdown';
|
||||
|
||||
/**
|
||||
* Shortcut typing to reference dropdown options for relationship types
|
||||
|
||||
@ -1,74 +0,0 @@
|
||||
import Component from '@ember/component';
|
||||
// @ts-ignore: Ignore import of compiled template
|
||||
import template from '../../templates/components/placeholder/nacho-toggle';
|
||||
import { layout, classNames } from '@ember-decorators/component';
|
||||
import { noop } from 'lodash';
|
||||
import { action } from '@ember/object';
|
||||
|
||||
// TODO: [META-8566] This is a placeholder/test run for a nacho toggle component. If we like it as a standalone,
|
||||
// it will be migrated to @nacho-ui and will replace this version
|
||||
|
||||
/**
|
||||
* This toggle component will switch between two states or values, and call a function that passes in the
|
||||
* value being toggled to so that the consuming parent component will handle the interaction
|
||||
*
|
||||
* @example
|
||||
* {{placeholder/nacho-toggle
|
||||
* value=someValue
|
||||
* leftOptionValue=someValue
|
||||
* leftOptionText="Pikachu"
|
||||
* rightOptionValue=someValue
|
||||
* rightOptionText="Eevee"
|
||||
* }}
|
||||
*/
|
||||
@layout(template)
|
||||
@classNames('nacho-toggle')
|
||||
export default class PlaceholderNachoToggle<T, K> extends Component {
|
||||
/**
|
||||
* The current value of the toggle. This represents which of the two values presented in each option is the
|
||||
* value that is currently active. Types T, K represent the typing of either values
|
||||
* @type {T | K}
|
||||
*/
|
||||
value?: T | K;
|
||||
|
||||
/**
|
||||
* The value associated with the left option for the toggle
|
||||
* @type {T}
|
||||
*/
|
||||
leftOptionValue?: T;
|
||||
|
||||
/**
|
||||
* The label for the left option of the toggle
|
||||
* @type {string}
|
||||
*/
|
||||
leftOptionText?: string;
|
||||
|
||||
/**
|
||||
* The value associated with the right option for the toggle
|
||||
* @type {K}
|
||||
*/
|
||||
rightOptionValue?: K;
|
||||
|
||||
/**
|
||||
* The label for the right option fo the toggle
|
||||
*/
|
||||
rightOptionText?: string;
|
||||
|
||||
/**
|
||||
* Passed in action that will be called upon the push of a side of the toggle and is intended to
|
||||
* switch the active value to whichever side is being clicked
|
||||
* @type {(value: T | K) => void}
|
||||
*/
|
||||
onChange: (value: T | K) => void = noop;
|
||||
|
||||
/**
|
||||
* Action triggered by the user clicking on either side of the toggle. Whichever side is clicked
|
||||
* will determine the value passed into this action handler
|
||||
* @param {T | K} value - the value associated with either the right or left side of the toggle,
|
||||
* whichever one was clicked by the user
|
||||
*/
|
||||
@action
|
||||
onValueChange(value: T | K): void {
|
||||
this.onChange(value);
|
||||
}
|
||||
}
|
||||
@ -26,7 +26,7 @@ export default function(server: Server | IMirageServer): void {
|
||||
generateDatasetSchemaFields(fieldNames, (server as unknown) as Server);
|
||||
|
||||
server.createList('datasetPurgePolicy', 1);
|
||||
server.createList('datasets', 1);
|
||||
server.createList('dataset', 1);
|
||||
server.createList('datasetComplianceInfo', 1);
|
||||
server.createList('datasetExportPolicy', 1);
|
||||
server.createList('platform', 20);
|
||||
|
||||
@ -4,4 +4,3 @@
|
||||
@import 'interactivity/all';
|
||||
@import 'lineage/all';
|
||||
@import 'placeholder-nacho-tooltip';
|
||||
@import 'placeholder-nacho-toggle';
|
||||
@ -54,17 +54,17 @@
|
||||
{{#if showAllRelationships}}
|
||||
|
||||
See Less
|
||||
{{fa-icon
|
||||
"caret-up"
|
||||
<FaIcon
|
||||
@icon="caret-up"
|
||||
aria-label="See less relationships"
|
||||
}}
|
||||
/>
|
||||
{{else}}
|
||||
|
||||
See More
|
||||
{{fa-icon
|
||||
"caret-down"
|
||||
<FaIcon
|
||||
@icon="caret-down"
|
||||
aria-label="See more relationships"
|
||||
}}
|
||||
/>
|
||||
|
||||
{{/if}}
|
||||
</button>
|
||||
|
||||
@ -1,24 +0,0 @@
|
||||
<div class="nacho-toggle__content">
|
||||
{{#let (eq @value @leftOptionValue) as |leftActive|}}
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="nacho-toggle__button nacho-toggle__button--left {{if leftActive "nacho-toggle__button--active"}}"
|
||||
{{on "click" (fn this.onValueChange @leftOptionValue)}}
|
||||
>
|
||||
{{@leftOptionText}}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="nacho-toggle__button nacho-toggle__button--right {{unless leftActive "nacho-toggle__button--active"}}"
|
||||
{{on "click" (fn this.onValueChange @rightOptionValue)}}
|
||||
>
|
||||
{{@rightOptionText}}
|
||||
</button>
|
||||
<div
|
||||
class="nacho-toggle__slider nacho-toggle__slider--{{if leftActive "left-active" "right-active"}}"
|
||||
>
|
||||
</div>
|
||||
|
||||
{{/let}}
|
||||
</div>
|
||||
@ -1,6 +1,6 @@
|
||||
import { IDatasetLineage, DatasetLineageList } from '@datahub/metadata-types/types/entity/dataset/lineage';
|
||||
import { arrayFilter, take } from '@datahub/utils/array/index';
|
||||
import { INachoDropdownOption } from '@nacho-ui/dropdown/types/nacho-dropdown';
|
||||
import { INachoDropdownOption } from '@nacho-ui/core/types/nacho-dropdown';
|
||||
|
||||
/**
|
||||
* Shortcut typing to reference dropdown options for relationship types
|
||||
|
||||
@ -1 +0,0 @@
|
||||
export { default } from '@datahub/datasets-core/components/placeholder/nacho-toggle';
|
||||
@ -1,56 +0,0 @@
|
||||
.nacho-toggle {
|
||||
$toggle-height: 32px;
|
||||
|
||||
&__content {
|
||||
position: relative;
|
||||
height: $toggle-height;
|
||||
background-color: get-color(slate4, 0.25);
|
||||
border-radius: 20px;
|
||||
box-sizing: border-box;
|
||||
padding: item-spacing(1 4);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
&__button {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
outline: none;
|
||||
font-weight: fw(normal, 6);
|
||||
height: 100%;
|
||||
cursor: pointer;
|
||||
|
||||
&--active {
|
||||
color: get-color(white);
|
||||
}
|
||||
|
||||
&--left {
|
||||
margin-right: item-spacing(3);
|
||||
}
|
||||
|
||||
&--right {
|
||||
margin-left: item-spacing(3);
|
||||
}
|
||||
}
|
||||
|
||||
&__slider {
|
||||
$slider-transition-speed: 0.25s;
|
||||
|
||||
-webkit-transition: left $slider-transition-speed;
|
||||
transition: left $slider-transition-speed;
|
||||
position: absolute;
|
||||
background-color: get-color(blue5);
|
||||
height: $toggle-height;
|
||||
border-radius: 20px;
|
||||
width: 50%;
|
||||
top: 0;
|
||||
z-index: z(below);
|
||||
|
||||
&--left-active {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
&--right-active {
|
||||
left: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
datahub-web/@datahub/datasets-core/eyeglass-exports.js
Normal file
11
datahub-web/@datahub/datasets-core/eyeglass-exports.js
Normal file
@ -0,0 +1,11 @@
|
||||
/* eslint-env node */
|
||||
|
||||
'use strict';
|
||||
|
||||
const path = require('path');
|
||||
|
||||
module.exports = function eyeglassExports(/* eyeglass, sass */) {
|
||||
return {
|
||||
sassDir: path.join(__dirname, 'addon', 'styles')
|
||||
};
|
||||
};
|
||||
@ -3,7 +3,8 @@
|
||||
"version": "0.0.1",
|
||||
"description": "The handler for datasets as an entity under DataHub",
|
||||
"keywords": [
|
||||
"ember-addon"
|
||||
"ember-addon",
|
||||
"eyeglass-module"
|
||||
],
|
||||
"repository": "",
|
||||
"license": "MIT",
|
||||
@ -25,12 +26,10 @@
|
||||
"@datahub/data-models": "0.0.0",
|
||||
"@datahub/metadata-types": "0.0.0",
|
||||
"@datahub/utils": "0.0.0",
|
||||
"@fortawesome/ember-fontawesome": "^0.1.13",
|
||||
"@fortawesome/ember-fontawesome": "^0.2.2",
|
||||
"@fortawesome/free-regular-svg-icons": "^5.9.0",
|
||||
"@fortawesome/free-solid-svg-icons": "^5.9.0",
|
||||
"@nacho-ui/animations": "^0.0.38",
|
||||
"@nacho-ui/core": "^0.0.38",
|
||||
"@nacho-ui/dropdown": "^0.0.38",
|
||||
"@nacho-ui/pill": "^0.0.38",
|
||||
"@nacho-ui/table": "^0.0.38",
|
||||
"@types/ember-resolver": "^5.0.7",
|
||||
@ -40,7 +39,10 @@
|
||||
"ember-cli-htmlbars": "^4.2.2",
|
||||
"ember-cli-typescript": "^3.1.3",
|
||||
"ember-composable-helpers": "^3.0.3",
|
||||
"ember-concurrency": "^1.1.2"
|
||||
"ember-concurrency": "^1.1.2",
|
||||
"ember-cli-eyeglass": "^6.4.3",
|
||||
"eyeglass": "^2.4.2",
|
||||
"eyeglass-restyle": "^1.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.8.4",
|
||||
@ -60,7 +62,6 @@
|
||||
"ember-cli-dependency-checker": "^3.2.0",
|
||||
"ember-cli-inject-live-reload": "^2.0.2",
|
||||
"ember-cli-mirage": "^0.4.15",
|
||||
"ember-cli-sass": "^10.0.0",
|
||||
"ember-cli-sri": "^2.1.1",
|
||||
"ember-cli-typescript-blueprints": "^3.0.0",
|
||||
"ember-cli-uglify": "^3.0.0",
|
||||
@ -88,5 +89,10 @@
|
||||
},
|
||||
"ember-addon": {
|
||||
"configPath": "tests/dummy/config"
|
||||
},
|
||||
"eyeglass": {
|
||||
"needs": "^2.4.2",
|
||||
"name": "datahub-datasets",
|
||||
"exports": "eyeglass-exports.js"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,11 +1,9 @@
|
||||
@import 'nacho-core';
|
||||
@import 'datahub-utils';
|
||||
@import 'nacho-table';
|
||||
@import 'nacho-animations';
|
||||
@import 'nacho-pill';
|
||||
@import 'nacho-dropdown';
|
||||
|
||||
@import 'datasets-core';
|
||||
@import 'datahub-datasets';
|
||||
|
||||
html {
|
||||
font-family: 'Source Sans Pro';
|
||||
|
||||
@ -1,65 +0,0 @@
|
||||
import { module, test } from 'qunit';
|
||||
import { setupRenderingTest } from 'ember-qunit';
|
||||
import { render, findAll, click } from '@ember/test-helpers';
|
||||
import hbs from 'htmlbars-inline-precompile';
|
||||
import { capitalize } from '@ember/string';
|
||||
|
||||
module('Integration | Component | placeholder/nacho-toggle', function(hooks): void {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
const baseClass = '.nacho-toggle';
|
||||
const buttonClass = `${baseClass}__button`;
|
||||
const activeButton = `${buttonClass}--active`;
|
||||
const leftButton = `${buttonClass}--left`;
|
||||
const rightButton = `${buttonClass}--right`;
|
||||
|
||||
test('it renders', async function(assert): Promise<void> {
|
||||
await render(hbs`{{placeholder/nacho-toggle}}`);
|
||||
assert.ok(this.element, 'Initial render is without errors');
|
||||
|
||||
const leftOptionValue = 'pikachu';
|
||||
const rightOptionValue = 'eevee';
|
||||
|
||||
this.setProperties({
|
||||
leftOptionValue,
|
||||
rightOptionValue,
|
||||
value: leftOptionValue,
|
||||
leftOptionText: capitalize(leftOptionValue),
|
||||
rightOptionText: capitalize(rightOptionValue),
|
||||
onChange: (newValue: string) => {
|
||||
this.set('value', newValue);
|
||||
}
|
||||
});
|
||||
|
||||
await render(hbs`{{placeholder/nacho-toggle
|
||||
value=value
|
||||
leftOptionValue=leftOptionValue
|
||||
leftOptionText=leftOptionText
|
||||
rightOptionValue=rightOptionValue
|
||||
rightOptionText=rightOptionText
|
||||
onChange=(action onChange)
|
||||
}}`);
|
||||
|
||||
assert.equal(findAll(`${leftButton}${activeButton}`).length, 1, 'Left button should be the active on first');
|
||||
|
||||
assert.equal(
|
||||
findAll(`${rightButton}${activeButton}`).length,
|
||||
0,
|
||||
'By that same logic, right button should not be active at first'
|
||||
);
|
||||
|
||||
await click(rightButton);
|
||||
|
||||
assert.equal(
|
||||
findAll(`${leftButton}${activeButton}`).length,
|
||||
0,
|
||||
'Left button should be inactive when we click the right side'
|
||||
);
|
||||
|
||||
assert.equal(
|
||||
findAll(`${rightButton}${activeButton}`).length,
|
||||
1,
|
||||
'By that same logic, right button should now be active'
|
||||
);
|
||||
});
|
||||
});
|
||||
@ -2,7 +2,7 @@ import {
|
||||
ComplianceFieldIdValue,
|
||||
NonMemberIdLogicalType
|
||||
} from '@datahub/metadata-types/constants/entity/dataset/compliance-field-types';
|
||||
import { INachoDropdownOption } from '@nacho-ui/dropdown/types/nacho-dropdown';
|
||||
import { INachoDropdownOption } from '@nacho-ui/core/types/nacho-dropdown';
|
||||
|
||||
/**
|
||||
* Defines the interface for compliance data type field option
|
||||
|
||||
11
datahub-web/@datahub/entities/eyeglass-exports.js
Normal file
11
datahub-web/@datahub/entities/eyeglass-exports.js
Normal file
@ -0,0 +1,11 @@
|
||||
/* eslint-env node */
|
||||
|
||||
'use strict';
|
||||
|
||||
const path = require('path');
|
||||
|
||||
module.exports = function eyeglassExports(/* eyeglass, sass */) {
|
||||
return {
|
||||
sassDir: path.join(__dirname, 'addon', 'styles')
|
||||
};
|
||||
};
|
||||
@ -3,7 +3,8 @@
|
||||
"version": "0.0.0",
|
||||
"description": "Some description for entities",
|
||||
"keywords": [
|
||||
"ember-addon"
|
||||
"ember-addon",
|
||||
"eyeglass-module"
|
||||
],
|
||||
"repository": "",
|
||||
"license": "MIT",
|
||||
@ -24,7 +25,10 @@
|
||||
"@datahub/utils": "0.0.0",
|
||||
"ember-cli-babel": "^7.17.2",
|
||||
"ember-cli-htmlbars": "^4.2.2",
|
||||
"ember-cli-typescript": "^3.1.3"
|
||||
"ember-cli-typescript": "^3.1.3",
|
||||
"ember-cli-eyeglass": "^6.4.3",
|
||||
"eyeglass": "^2.4.2",
|
||||
"eyeglass-restyle": "^1.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.8.4",
|
||||
@ -42,7 +46,6 @@
|
||||
"broccoli-asset-rev": "^3.0.0",
|
||||
"ember-cli": "~3.16.0",
|
||||
"ember-cli-dependency-checker": "^3.2.0",
|
||||
"ember-cli-htmlbars-inline-precompile": "^2.1.0",
|
||||
"ember-cli-inject-live-reload": "^2.0.2",
|
||||
"ember-cli-mirage": "^0.4.15",
|
||||
"ember-cli-sri": "^2.1.1",
|
||||
@ -66,5 +69,10 @@
|
||||
},
|
||||
"ember-addon": {
|
||||
"configPath": "tests/dummy/config"
|
||||
},
|
||||
"eyeglass": {
|
||||
"needs": "^2.4.2",
|
||||
"name": "datahub-entities",
|
||||
"exports": "eyeglass-exports.js"
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,7 +25,8 @@
|
||||
"@types/ember-resolver": "^5.0.7",
|
||||
"ember-cli-babel": "^7.17.2",
|
||||
"ember-cli-htmlbars": "^4.2.2",
|
||||
"ember-cli-typescript": "^3.1.3"
|
||||
"ember-cli-typescript": "^3.1.3",
|
||||
"ember-cli-eyeglass": "^6.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.8.4",
|
||||
|
||||
13072
datahub-web/@datahub/metadata-types/types/codegen/index.d.ts
vendored
13072
datahub-web/@datahub/metadata-types/types/codegen/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
@ -1,14 +0,0 @@
|
||||
import { HadoopClusterType } from '@datahub/metadata-types/constants/common/hadoop-cluster-type';
|
||||
|
||||
/**
|
||||
* Azkaban cluster information which includes azkaban cluster name and the hadoop cluster
|
||||
* @export
|
||||
* @interface IAzkabanClusterInfo
|
||||
* @link https://git.corp.linkedin.com:1367/a/plugins/gitiles/multiproducts/metadata-models/+/master/metadata-models/src/main/pegasus/com/linkedin/dataJob/azkaban/AzkabanClusterInfo.pdsc
|
||||
*/
|
||||
export interface IAzkabanClusterInfo {
|
||||
// Azkaban cluster name, e.g. ltx1-holdem
|
||||
clusterName: string;
|
||||
// Hadoop cluster in which the project and flows exist, e.g. HOLDEM, FARO or WAR
|
||||
hadoopCluster: HadoopClusterType;
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
import { IAzkabanProjectInfo } from '@datahub/metadata-types/types/entity/data-job/azkaban/azkaban-project-info';
|
||||
|
||||
/**
|
||||
* Metadata associated with a Azkaban flow
|
||||
* @export
|
||||
* @interface IAzkabanFlowInfo
|
||||
* @link https://git.corp.linkedin.com:1367/a/plugins/gitiles/multiproducts/metadata-models/+/master/metadata-models/src/main/pegasus/com/linkedin/dataJob/azkaban/AzkabanFlowInfo.pdsc
|
||||
*/
|
||||
export interface IAzkabanFlowInfo {
|
||||
// Azkaban flow name
|
||||
flowName: string;
|
||||
// Azkaban project information including project name, version and cluster
|
||||
project: IAzkabanProjectInfo;
|
||||
}
|
||||
@ -1,16 +0,0 @@
|
||||
import { IAzkabanClusterInfo } from '@datahub/metadata-types/types/entity/data-job/azkaban/azkaban-cluster-info';
|
||||
|
||||
/**
|
||||
* Metadata associated with a Azkaban project
|
||||
* @export
|
||||
* @interface IAzkabanProjectInfo
|
||||
* @link https://git.corp.linkedin.com:1367/a/plugins/gitiles/multiproducts/metadata-models/+/master/metadata-models/src/main/pegasus/com/linkedin/dataJob/azkaban/AzkabanProjectInfo.pdsc
|
||||
*/
|
||||
export interface IAzkabanProjectInfo {
|
||||
// Azkaban project name
|
||||
projectName: string;
|
||||
// Azkaban project upload version
|
||||
projectVersion: string;
|
||||
// Hadoop cluster in which the project exists
|
||||
clusterInfo: IAzkabanClusterInfo;
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
import { IBaseAspect } from '@datahub/metadata-types/types/metadata/aspect';
|
||||
import { IAzkabanFlowInfo } from '@datahub/metadata-types/types/entity/data-job/azkaban/azkaban-flow-info';
|
||||
import { IAzkabanFlowJobsInfo } from '@datahub/metadata-types/types/entity/data-job/azkaban/flow/azkaban-flow-jobs-info';
|
||||
|
||||
/**
|
||||
* A union of all supported metadata aspects for a Azkaban flow
|
||||
* @export
|
||||
* @interface IAzkabanFlowAspect
|
||||
* @extends {IBaseAspect}
|
||||
* @link https://git.corp.linkedin.com:1367/a/plugins/gitiles/multiproducts/metadata-models/+/master/metadata-models/src/main/pegasus/com/linkedin/metadata/aspect/AzkabanFlowAspect.pdsc
|
||||
*/
|
||||
export interface IAzkabanFlowAspect extends IBaseAspect {
|
||||
// Ownership information of an entity
|
||||
'com.linkedin.common.Ownership'?: Com.Linkedin.Common.Ownership;
|
||||
// Metadata associated with a Azkaban job
|
||||
'com.linkedin.dataJob.azkaban.AzkabanFlowInfo'?: IAzkabanFlowInfo;
|
||||
// Inputs consumed by the Azkaban job
|
||||
'com.linkedin.dataJob.azkaban.AzkabanFlowJobsInfo'?: IAzkabanFlowJobsInfo;
|
||||
}
|
||||
@ -1,32 +0,0 @@
|
||||
import { IBaseEntity } from '@datahub/metadata-types/types/entity';
|
||||
import { IAzkabanClusterInfo } from '@datahub/metadata-types/types/entity/data-job/azkaban/azkaban-cluster-info';
|
||||
import { IAzkabanProjectInfo } from '@datahub/metadata-types/types/entity/data-job/azkaban/azkaban-project-info';
|
||||
import { IAzkabanFlowInfo } from '@datahub/metadata-types/types/entity/data-job/azkaban/azkaban-flow-info';
|
||||
import { IAzkabanFlowJobsInfo } from '@datahub/metadata-types/types/entity/data-job/azkaban/flow/azkaban-flow-jobs-info';
|
||||
|
||||
/**
|
||||
* Describes the mid-tier interface for the Azkaban flow entity
|
||||
* @export
|
||||
* @interface IAzkabanFlowEntity
|
||||
* @extends {IBaseEntity}
|
||||
*/
|
||||
export interface IAzkabanFlowEntity extends IBaseEntity {
|
||||
// Azkaban jobs associated with a Azkaban flow
|
||||
jobsInfo: IAzkabanFlowJobsInfo;
|
||||
// Azkaban cluster name, e.g. ltx1-holdem
|
||||
clusterName: IAzkabanClusterInfo['clusterName'];
|
||||
// Azkaban project name
|
||||
projectName: IAzkabanProjectInfo['projectName'];
|
||||
// Azkaban flow name
|
||||
flowName: IAzkabanFlowInfo['flowName'];
|
||||
// Metadata information associated with a Azkaban flow
|
||||
info: {
|
||||
// Metadata associated with a Azkaban project
|
||||
project: IAzkabanProjectInfo;
|
||||
// Azkaban flow name
|
||||
flowName: IAzkabanFlowInfo['flowName'];
|
||||
};
|
||||
}
|
||||
|
||||
// Alias for the interface attributes returned by the mid-tier endpoint for Azkaban Flow instance
|
||||
export type AzkabanFlowApiEntity = Omit<IAzkabanFlowEntity, 'removed'>;
|
||||
@ -1,10 +0,0 @@
|
||||
/**
|
||||
* Azkaban jobs associated with a Azkaban flow
|
||||
* @export
|
||||
* @interface IAzkabanFlowJobsInfo
|
||||
* @link https://git.corp.linkedin.com:1367/a/plugins/gitiles/multiproducts/metadata-models/+/master/metadata-models/src/main/pegasus/com/linkedin/dataJob/azkaban/AzkabanFlowJobsInfo.pdsc
|
||||
*/
|
||||
export interface IAzkabanFlowJobsInfo {
|
||||
// List of Azkaban jobs that are part of this flow
|
||||
jobs: Array<string>;
|
||||
}
|
||||
@ -1,24 +0,0 @@
|
||||
import { IBaseAspect } from '@datahub/metadata-types/types/metadata/aspect';
|
||||
import { IAzkabanJobInfo } from '@datahub/metadata-types/types/entity/data-job/azkaban/job/azkaban-job-info';
|
||||
import { AzkabanJobInput } from '@datahub/metadata-types/types/entity/data-job/azkaban/job/azkaban-job-input';
|
||||
import { AzkabanJobOutput } from '@datahub/metadata-types/types/entity/data-job/azkaban/job/azkaban-job-output';
|
||||
|
||||
/**
|
||||
* A union of all supported metadata aspects for a Azkaban job
|
||||
* @export
|
||||
* @interface IAzkabanJobAspect
|
||||
* @extends {IBaseAspect}
|
||||
* @link https://git.corp.linkedin.com:1367/a/plugins/gitiles/multiproducts/metadata-models/+/master/metadata-models/src/main/pegasus/com/linkedin/metadata/aspect/AzkabanJobAspect.pdsc
|
||||
*/
|
||||
export interface IAzkabanJobAspect extends IBaseAspect {
|
||||
// URN for the associated Azkaban job
|
||||
urn: string;
|
||||
// Ownership information of an entity
|
||||
'com.linkedin.common.Ownership'?: Com.Linkedin.Common.Ownership;
|
||||
// Metadata associated with a Azkaban job
|
||||
'com.linkedin.dataJob.azkaban.AzkabanJobInfo'?: IAzkabanJobInfo;
|
||||
// Inputs consumed by the Azkaban job
|
||||
'com.linkedin.dataJob.azkaban.AzkabanJobInput'?: AzkabanJobInput;
|
||||
// Outputs produced by the Azkaban job
|
||||
'com.linkedin.dataJob.azkaban.AzkabanJobOutput'?: AzkabanJobOutput;
|
||||
}
|
||||
@ -1,42 +0,0 @@
|
||||
import { IBaseEntity } from '@datahub/metadata-types/types/entity';
|
||||
import { IDataJobOutput } from '@datahub/metadata-types/types/entity/data-job/data-job-output';
|
||||
import { IDataJobInput } from '@datahub/metadata-types/types/entity/data-job/data-job-input';
|
||||
import { IAzkabanClusterInfo } from '@datahub/metadata-types/types/entity/data-job/azkaban/azkaban-cluster-info';
|
||||
import { IAzkabanProjectInfo } from '@datahub/metadata-types/types/entity/data-job/azkaban/azkaban-project-info';
|
||||
import { IAzkabanJobInfo } from '@datahub/metadata-types/types/entity/data-job/azkaban/job/azkaban-job-info';
|
||||
import { IAzkabanFlowInfo } from '@datahub/metadata-types/types/entity/data-job/azkaban/azkaban-flow-info';
|
||||
|
||||
/**
|
||||
* Describes the mid-tier interface for the Azkaban Job entity
|
||||
* @export
|
||||
* @interface IAzkabanJobEntity
|
||||
* @extends {IBaseEntity}
|
||||
*/
|
||||
export interface IAzkabanJobEntity extends IBaseEntity {
|
||||
// Identification URN for a specific job instance
|
||||
urn: string;
|
||||
// Azkaban job name
|
||||
jobName: IAzkabanJobInfo['jobName'];
|
||||
// Outputs produced by the data job
|
||||
output: IDataJobOutput;
|
||||
// Inputs consumed by the data job
|
||||
input: IDataJobInput;
|
||||
// Azkaban cluster name, e.g. ltx1-holdem
|
||||
clusterName: IAzkabanClusterInfo['clusterName'];
|
||||
// Azkaban project name
|
||||
projectName: IAzkabanProjectInfo['projectName'];
|
||||
// Azkaban flow name
|
||||
flowName: IAzkabanFlowInfo['flowName'];
|
||||
// Metadata information associated with a Azkaban job
|
||||
info: {
|
||||
// Azkaban job name
|
||||
jobName: IAzkabanJobInfo['jobName'];
|
||||
// Metadata associated with a Azkaban project
|
||||
project: IAzkabanProjectInfo;
|
||||
// Azkaban flow name
|
||||
flowName: IAzkabanFlowInfo['flowName'];
|
||||
};
|
||||
}
|
||||
|
||||
// Alias for the interface attributes returned by the mid-tier endpoint for Azkaban Job instance
|
||||
export type AzkabanJobApiEntity = Omit<IAzkabanJobEntity, 'removed'>;
|
||||
@ -1,12 +0,0 @@
|
||||
import { IAzkabanFlowInfo } from '@datahub/metadata-types/types/entity/data-job/azkaban/azkaban-flow-info';
|
||||
|
||||
/**
|
||||
* Metadata associated with a Azkaban job
|
||||
* @export
|
||||
* @interface IAzkabanJobInfo
|
||||
* @link https://git.corp.linkedin.com:1367/a/plugins/gitiles/multiproducts/metadata-models/+/master/metadata-models/src/main/pegasus/com/linkedin/dataJob/azkaban/AzkabanJobInfo.pdsc
|
||||
*/
|
||||
export interface IAzkabanJobInfo extends IAzkabanFlowInfo {
|
||||
// Azkaban job name
|
||||
jobName: string;
|
||||
}
|
||||
@ -1,7 +0,0 @@
|
||||
import { IDataJobInput } from '@datahub/metadata-types/types/entity/data-job/data-job-input';
|
||||
|
||||
/**
|
||||
* Inputs consumed by the Azkaban job
|
||||
* @link https://git.corp.linkedin.com:1367/a/plugins/gitiles/multiproducts/metadata-models/+/master/metadata-models/src/main/pegasus/com/linkedin/dataJob/azkaban/AzkabanJobInput.pdsc
|
||||
*/
|
||||
export type AzkabanJobInput = IDataJobInput;
|
||||
@ -1,7 +0,0 @@
|
||||
import { IDataJobOutput } from '@datahub/metadata-types/types/entity/data-job/data-job-output';
|
||||
|
||||
/**
|
||||
* Outputs produced by the Azkaban job
|
||||
* @link https://git.corp.linkedin.com:1367/a/plugins/gitiles/multiproducts/metadata-models/+/master/metadata-models/src/main/pegasus/com/linkedin/dataJob/azkaban/AzkabanJobOutput.pdsc
|
||||
*/
|
||||
export type AzkabanJobOutput = IDataJobOutput;
|
||||
@ -1,10 +0,0 @@
|
||||
/**
|
||||
* Inputs consumed by the data job
|
||||
* @export
|
||||
* @interface IDataJobInput
|
||||
* @link https://git.corp.linkedin.com:1367/a/plugins/gitiles/multiproducts/metadata-models/+/master/metadata-models/src/main/pegasus/com/linkedin/dataJob/DataJobInput.pdsc
|
||||
*/
|
||||
export interface IDataJobInput {
|
||||
// Input datasets consumed by the data job during processing, each string is a dataset urn
|
||||
inputDatasets: Array<string>;
|
||||
}
|
||||
@ -1,10 +0,0 @@
|
||||
/**
|
||||
* Outputs produced by the data job
|
||||
* @export
|
||||
* @interface IDataJobOutput
|
||||
* @link https://git.corp.linkedin.com:1367/a/plugins/gitiles/multiproducts/metadata-models/+/master/metadata-models/src/main/pegasus/com/linkedin/dataJob/DataJobOutput.pdsc
|
||||
*/
|
||||
export interface IDataJobOutput {
|
||||
// Output datasets produced by the data job during processing, each string is a dataset urn
|
||||
outputDatasets: Array<string>;
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
import { IAzkabanFlowAspect } from '@datahub/metadata-types/types/entity/data-job/azkaban/flow/aspect';
|
||||
|
||||
/**
|
||||
* A metadata snapshot for a specific azkaban flow entity
|
||||
* @export
|
||||
* @interface IAzkabanFlowSnapshot
|
||||
* @link https://git.corp.linkedin.com:1367/a/plugins/gitiles/multiproducts/metadata-models/+/master/metadata-models/src/main/pegasus/com/linkedin/metadata/snapshot/AzkabanFlowSnapshot.pdsc
|
||||
*/
|
||||
export interface IAzkabanFlowSnapshot {
|
||||
// Azkaban flow urn identifying a Azkaban declared flow
|
||||
urn: string;
|
||||
// The list of metadata aspects associated with a Azkaban flow. Depending on the use case, this can either be all, or a selection, of supported aspects.
|
||||
aspects: Array<IAzkabanFlowAspect>;
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
import { IAzkabanJobAspect } from '@datahub/metadata-types/types/entity/data-job/azkaban/job/aspect';
|
||||
|
||||
/**
|
||||
* A metadata snapshot for a specific azkaban job entity
|
||||
* @export
|
||||
* @interface IAzkabanJobSnapshot
|
||||
* @link https://git.corp.linkedin.com:1367/a/plugins/gitiles/multiproducts/metadata-models/+/master/metadata-models/src/main/pegasus/com/linkedin/metadata/snapshot/AzkabanJobSnapshot.pdsc
|
||||
*/
|
||||
export interface IAzkabanJobSnapshot {
|
||||
// Azkaban job urn identifying a Azkaban declared job
|
||||
urn: string;
|
||||
// The list of metadata aspects associated with a Azkaban job. Depending on the use case, this can either be all, or a selection, of supported aspects.
|
||||
aspects: Array<IAzkabanJobAspect>;
|
||||
}
|
||||
@ -33,7 +33,7 @@
|
||||
@icon="users"
|
||||
/>
|
||||
{{else}}
|
||||
<NachoAvatarImage
|
||||
<NachoAvatar::NachoAvatarImage
|
||||
class="{{this.baseClass}}__icon"
|
||||
@img={{result.profilePictureUrl}}
|
||||
/>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import Component from '@glimmer/component';
|
||||
import { action, set, setProperties } from '@ember/object';
|
||||
import { INachoDropdownOption } from '@nacho-ui/dropdown/types/nacho-dropdown';
|
||||
import { INachoDropdownOption } from '@nacho-ui/core/types/nacho-dropdown';
|
||||
import { IDynamicComponent } from '@datahub/shared/types/dynamic-component';
|
||||
import { reads } from '@ember/object/computed';
|
||||
import {
|
||||
|
||||
@ -2,7 +2,7 @@ import Component from '@glimmer/component';
|
||||
import { action } from '@ember/object';
|
||||
import HealthProxy from '@datahub/shared/utils/health/health-proxy';
|
||||
import { noop } from 'lodash';
|
||||
import { INachoDropdownOption } from '@nacho-ui/dropdown/types/nacho-dropdown';
|
||||
import { INachoDropdownOption } from '@nacho-ui/core/types/nacho-dropdown';
|
||||
|
||||
interface IHealthInsightCardArgs {
|
||||
// Reference to the Health metadata for the related entity if available
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<div
|
||||
class="banner-alert {{if banner.isExiting "banner-alert--exiting" "banner-alert--active"}} banner-alert--{{banner.type}}"
|
||||
>
|
||||
{{fa-icon banner.iconName class="banner-alert__icon"}}
|
||||
<FaIcon @icon={{banner.iconName}} class="banner-alert__icon" />
|
||||
<div class="banner-alert__content">
|
||||
{{#if banner.usePartial}}
|
||||
{{! TODO: META-7160 remove partial usage }}
|
||||
@ -23,7 +23,7 @@
|
||||
</div>
|
||||
{{#if banner.isDismissable}}
|
||||
<button {{action "onDismissBanner" banner}} class="banner-alert__dismiss" type="button">
|
||||
{{fa-icon "times"}}
|
||||
<FaIcon @icon="times" />
|
||||
</button>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{{#if @value}}
|
||||
<label class="search-result__tag-icon">
|
||||
{{fa-icon @options.iconName aria-label=@options.hoverText}}
|
||||
<FaIcon @icon={{@options.iconName}} aria-label={{@options.hoverText}} />
|
||||
{{#if @options.hoverText}}
|
||||
<EmberTooltip @text={{@options.hoverText}} />
|
||||
{{/if}}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { PersonEntity } from '@datahub/data-models/entity/person/person-entity';
|
||||
import { reads } from '@ember/object/computed';
|
||||
import { INachoDropdownOption } from '@nacho-ui/dropdown/types/nacho-dropdown';
|
||||
import { INachoDropdownOption } from '@nacho-ui/core/types/nacho-dropdown';
|
||||
import { IEntityLinkAttrs } from '@datahub/data-models/types/entity/shared';
|
||||
|
||||
/**
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user