Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
devcatalin committed Feb 21, 2024
1 parent 8409413 commit bee0b77
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
15 changes: 1 addition & 14 deletions packages/web/src/plugins/rtk/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import {Provider as ReduxProvider} from 'react-redux';

import {configureStore} from '@reduxjs/toolkit';

import {createLogger} from 'redux-logger';

import {createPlugin} from '@testkube/plugins';

export interface RtkService {
Expand All @@ -23,18 +21,7 @@ rtkPlugin.overlay.provider(() => {
const store = useRef(
configureStore({
reducer: services.reduce((reducers, service) => ({...reducers, [service.reducerPath]: service.reducer}), {}),
middleware: getDefaultMiddleware => [
...getDefaultMiddleware(),
createLogger({
predicate: (_, action) => {
return (
action.type.startsWith('testsApi/executeQuery') || action.type.startsWith('testSuitesApi/executeQuery')
);
},
collapsed: true,
}),
...services.map(service => service.middleware),
],
middleware: getDefaultMiddleware => [...getDefaultMiddleware(), ...services.map(service => service.middleware)],
})
);

Expand Down
3 changes: 0 additions & 3 deletions packages/web/src/plugins/tests-and-test-suites/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ export default createPlugin('oss/tests-and-test-suites')
.data({useLogOutput, useLogOutputPick, useLogOutputField, useLogOutputSync})

.init(tk => {
// tk.slots.rtkServices.add(testSuitesApi);
// tk.slots.rtkServices.add(testsApi);

// TODO: Instead of using tk.sync, use all the necessities directly in the plugin components
tk.data.setExecutionTab = tk.sync(() => {
const entityId = tk.data.useEntityDetails(x => x.id);
Expand Down

0 comments on commit bee0b77

Please sign in to comment.