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 LoggingServices component (PP-496) #88

Merged
merged 1 commit into from
Oct 2, 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
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.