chore: assign todos (#7297)

This commit is contained in:
forehalo
2024-06-21 07:54:14 +00:00
parent e085b927f6
commit 7b3673ae82
121 changed files with 137 additions and 157 deletions

View File

@@ -27,7 +27,7 @@ export async function createApp() {
app.use(
graphqlUploadExpress({
// TODO: dynamic limit by quota
// TODO(@darksky): dynamic limit by quota maybe?
maxFileSize: 100 * 1024 * 1024,
maxFiles: 5,
})

View File

@@ -202,7 +202,7 @@ export class AuthController {
@Public()
@Get('/challenge')
async challenge() {
// TODO: impl in following PR
// TODO(@darksky): impl in following PR
return {
challenge: randomUUID(),
resource: randomUUID(),

View File

@@ -41,7 +41,6 @@ export class QuotaManagementService {
};
}
// TODO: lazy calc, need to be optimized with cache
async getUserUsage(userId: string) {
const workspaces = await this.permissions.getOwnedWorkspaces(userId);

View File

@@ -55,7 +55,7 @@ export class UserResolver {
): Promise<typeof UserOrLimitedUser | null> {
validators.assertValidEmail(email);
// TODO: need to limit a user can only get another user witch is in the same workspace
// TODO(@forehalo): need to limit a user can only get another user witch is in the same workspace
const user = await this.users.findUserWithHashedPasswordByEmail(email);
// return empty response when user not exists

View File

@@ -20,6 +20,6 @@ export class UserFeaturesInit1698652531198 {
// revert the migration
static async down(_db: PrismaClient) {
// TODO: revert the migration
// noop
}
}

View File

@@ -44,7 +44,6 @@ export class MailService {
};
}
) {
// TODO: use callback url when need support desktop app
const buttonUrl = this.url.link(`/invite/${inviteId}`);
const workspaceAvatar = invitationInfo.workspace.avatar;

View File

@@ -47,7 +47,7 @@ export class CopilotWorkflowService {
return workflow;
}
// todo: get workflow from database
// TODO(@darksky): get workflow from database
private async getWorkflow(graphName: string): Promise<WorkflowGraph> {
const graph = WorkflowGraphs.find(g => g.name === graphName);
if (!graph) {

View File

@@ -74,7 +74,7 @@ export class WorkflowNode {
private async evaluateCondition(
_condition?: string
): Promise<string | undefined> {
// todo: evaluate condition to impl decision block
// TODO(@darksky): evaluate condition to impl decision block
return this.edges[0]?.id;
}

View File

@@ -62,7 +62,7 @@ export class S3StorageProvider implements StorageProvider {
// metadata
ContentType: metadata.contentType,
ContentLength: metadata.contentLength,
// TODO: Cloudflare doesn't support CRC32, use md5 instead later.
// TODO(@forehalo): Cloudflare doesn't support CRC32, use md5 instead later.
// ChecksumCRC32: metadata.checksumCRC32,
})
);