Skip to content

Feature/appbuilder-grader#84

Draft
7dev7urandom wants to merge 5 commits into
developfrom
feature/appbuilder-grader
Draft

Feature/appbuilder-grader#84
7dev7urandom wants to merge 5 commits into
developfrom
feature/appbuilder-grader

Conversation

@7dev7urandom

Copy link
Copy Markdown

No description provided.

@7dev7urandom 7dev7urandom requested a review from FyreByrd June 10, 2026 19:32
@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ffc6b5c8-ee14-4e3f-a792-5d9bf2919361

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/appbuilder-grader

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

status String? @db.VarChar(255)
result String? @db.VarChar(2000)
publisher_id String @db.VarChar(255)
lambda_request_id String? @db.VarChar(255)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the right length limit? I don't know how best to verify this.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. This could be a char(36)

uuid String @id @default(uuid()) @db.Uuid
project_id Int
status String? @db.VarChar(255)
result String? @db.VarChar(2000)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the right length limit? I don't know how best to verify this.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an arbitrary number intended to be bigger than any reasonable value. Only an error could be larger and after trimming there should be plenty of information there still. I'm not opposed to changing this though if you want to.

'lambda.executionTimeMs': Date.now() - startTime
});

const body = result.Payload ? Buffer.from(result.Payload).toString('utf8') : '';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing an empty string to parsePayload will always result in an error. Is this what we want?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Payload should never be falsey at this point, but if it is, an empty string is falsey on the next line and parsePayload should not run unless I'm missing something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants