Skip to content

Commit

Permalink
Fix checktypes and linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
achyutjhunjhunwala committed Oct 24, 2024
1 parent ea2b161 commit 3192cc7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Section } from '../../../common/constants';
import type { IndexDetailsTabId } from '../../../common/constants';
import { ExtensionsService } from '../../services/extensions_service';
import { IndexDetailsSection } from '../../../common/constants';

export const getTemplateListLink = () => `/templates`;

export const getTemplateDetailsLink = (name: string, isLegacy?: boolean) => {
Expand Down Expand Up @@ -84,7 +85,7 @@ export const getComponentTemplatesLink = (usedByTemplateName?: string) => {

export const getComponentTemplateDetailLink = (name: string) => {
return `/component_templates/${encodeURIComponent(name)}`;
}
};

export const navigateToIndexDetailsPage = (
indexName: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ export const createPureDatasetQualityDetailsControllerStateMachine = (
raiseForceTimeRangeRefresh: raise('UPDATE_TIME_RANGE'),
},
guards: {
checkIfActionForbidden: (context, event) => {
checkIfActionForbidden: (_, event) => {
return (
'data' in event &&
typeof event.data === 'object' &&
Expand Down Expand Up @@ -597,6 +597,7 @@ export const createPureDatasetQualityDetailsControllerStateMachine = (
hasFailedToUpdateLastBackingIndex: (_, event) => {
return (
'data' in event &&
typeof event.data === 'object' &&
'isLatestBackingIndexUpdated' in event.data &&
!event.data.isLatestBackingIndexUpdated
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ export type DatasetQualityDetailsControllerTypeState =
| 'initializing.dataStreamSettings.loadingIntegrationsAndDegradedFields.integrationDashboards.done';
context: WithDefaultControllerState & WithDataStreamSettings & WithIntegration;
}
| {
value: 'initializing.degradedFieldFlyout.open';
context: WithDefaultControllerState;
}
| {
value:
| 'initializing.degradedFieldFlyout.open.initialized.ignoredValues.fetching'
Expand Down

0 comments on commit 3192cc7

Please sign in to comment.