Skip to content

Commit

Permalink
remove unused endpoints/services/repos/utils
Browse files Browse the repository at this point in the history
  • Loading branch information
KjartanE committed Mar 27, 2024
1 parent 7593715 commit 707e329
Show file tree
Hide file tree
Showing 34 changed files with 101 additions and 5,206 deletions.
121 changes: 93 additions & 28 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions api/src/errors/api-error.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect } from 'chai';
import { describe } from 'mocha';
import { ApiErrorType, ApiExecuteSQLError, ApiGeneralError, ApiUnknownError } from './api-error';
import { ApiErrorType, ApiExecuteSQLError, ApiGeneralError } from './api-error';

describe('ApiError', () => {
describe('No error value provided', () => {
Expand All @@ -14,10 +14,6 @@ describe('ApiError', () => {
expect(new ApiGeneralError(message).name).to.equal(ApiErrorType.GENERAL);
});

it('Creates Api Unknown error', function () {
expect(new ApiUnknownError(message).name).to.equal(ApiErrorType.UNKNOWN);
});

it('Creates Api execute SQL error', function () {
expect(new ApiExecuteSQLError(message).name).to.equal(ApiErrorType.EXECUTE_SQL);
});
Expand Down
13 changes: 0 additions & 13 deletions api/src/errors/api-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,6 @@ export class ApiGeneralError extends ApiError {
}
}

/**
* API encountered an unknown/unexpected error.
*
* @export
* @class ApiUnknownError
* @extends {ApiError}
*/
export class ApiUnknownError extends ApiError {
constructor(message: string, errors?: (string | Record<string, unknown>)[]) {
super(ApiErrorType.UNKNOWN, message, errors);
}
}

/**
* API executed a query against the database, but the response was missing data, or indicated the query failed.
*
Expand Down
12 changes: 0 additions & 12 deletions api/src/openapi/schemas/administrative-activity.test.ts

This file was deleted.

25 changes: 0 additions & 25 deletions api/src/openapi/schemas/administrative-activity.ts

This file was deleted.

2 changes: 1 addition & 1 deletion api/src/paths/artifact/{artifactId}/getSignedUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { defaultErrorResponses } from '../../../openapi/schemas/http-responses';
import { SecurityService } from '../../../services/security-service';
import { getLogger } from '../../../utils/logger';

const defaultLog = getLogger('paths/dwc/eml/get');
const defaultLog = getLogger('paths/artifact/{artifactId}/getSignedUrl');

export const GET: Operation = [getArtifactSignedUrl()];

Expand Down
Loading

0 comments on commit 707e329

Please sign in to comment.