Skip to content

Commit

Permalink
Remove logging configuration components.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Oct 2, 2023
1 parent f465eaa commit 2d52959
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 216 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,
LoggingServicesData,
CatalogServicesData,
SelfTestsData,
PatronData,
Expand Down Expand Up @@ -85,9 +84,6 @@ export default class ActionCreator extends BaseActionCreator {
static readonly SITEWIDE_SETTINGS = "SITEWIDE_SETTINGS";
static readonly EDIT_SITEWIDE_SETTING = "EDIT_SITEWIDE_SETTING";
static readonly DELETE_SITEWIDE_SETTING = "DELETE_SITEWIDE_SETTING";
static readonly LOGGING_SERVICES = "LOGGING_SERVICES";
static readonly EDIT_LOGGING_SERVICE = "EDIT_LOGGING_SERVICE";
static readonly DELETE_LOGGING_SERVICE = "DELETE_LOGGING_SERVICE";
static readonly METADATA_SERVICES = "METADATA_SERVICES";
static readonly EDIT_METADATA_SERVICE = "EDIT_METADATA_SERVICE";
static readonly DELETE_METADATA_SERVICE = "DELETE_METADATA_SERVICE";
Expand Down Expand Up @@ -581,31 +577,6 @@ export default class ActionCreator extends BaseActionCreator {
).bind(this);
}

fetchLoggingServices() {
const url = "/admin/logging_services";
return this.fetchJSON<LoggingServicesData>(
ActionCreator.LOGGING_SERVICES,
url
).bind(this);
}

editLoggingService(data: FormData) {
const url = "/admin/logging_services";
return this.postForm(ActionCreator.EDIT_LOGGING_SERVICE, url, data).bind(
this
);
}

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

fetchMetadataServices() {
const url = "/admin/metadata_services";
return this.fetchJSON<MetadataServicesData>(
Expand Down
2 changes: 0 additions & 2 deletions src/components/ConfigTabContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import AnalyticsServices from "./AnalyticsServices";
import SearchServices from "./SearchServices";
import CatalogServices from "./CatalogServices";
import DiscoveryServices from "./DiscoveryServices";
import LoggingServices from "./LoggingServices";
import {
TabContainer,
TabContainerProps,
Expand Down Expand Up @@ -47,7 +46,6 @@ export default class ConfigTabContainer extends TabContainer<
collections: Collections,
patronAuth: PatronAuthServices,
sitewideSettings: SitewideSettings,
logging: LoggingServices,
metadata: MetadataServices,
analytics: AnalyticsServices,
search: SearchServices,
Expand Down
61 changes: 0 additions & 61 deletions src/components/LoggingServices.tsx

This file was deleted.

106 changes: 0 additions & 106 deletions src/components/__tests__/LoggingServices-test.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,6 @@ export interface SitewideSettingsData {
all_settings: SettingData[];
}

export interface LoggingServiceData extends ServiceData {}

export interface LoggingServicesData extends ServicesData {
logging_services: LoggingServiceData[];
}

export interface MetadataServiceData extends ServiceData {}

export interface MetadataServicesData 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 @@ -14,7 +14,6 @@ import individualAdmins from "./individualAdmins";
import patronAuthServices from "./patronAuthServices";
import sitewideAnnouncements from "./sitewideAnnouncements";
import sitewideSettings from "./sitewideSettings";
import loggingServices from "./loggingServices";
import metadataServices from "./metadataServices";
import analyticsServices from "./analyticsServices";
import searchServices from "./searchServices";
Expand Down Expand Up @@ -51,7 +50,6 @@ import {
PatronAuthServicesData,
SitewideAnnouncementsData,
SitewideSettingsData,
LoggingServicesData,
MetadataServicesData,
AnalyticsServicesData,
SearchServicesData,
Expand Down Expand Up @@ -85,7 +83,6 @@ export interface State {
patronAuthServices: FetchEditState<PatronAuthServicesData>;
sitewideAnnouncements: FetchEditState<SitewideAnnouncementsData>;
sitewideSettings: FetchEditState<SitewideSettingsData>;
loggingServices: FetchEditState<LoggingServicesData>;
metadataServices: FetchEditState<MetadataServicesData>;
analyticsServices: FetchEditState<AnalyticsServicesData>;
searchServices: FetchEditState<SearchServicesData>;
Expand Down Expand Up @@ -128,7 +125,6 @@ export default combineReducers<State>({
patronAuthServices,
sitewideAnnouncements,
sitewideSettings,
loggingServices,
metadataServices,
analyticsServices,
searchServices,
Expand Down
8 changes: 0 additions & 8 deletions src/reducers/loggingServices.ts

This file was deleted.

0 comments on commit 2d52959

Please sign in to comment.