feat: flatten file tree for better performance

This commit is contained in:
tdurieux committed 2024-04-26 10:32:09 +01:00
1 parent ccdc95e4a8
commit 710f7328e7
23 files changed
+516 -514

No files matched your search

@@ -34,7 +34,6 @@ const AnonymizedRepositorySchema = new Schema({
type: Boolean,
default: false,
},
originalFiles: Schema.Types.Mixed,
options: {
terms: [String],
expirationMode: { type: String },
@@ -1,5 +1,5 @@
import { Document, Model } from "mongoose";
import { RepositoryStatus, Tree } from "../../types";
import { RepositoryStatus } from "../../types";
export interface IAnonymizedRepository {
repoId: string;
@@ -11,14 +11,13 @@ export interface IAnonymizedRepository {
type: "GitHubDownload" | "GitHubStream" | "Zip";
branch?: string;
commit?: string;
commitDate?: Date,
commitDate?: Date;
repositoryId?: string;
repositoryName?: string;
accessToken?: string;
};
owner: string;
truckedFileList: boolean;
originalFiles?: Tree;
conference: string;
options: {
terms: string[];