Skip to content

Commit d749918

Browse files
Removed modelcallbacks
1 parent fb8c4b4 commit d749918

File tree

13 files changed

+2
-325
lines changed

13 files changed

+2
-325
lines changed

src/components/projects/projectId/heuristics/HeuristicsHeader.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,6 @@ export default function HeuristicsHeader(props: HeuristicsHeaderProps) {
232232
</Tooltip>)}
233233
</div>
234234

235-
<div className="flex justify-center overflow-visible">
236-
<Tooltip placement="top" content={TOOLTIPS_DICT.HEURISTICS.NAVIGATE_MODEL_CALLBACKS} color="invert">
237-
<a href={`/refinery/projects/${projectId}/model-callbacks`} onClick={(e: any) => { e.preventDefault(); router.push(`/projects/${projectId}/model-callbacks`) }}
238-
className="bg-white text-gray-700 text-xs font-medium mr-3 px-4 py-2 rounded-md border border-gray-300 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
239-
Model callbacks
240-
</a>
241-
</Tooltip>
242-
</div>
243-
244235
<div className="flex justify-center overflow-visible">
245236
<Tooltip placement="top" content={<div className="w-24">{TOOLTIPS_DICT.HEURISTICS.NAVIGATE_LOOKUP_LISTS}</div>} color="invert">
246237
<a href={`/refinery/projects/${projectId}/lookup-lists`} onClick={(e: any) => { e.preventDefault(); router.push(`/projects/${projectId}/lookup-lists`) }}

src/components/projects/projectId/lookup-lists/LookupListsOverview.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,6 @@ export default function LookupListsOverview() {
165165
</Tooltip>
166166
</div>
167167

168-
<div className="flex justify-center overflow-visible">
169-
<Tooltip placement="left" content={TOOLTIPS_DICT.LOOKUP_LISTS_OVERVIEW.NAVIGATE_MODEL_CALLBACKS} color="invert">
170-
<a href={`/refinery/projects/${projectId}/model-callbacks`} onClick={(e: any) => { e.preventDefault(); router.push(`/projects/${projectId}/model-callbacks`) }}
171-
className=" bg-white text-gray-700 text-xs font-medium mr-3 px-4 py-2 rounded-md border border-gray-300 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
172-
Model callbacks
173-
</a>
174-
</Tooltip>
175-
</div>
176168
</div>
177169
</div>
178170
{lookupLists && lookupLists.length == 0 ? (

src/components/projects/projectId/model-callbacks/DeleteModelCallbacksModal.tsx

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/components/projects/projectId/model-callbacks/ModelCallbacks.tsx

Lines changed: 0 additions & 206 deletions
This file was deleted.

src/pages/projects/[projectId]/model-callbacks/index.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/reduxStore/states/modal.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ const initialState: Modals = {
116116
[ModalEnum.REMOVE_LOOKUP_LIST]: {
117117
open: false
118118
},
119-
[ModalEnum.DELETE_MODEL_CALLBACKS]: {
120-
open: false
121-
},
122119
[ModalEnum.DELETE_HEURISTICS]: {
123120
open: false
124121
},

src/services/base/heuristic.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ export function getLabelingFunctionOn10Records(projectId: string, heuristicId: s
2929
jsonFetchWrapper(finalUrl, FetchType.GET, onResult);
3030
}
3131

32-
export function getModelCallbacksOverviewData(projectId: string, onResult: (result: any) => void) {
33-
const finalUrl = `${heuristicEndpoint}/${projectId}/model-callbacks-overview-data`;
34-
jsonFetchWrapper(finalUrl, FetchType.GET, onResult);
35-
}
36-
3732
export function getAccessLink(projectId: string, linkId: string, onResult: (result: any) => void) {
3833
const finalUrl = `${heuristicEndpoint}/${projectId}/access-link?link_id=${linkId}`;
3934
jsonFetchWrapper(finalUrl, FetchType.GET, onResult);

src/services/base/route-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class RouteManager {
99
overview: { active: false, checkFor: ['overview'] },
1010
data: { active: false, checkFor: ['data-browser', 'edit-records'] },
1111
labeling: { active: false, checkFor: ['labeling', 'record-ide'] },
12-
heuristics: { active: false, checkFor: ['heuristics', 'lookup-lists', 'model-callbacks', 'labeling-function', 'active-learning'] },
12+
heuristics: { active: false, checkFor: ['heuristics', 'lookup-lists', 'labeling-function', 'active-learning'] },
1313
settings: { active: false, checkFor: ['settings', 'attributes', 'upload-records'] },
1414
admin: { active: false, checkFor: ['admin'] },
1515
}

src/types/components/projects/projectId/model-callbacks.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/types/shared/modal.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ export enum ModalEnum {
4040
VIEW_RECORD_DETAILS = "VIEW_RECORD_DETAILS",
4141
PASTE_LOOKUP_LIST = "PASTE_LOOKUP_LIST",
4242
REMOVE_LOOKUP_LIST = "REMOVE_LOOKUP_LIST",
43-
DELETE_MODEL_CALLBACKS = "DELETE_MODEL_CALLBACKS",
4443
DELETE_HEURISTICS = "DELETE_HEURISTICS",
4544
ADD_LABELING_FUNCTION = "ADD_LABELING_FUNCTION",
4645
ADD_ACTIVE_LEARNER = "ADD_ACTIVE_LEARNER",

0 commit comments

Comments
 (0)