Skip to content

Commit

Permalink
Remove storage services component.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Sep 13, 2023
1 parent 0d20247 commit 98b0c0e
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 125 deletions.
29 changes: 0 additions & 29 deletions src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
MediaData,
LanguagesData,
RightsStatusData,
StorageServicesData,
LoggingServicesData,
CatalogServicesData,
SelfTestsData,
Expand Down Expand Up @@ -98,9 +97,6 @@ export default class ActionCreator extends BaseActionCreator {
static readonly SEARCH_SERVICES = "SEARCH_SERVICES";
static readonly EDIT_SEARCH_SERVICE = "EDIT_SEARCH_SERVICE";
static readonly DELETE_SEARCH_SERVICE = "DELETE_SEARCH_SERVICE";
static readonly STORAGE_SERVICES = "STORAGE_SERVICES";
static readonly EDIT_STORAGE_SERVICE = "EDIT_STORAGE_SERVICE";
static readonly DELETE_STORAGE_SERVICE = "DELETE_STORAGE_SERVICE";
static readonly CATALOG_SERVICES = "CATALOG_SERVICES";
static readonly EDIT_CATALOG_SERVICE = "EDIT_CATALOG_SERVICE";
static readonly DELETE_CATALOG_SERVICE = "DELETE_CATALOG_SERVICE";
Expand Down Expand Up @@ -685,31 +681,6 @@ export default class ActionCreator extends BaseActionCreator {
).bind(this);
}

fetchStorageServices() {
const url = "/admin/storage_services";
return this.fetchJSON<StorageServicesData>(
ActionCreator.STORAGE_SERVICES,
url
).bind(this);
}

editStorageService(data: FormData) {
const url = "/admin/storage_services";
return this.postForm(ActionCreator.EDIT_STORAGE_SERVICE, url, data).bind(
this
);
}

deleteStorageService(identifier: string | number) {
const url = "/admin/storage_service/" + identifier;
return this.postForm(
ActionCreator.DELETE_STORAGE_SERVICE,
url,
null,
"DELETE"
).bind(this);
}

fetchCatalogServices() {
const url = "/admin/catalog_services";
return this.fetchJSON<CatalogServicesData>(
Expand Down
2 changes: 0 additions & 2 deletions src/components/ConfigTabContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import SitewideSettings from "./SitewideSettings";
import MetadataServices from "./MetadataServices";
import AnalyticsServices from "./AnalyticsServices";
import SearchServices from "./SearchServices";
import StorageServices from "./StorageServices";
import CatalogServices from "./CatalogServices";
import DiscoveryServices from "./DiscoveryServices";
import LoggingServices from "./LoggingServices";
Expand Down Expand Up @@ -52,7 +51,6 @@ export default class ConfigTabContainer extends TabContainer<
metadata: MetadataServices,
analytics: AnalyticsServices,
search: SearchServices,
storage: StorageServices,
catalogServices: CatalogServices,
discovery: DiscoveryServices,
sitewideAnnouncements: SitewideAnnouncements,
Expand Down
72 changes: 0 additions & 72 deletions src/components/StorageServices.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions src/components/__tests__/ConfigTabContainer-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import SitewideSettings from "../SitewideSettings";
import MetadataServices from "../MetadataServices";
import AnalyticsServices from "../AnalyticsServices";
import SearchServices from "../SearchServices";
import StorageServices from "../StorageServices";
import CatalogServices from "../CatalogServices";
import DiscoveryServices from "../DiscoveryServices";
import SitewideAnnouncements from "../SitewideAnnouncements";
Expand Down Expand Up @@ -72,7 +71,6 @@ describe("ConfigTabContainer", () => {
MetadataServices,
AnalyticsServices,
SearchServices,
StorageServices,
CatalogServices,
DiscoveryServices,
SitewideAnnouncements,
Expand Down Expand Up @@ -141,7 +139,6 @@ describe("ConfigTabContainer", () => {
SitewideSettings,
MetadataServices,
SearchServices,
StorageServices,
CatalogServices,
DiscoveryServices,
AnalyticsServices,
Expand Down Expand Up @@ -194,7 +191,6 @@ describe("ConfigTabContainer", () => {
SitewideSettings,
MetadataServices,
SearchServices,
StorageServices,
CatalogServices,
DiscoveryServices,
AnalyticsServices,
Expand Down
6 changes: 0 additions & 6 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,6 @@ export interface SearchServicesData extends ServicesData {
search_services: SearchServiceData[];
}

export interface StorageServiceData extends ServiceData {}

export interface StorageServicesData extends ServicesData {
storage_services: StorageServiceData[];
}

export interface CatalogServiceData extends ServiceData {}

export interface CatalogServicesData extends ServicesData {
Expand Down
4 changes: 0 additions & 4 deletions src/reducers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import loggingServices from "./loggingServices";
import metadataServices from "./metadataServices";
import analyticsServices from "./analyticsServices";
import searchServices from "./searchServices";
import storageServices from "./storageServices";
import catalogServices from "./catalogServices";
import discoveryServices from "./discoveryServices";
import registerLibraryWithDiscoveryService from "./registerLibraryWithDiscoveryService";
Expand Down Expand Up @@ -56,7 +55,6 @@ import {
MetadataServicesData,
AnalyticsServicesData,
SearchServicesData,
StorageServicesData,
CatalogServicesData,
DiscoveryServicesData,
LibraryRegistrationsData,
Expand Down Expand Up @@ -91,7 +89,6 @@ export interface State {
metadataServices: FetchEditState<MetadataServicesData>;
analyticsServices: FetchEditState<AnalyticsServicesData>;
searchServices: FetchEditState<SearchServicesData>;
storageServices: FetchEditState<StorageServicesData>;
catalogServices: FetchEditState<CatalogServicesData>;
discoveryServices: FetchEditState<DiscoveryServicesData>;
registerLibraryWithDiscoveryService: RegisterLibraryState;
Expand Down Expand Up @@ -135,7 +132,6 @@ export default combineReducers<State>({
metadataServices,
analyticsServices,
searchServices,
storageServices,
catalogServices,
discoveryServices,
registerLibraryWithDiscoveryService,
Expand Down
8 changes: 0 additions & 8 deletions src/reducers/storageServices.ts

This file was deleted.

0 comments on commit 98b0c0e

Please sign in to comment.