Skip to content

Commit

Permalink
Remove obsolet live feed FE code
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziosestito committed Jul 19, 2023
1 parent da55221 commit 5bf99e0
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 164 deletions.
58 changes: 0 additions & 58 deletions assets/js/components/LiveFeed/LiveFeed.jsx

This file was deleted.

3 changes: 0 additions & 3 deletions assets/js/components/LiveFeed/index.js

This file was deleted.

2 changes: 0 additions & 2 deletions assets/js/state/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import sapSystemListReducer from './sapSystems';
import databasesListReducer from './databases';
import catalogReducer from './catalog';
import lastExecutionsReducer from './lastExecutions';
import liveFeedReducer from './liveFeed';
import settingsReducer from './settings';
import userReducer from './user';
import rootSaga from './sagas';
Expand All @@ -30,7 +29,6 @@ export const store = configureStore({
databasesList: databasesListReducer,
catalog: catalogReducer,
lastExecutions: lastExecutionsReducer,
liveFeed: liveFeedReducer,
settings: settingsReducer,
user: userReducer,
},
Expand Down
22 changes: 0 additions & 22 deletions assets/js/state/liveFeed.js

This file was deleted.

25 changes: 0 additions & 25 deletions assets/js/state/sagas/databases.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,10 @@ import {
} from '@state/sapSystems';

import { getDatabase } from '@state/selectors';
import { appendEntryToLiveFeed } from '@state/liveFeed';
import { notify } from '@state/actions/notifications';

function* databaseRegistered({ payload }) {
yield put(appendDatabase(payload));
yield put(
appendEntryToLiveFeed({
source: payload.sid,
message: 'New Database registered.',
})
);
yield put(
notify({
text: `A new Database, ${payload.sid}, has been discovered.`,
Expand All @@ -48,12 +41,6 @@ function* databaseHealthChanged({ payload }) {
(yield select(getDatabase(payload.id)))?.sid || 'unable to determine SID';

yield put(updateDatabaseHealth(payload));
yield put(
appendEntryToLiveFeed({
source: sid,
message: `Database Health changed to ${payload.health}`,
})
);
yield put(
notify({
text: `The Database ${sid} health is ${payload.health}!`,
Expand All @@ -65,12 +52,6 @@ function* databaseHealthChanged({ payload }) {
function* databaseInstanceRegistered({ payload }) {
yield put(appendDatabaseInstance(payload));
yield put(appendDatabaseInstanceToSapSystem(payload));
yield put(
appendEntryToLiveFeed({
source: payload.sid,
message: 'New Database instance registered.',
})
);
yield put(
notify({
text: `A new Database instance, ${payload.sid}, has been discovered.`,
Expand All @@ -92,12 +73,6 @@ export function* databaseDeregistered({ payload }) {
export function* databaseInstanceDeregistered({ payload }) {
yield put(removeDatabaseInstance(payload));
yield put(removeDatabaseInstanceFromSapSystem(payload));
yield put(
appendEntryToLiveFeed({
source: payload.sid,
message: 'Database instance deregistered.',
})
);
yield put(
notify({
text: `The database instance ${payload.instance_number} has been deregistered from ${payload.sid}.`,
Expand Down
29 changes: 0 additions & 29 deletions assets/js/state/sagas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ import {
stopDatabasesLoading,
} from '@state/databases';

import { appendEntryToLiveFeed } from '@state/liveFeed';
import { setEulaVisible, setIsPremium } from '@state/settings';

import { watchNotifications } from '@state/sagas/notifications';
Expand Down Expand Up @@ -157,12 +156,6 @@ function* watchResetState() {

function* hostRegistered({ payload }) {
yield put(appendHost(payload));
yield put(
appendEntryToLiveFeed({
source: payload.hostname,
message: 'New host registered.',
})
);
yield put(
notify({
text: `A new host, ${payload.hostname}, has been discovered.`,
Expand Down Expand Up @@ -218,12 +211,6 @@ function* watchHeartbeatFailed() {

function* clusterRegistered({ payload }) {
yield put(appendCluster(payload));
yield put(
appendEntryToLiveFeed({
source: payload.name,
message: 'New cluster registered.',
})
);
yield put(
notify({
text: `A new cluster, ${payload.name}, has been discovered.`,
Expand Down Expand Up @@ -254,14 +241,6 @@ function* watchClusterDetailsUpdated() {

function* checksExecutionStarted({ payload }) {
const clusterName = yield select(getClusterName(payload.cluster_id));

yield put(
appendEntryToLiveFeed({
source: clusterName,
message: 'Checks execution started.',
})
);

yield put(
notify({
text: `Checks execution started, cluster: ${clusterName}`,
Expand All @@ -276,14 +255,6 @@ function* watchChecksExecutionStarted() {

function* checksExecutionCompleted({ payload }) {
const clusterName = yield select(getClusterName(payload.cluster_id));

yield put(
appendEntryToLiveFeed({
source: clusterName,
message: 'Checks execution completed.',
})
);

yield put(
notify({
text: `Checks execution completed, cluster: ${clusterName}`,
Expand Down
25 changes: 0 additions & 25 deletions assets/js/state/sagas/sapSystems.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,10 @@ import {
updateSAPSystem,
} from '@state/sapSystems';
import { getSapSystem } from '@state/selectors';
import { appendEntryToLiveFeed } from '@state/liveFeed';
import { notify } from '@state/actions/notifications';

function* sapSystemRegistered({ payload }) {
yield put(appendSapsystem(payload));
yield put(
appendEntryToLiveFeed({
source: payload.sid,
message: 'New SAP System registered.',
})
);
yield put(
notify({
text: `A new SAP System, ${payload.sid}, has been discovered.`,
Expand All @@ -42,12 +35,6 @@ function* sapSystemHealthChanged({ payload }) {
(yield select(getSapSystem(payload.id)))?.sid || 'unable to determine SID';

yield put(updateSapSystemHealth(payload));
yield put(
appendEntryToLiveFeed({
source: sid,
message: `SAP System Health changed to ${payload.health}`,
})
);
yield put(
notify({
text: `The SAP System ${sid} health is ${payload.health}!`,
Expand All @@ -58,12 +45,6 @@ function* sapSystemHealthChanged({ payload }) {

function* applicationInstanceRegistered({ payload }) {
yield put(appendApplicationInstance(payload));
yield put(
appendEntryToLiveFeed({
source: payload.sid,
message: 'New Application instance registered.',
})
);
}

export function* applicationInstanceMoved({ payload }) {
Expand All @@ -79,12 +60,6 @@ export function* applicationInstanceMoved({ payload }) {

export function* applicationInstanceDeregistered({ payload }) {
yield put(removeApplicationInstance(payload));
yield put(
appendEntryToLiveFeed({
source: payload.sid,
message: 'Application instance deregistered.',
})
);
yield put(
notify({
text: `The application instance ${payload.instance_number} has been deregistered from ${payload.sid}.`,
Expand Down

0 comments on commit 5bf99e0

Please sign in to comment.