Skip to content

Commit

Permalink
[db] Remove theia plugin db model - WEB-168 (#17255)
Browse files Browse the repository at this point in the history
* [db] Remove theia plugin db model

* retest
  • Loading branch information
easyCZ authored and pull[bot] committed Aug 30, 2023
1 parent 95af9be commit 4e0460b
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 184 deletions.
5 changes: 0 additions & 5 deletions components/gitpod-db/src/container-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import { DBWithTracing, bindDbWithTracing, TracedWorkspaceDB, TracedUserDB, Trac
import { OneTimeSecretDB } from "./one-time-secret-db";
import { TypeORMAppInstallationDBImpl } from "./typeorm/app-installation-db-impl";
import { AppInstallationDB } from "./app-installation-db";
import { TheiaPluginDBImpl } from "./typeorm/theia-plugin-db-impl";
import { TheiaPluginDB } from "./theia-plugin-db";
import { TypeORMOneTimeSecretDBImpl } from "./typeorm/one-time-secret-db-impl";
import { PendingGithubEventDB, TransactionalPendingGithubEventDBFactory } from "./pending-github-event-db";
import {
Expand Down Expand Up @@ -103,9 +101,6 @@ export const dbContainerModule = new ContainerModule((bind, unbind, isBound, reb
bind(TypeORMAppInstallationDBImpl).toSelf().inSingletonScope();
bind(AppInstallationDB).toService(TypeORMAppInstallationDBImpl);

bind(TheiaPluginDBImpl).toSelf().inSingletonScope();
bind(TheiaPluginDB).toService(TheiaPluginDBImpl);

bind(TypeORMOneTimeSecretDBImpl).toSelf().inSingletonScope();
bind(OneTimeSecretDB).toService(TypeORMOneTimeSecretDBImpl);
bindDbWithTracing(TracedOneTimeSecretDB, bind, OneTimeSecretDB).inSingletonScope();
Expand Down
1 change: 0 additions & 1 deletion components/gitpod-db/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export * from "./traced-db";
export * from "./app-installation-db";
export * from "./user-message-views-db";
export * from "./user-storage-resources-db";
export * from "./theia-plugin-db";
export * from "./one-time-secret-db";
export * from "./auth-provider-entry-db";
export * from "./license-db";
Expand Down
5 changes: 0 additions & 5 deletions components/gitpod-db/src/tables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,6 @@ export class GitpodTableDescriptionProvider implements TableDescriptionProvider
primaryKeys: ["domain"],
timeColumn: "_lastModified",
},
{
name: "d_b_theia_plugin",
primaryKeys: ["id"],
timeColumn: "_lastModified",
},
{
name: "d_b_user_env_var",
primaryKeys: ["id", "userId"],
Expand Down
25 changes: 0 additions & 25 deletions components/gitpod-db/src/theia-plugin-db.ts

This file was deleted.

47 changes: 0 additions & 47 deletions components/gitpod-db/src/typeorm/entity/db-theia-plugin.ts

This file was deleted.

80 changes: 0 additions & 80 deletions components/gitpod-db/src/typeorm/theia-plugin-db-impl.ts

This file was deleted.

21 changes: 0 additions & 21 deletions components/gitpod-protocol/src/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1550,27 +1550,6 @@ export interface Configuration {
readonly garbageCollectionStartDate: number;
}

export interface TheiaPlugin {
id: string;
pluginName: string;
pluginId?: string;
/**
* Id of the user which uploaded this plugin.
*/
userId?: string;
bucketName: string;
path: string;
hash?: string;
state: TheiaPlugin.State;
}
export namespace TheiaPlugin {
export enum State {
Uploading = "uploading",
Uploaded = "uploaded",
CheckinFailed = "checkin-failed",
}
}

export interface TermsAcceptanceEntry {
readonly userId: string;
readonly termsRevision: string;
Expand Down

0 comments on commit 4e0460b

Please sign in to comment.