Skip to content

Commit

Permalink
Merge pull request #477 from dolittle/remove-unused-code
Browse files Browse the repository at this point in the history
Remove unused code
  • Loading branch information
N00bG1rl authored Sep 29, 2023
2 parents 24f36e3 + 96aa044 commit 3a9c131
Show file tree
Hide file tree
Showing 21 changed files with 4 additions and 1,292 deletions.
145 changes: 0 additions & 145 deletions Source/SelfService/Web/admin/CreateCustomer.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions Source/SelfService/Web/admin/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { Route, Routes } from 'react-router-dom';

import { WorkSpaceLayoutWithSidePanel } from '../components/layout/workSpaceLayout';
import { Welcome } from './Welcome';
import { CreateCustomer } from './CreateCustomer';
import { AllCustomersView } from './AllCustomersView';
import { CustomerView } from './CustomerView';
import { ApplicationAccessView } from './ApplicationAccessView';
Expand All @@ -17,7 +16,6 @@ export const AdminIndex = () =>
<Routes>
<Route path='/' element={<Welcome />} />
<Route path='/customers' element={<AllCustomersView />} />
<Route path='/customer/create' element={<CreateCustomer />} />
<Route path='/customer/:customerId' element={<CustomerView />} />
<Route path='/customer/:customerId/application/:applicationId/user/access' element={<ApplicationAccessView />} />
</Routes>
Expand Down
20 changes: 1 addition & 19 deletions Source/SelfService/Web/apis/solutions/customer.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

import { getServerUrlPrefix, JobInfo, parseJSONResponse, ShortInfo, ShortInfoWithEnvironment } from './api';
import { getServerUrlPrefix, parseJSONResponse, ShortInfo, ShortInfoWithEnvironment } from './api';
import { Studio } from './studio';

export type CustomerDetailed = {
Expand Down Expand Up @@ -45,21 +45,3 @@ export async function getCustomers(): Promise<Customers> {
const data = await parseJSONResponse(response);
return data;
};

export async function createCustomer(input: HttpCustomerRequest): Promise<JobInfo | any> {
const url = `${getServerUrlPrefix()}/customer`;

const response = await fetch(
url,
{
method: 'POST',
body: JSON.stringify(input),
mode: 'cors',
headers: {
'content-type': 'application/json'
}
});

const data = await parseJSONResponse(response);
return data;
};
71 changes: 0 additions & 71 deletions Source/SelfService/Web/apis/solutions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,6 @@

import { HttpEnvironmentConnections } from './application';

export type ConnectorWebhookConfigBearer = {
token: string;
};

export type ConnectorWebhookConfigBasic = {
username: string;
password: string;
};

export type ConnectorWebhookConfig = {
domain?: string;
uriPrefix?: string;
kind: string;

// ConnectorWebhookConfigBasic
// ConnectorWebhookConfigBearer
config: any;
};

export type Connector = {
id: string;
name: string;
kind: string;
config: ConnectorWebhookConfig;
};

export type MicroserviceDolittle = {
applicationId: string;
customerId: string;
Expand Down Expand Up @@ -75,48 +49,3 @@ export type MicroserviceFormParameters = {
ingressPath: string;
hasM3Connector: boolean;
};

export type MicroserviceRawDataLogIngestor = {
dolittle: MicroserviceDolittle;
name: string;
kind: string;
environment: string;
extra: MicroserviceRawDataLogIngestorExtra;
};

export type MicroserviceRawDataLogIngestorExtra = {
headImage: string;
runtimeImage: string;
ingress: MicroserviceIngressPath;
webhooks: MicroserviceRawDataLogIngestorWebhookConfig[];
webhookStatsAuthorization: string;
writeTo: string;
};

export type MicroserviceRawDataLogIngestorWebhookConfig = {
kind: string;
uriSuffix: string;
authorization: string;
// TODO should we add the microservice that created it?
// It could be optional
};

// We want to know the state when in this microservice.
// When in rawdatlog we want to know the webhooks.
// We want to be able to update the webhooks, to update the webhooks, we need to know which rawDatelog to update the webhooks.

/* Purchase Order API - Input
LOG_LEVEL: debug
DATABASE_READMODELS_URL: "mongodb://dev-mongo.application-1649ad53-5200-4a42-bcd5-7d559e0eefd4.svc.cluster.local"
DATABASE_READMODELS_NAME: "supplier_portal_dev_poapi_readmodels"
NODE_ENV: "development"
TENANT: "4d9bb23e-aa88-4be2-9dbd-f0bb3932e9d6"
SERVER_PORT: "8080"
NATS_CLUSTER_URL: "dev-rawdatalogv1-nats.application-1649ad53-5200-4a42-bcd5-7d559e0eefd4.svc.cluster.local:4222"
NATS_START_FROM_BEGINNING: "false"
LOG_OUTPUT_FORMAT: json
https://github.com/dolittle/platform-api/blob/main/pkg/platform/doc.go
https://github.com/dolittle/platform-api/blob/main/pkg/platform/doc.go#L197-L204 copy and paste to reflect the above
*/

This file was deleted.

This file was deleted.

Loading

0 comments on commit 3a9c131

Please sign in to comment.