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

remove unused set_zenko_client_action #769

Merged
merged 2 commits into from
Sep 10, 2024
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
8 changes: 0 additions & 8 deletions src/react/account/details/properties/AccountKeys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@ const ButtonContainer = styled.div`
padding: ${spacing.r16};
`;

const EllipsisCell = styled.div`
overflow: hidden;
overflow-wrap: break-word;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
`;

type Props = {
account: Account;
};
Expand Down
10 changes: 0 additions & 10 deletions src/react/actions/__tests__/utils/dispatchActionsList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import {
SetManagementClientAction,
SetOIDCLogoutAction,
SetSTSClientAction,
SetZenkoClientAction,
ToggleAllObjectsAction,
ToggleObjectAction,
ZenkoAppendSearchListAction,
Expand All @@ -55,7 +54,6 @@ import {
Marker,
SearchResultList,
ZenkoClientError,
ZenkoClient as ZenkoClientInterface,
} from '../../../../types/zenko';
import {
ACCOUNT,
Expand All @@ -74,14 +72,6 @@ export const SET_MANAGEMENT_CLIENT_ACTION: SetManagementClientAction = {
//@ts-expect-error fix this when you are working on it
managementClient: new MockManagementClient(),
};
export function SET_ZENKO_CLIENT_ACTION(
zenkoClient: ZenkoClientInterface,
): SetZenkoClientAction {
return {
type: 'SET_ZENKO_CLIENT',
zenkoClient,
};
}
export const SET_STS_CLIENT_ACTION: SetSTSClientAction = {
type: 'SET_STS_CLIENT',
stsClient: new MockSTSClient(),
Expand Down
8 changes: 0 additions & 8 deletions src/react/actions/__tests__/zenko.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,7 @@ describe.skip('zenko actions', () => {
SignedUrl: '',
},
];
const mock = new MockZenkoClient();
const syncTests = [
{
it: 'should return SET_ZENKO_CLIENT action',
//@ts-expect-error fix this when you are working on it
fn: actions.setZenkoClient(mock),
//@ts-expect-error fix this when you are working on it
expectedActions: [dispatchAction.SET_ZENKO_CLIENT_ACTION(mock)],
},
{
it: 'should return ZENKO_CLEAR_ERROR action',
fn: actions.zenkoClearError(),
Expand Down
12 changes: 0 additions & 12 deletions src/react/actions/auth.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import STSClient from '../../js/STSClient';
import ZenkoClient from '../../js/ZenkoClient';
import makeMgtClient from '../../js/managementClient';
import {
ConfigAuthFailureAction,
Expand All @@ -21,7 +20,6 @@ import {
handleErrorMessage,
loadInstanceLatestStatus,
networkAuthFailure,
setZenkoClient,
} from './index';
export function setOIDCLogout(logout: OidcLogoutFunction): SetOIDCLogoutAction {
return {
Expand Down Expand Up @@ -84,16 +82,6 @@ export function loadAppConfig(config: AppConfig, user): ThunkNonStateAction {
}),
),
);
dispatch(
setZenkoClient(
new ZenkoClient(
config.zenkoEndpoint,
config.iamInternalFQDN,
config.s3InternalFQDN,
config.basePath,
),
),
);
dispatch(loadConfigSuccess());
dispatch(loadClients());
return Promise.resolve();
Expand Down
10 changes: 0 additions & 10 deletions src/react/actions/zenko.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
DispatchFunction,
GetStateFunction,
SetZenkoClientAction,
ThunkNonStatePromisedAction,
ThunkStatePromisedAction,
ZenkoAppendSearchListAction,
Expand All @@ -15,7 +14,6 @@ import {
SearchResultList,
Site,
ZenkoClientError,
ZenkoClient as ZenkoClientInterface,
} from '../../types/zenko';
import { ListObjectVersionsOutput } from 'aws-sdk/clients/s3';
import { handleAWSClientError, handleAWSError } from './error';
Expand Down Expand Up @@ -74,14 +72,6 @@ export function appendSearchListing(
list,
};
}
export function setZenkoClient(
zenkoClient: ZenkoClientInterface,
): SetZenkoClientAction {
return {
type: 'SET_ZENKO_CLIENT',
zenkoClient,
};
}

function _isFolder(key: string): boolean {
return key.substr(key.length - 1) === '/';
Expand Down
Loading