Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontend: fix npm lint warnings #1808

Merged
merged 3 commits into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export class DataJobExecutionsPageComponent
OnTaurusModelInit,
OnTaurusModelLoad,
OnTaurusModelChange,
OnTaurusModelError
OnTaurusModelError,
OnInit
ivakoleva marked this conversation as resolved.
Show resolved Hide resolved
{
readonly uuid = 'DataJobExecutionsPageComponent';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ export class DataJobExecutionToGridDataJobExecution {
}
}

static convertToDataJobExecution(
static convertToDataJobExecution = (
DeltaMichael marked this conversation as resolved.
Show resolved Hide resolved
dataJobExecution: DataJobExecutions,
): GridDataJobExecution[] {
): GridDataJobExecution[] => {
const formatDeltaPipe = new FormatDeltaPipe();

return dataJobExecution.reduce((accumulator, execution) => {
Expand All @@ -65,7 +65,7 @@ export class DataJobExecutionToGridDataJobExecution {

return accumulator;
}, [] as GridDataJobExecution[]);
}
};

static getStatusColorsMap() {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export class DataJobUtil {
/**
* ** Predicate for Job Running.
*/
static isJobRunningPredicate(
static isJobRunningPredicate = (
DeltaMichael marked this conversation as resolved.
Show resolved Hide resolved
jobExecution: DataJobExecution | DataJobExecutionDetails,
): boolean {
): boolean => {
return (
(jobExecution as DataJobExecution).status ===
DataJobExecutionStatus.RUNNING ||
Expand All @@ -34,7 +34,7 @@ export class DataJobUtil {
(jobExecution as DataJobExecutionDetails).status ===
DataJobExecutionStatusDeprecated.SUBMITTED
);
}
};

/**
* ** Find if some Job is running in provided Executions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const ErrorEscalation: PlaceholderAutoSupportedStates = {

const ErrorImgSource: PlaceholderAutoSupportedStates = {
Generic: 'assets/images/placeholder/server-error.svg',
Offline: null,
Offline: '',
DeltaMichael marked this conversation as resolved.
Show resolved Hide resolved
NotFound: 'assets/images/placeholder/not-found.svg'
};

Expand Down