T-10: M0.3b — Delete legacy MongoDB-writing sync-ib-exchanges operation and its web-api/web-app hooks
This commit is contained in:
parent
890761e0d5
commit
e9659f4dfb
8 changed files with 79 additions and 290 deletions
|
|
@ -59,14 +59,6 @@ const operations: PipelineOperation[] = [
|
|||
method: 'POST',
|
||||
category: 'sync',
|
||||
},
|
||||
{
|
||||
id: 'sync-ib-exchanges',
|
||||
name: 'Sync IB Exchanges',
|
||||
description: 'Sync exchanges from Interactive Brokers',
|
||||
endpoint: '/provider-mappings/ib',
|
||||
method: 'POST',
|
||||
category: 'sync',
|
||||
},
|
||||
// Maintenance operations
|
||||
{
|
||||
id: 'clear-postgresql',
|
||||
|
|
@ -89,7 +81,6 @@ export function PipelinePage() {
|
|||
syncQMExchanges,
|
||||
syncAllExchanges,
|
||||
syncQMProviderMappings,
|
||||
syncIBExchanges,
|
||||
clearPostgreSQLData,
|
||||
getExchangeStats,
|
||||
getProviderMappingStats,
|
||||
|
|
@ -136,9 +127,6 @@ export function PipelinePage() {
|
|||
case 'sync-qm-provider-mappings':
|
||||
await syncQMProviderMappings();
|
||||
break;
|
||||
case 'sync-ib-exchanges':
|
||||
await syncIBExchanges();
|
||||
break;
|
||||
case 'clear-postgresql':
|
||||
{
|
||||
const expected = `DELETE STOCK REFERENCE DATA:${clearDataType}`;
|
||||
|
|
|
|||
|
|
@ -65,11 +65,6 @@ export function usePipeline() {
|
|||
[executeOperation]
|
||||
);
|
||||
|
||||
const syncIBExchanges = useCallback(
|
||||
() => executeOperation(() => pipelineApi.syncIBExchanges()),
|
||||
[executeOperation]
|
||||
);
|
||||
|
||||
// Maintenance operations
|
||||
const clearPostgreSQLData = useCallback(
|
||||
(dataType: DataClearType, confirmation: string) =>
|
||||
|
|
@ -148,7 +143,6 @@ export function usePipeline() {
|
|||
|
||||
// Provider mapping operations
|
||||
syncQMProviderMappings,
|
||||
syncIBExchanges,
|
||||
|
||||
// Maintenance operations
|
||||
clearPostgreSQLData,
|
||||
|
|
|
|||
|
|
@ -46,10 +46,6 @@ class PipelineApiService {
|
|||
return this.request<PipelineJobResult>('/provider-mappings/qm', { method: 'POST' });
|
||||
}
|
||||
|
||||
async syncIBExchanges(): Promise<PipelineJobResult> {
|
||||
return this.request<PipelineJobResult>('/provider-mappings/ib', { method: 'POST' });
|
||||
}
|
||||
|
||||
// Status and maintenance operations
|
||||
async getSyncStatus(): Promise<PipelineJobResult> {
|
||||
return this.request<PipelineJobResult>('/status');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue