-
Notifications
You must be signed in to change notification settings - Fork 6
[DO NOT MERGE] Challenge Winners Processing -> dev #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
| FROM ${submissionTable} | ||
| WHERE "challengeId" IS NOT NULL | ||
| AND "type" = ${CONTEST_SUBMISSION_TYPE} | ||
| AND "type" = ${CONTEST_SUBMISSION_TYPE}::reviews."SubmissionType" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[performance]
The cast to reviews."SubmissionType" might not be necessary if the column type already matches CONTEST_SUBMISSION_TYPE. Ensure this cast is required to avoid potential performance overhead.
| FROM ${tables.submission} s | ||
| INNER JOIN ${tables.reviewSummation} rs ON rs."submissionId" = s.id | ||
| WHERE s."challengeId" = ${challenge.id} | ||
| AND s."type" = ${CONTEST_SUBMISSION_TYPE}::reviews."SubmissionType" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[performance]
The cast to reviews."SubmissionType" might not be necessary if the column type already matches CONTEST_SUBMISSION_TYPE. Ensure this cast is required to avoid potential performance overhead.
| FROM ${tables.submission} s | ||
| INNER JOIN ${tables.review} r ON r."submissionId" = s.id | ||
| WHERE s."challengeId" = ${challenge.id} | ||
| AND s."type" = ${CONTEST_SUBMISSION_TYPE}::reviews."SubmissionType" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[performance]
The cast to reviews."SubmissionType" might not be necessary if the column type already matches CONTEST_SUBMISSION_TYPE. Ensure this cast is required to avoid potential performance overhead.
| row.challengeId, | ||
| submitterHandle, | ||
| toIsoString(row.submittedAt), | ||
| toIsoString(row.submittedAt || row.createdAt), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[💡 readability]
Consider using row.submittedDate directly instead of row.submittedAt || row.createdAt to avoid potential confusion between submission and creation dates.
winners1.csv
Outdated
| LnxpmyLx2f0eBc,ffc62a9b-94ca-454b-a532-708b33db04ac,rdzianach,2013-09-28T04:26:41.983Z,90,20,1,PLACEMENT | ||
| pIzn45Te-rM06c,ffc62a9b-94ca-454b-a532-708b33db04ac,sdgun,2013-09-29T04:31:00.546Z,60,20,2,PLACEMENT | ||
| tD9We164PgpRnI,ffc62a9b-94ca-454b-a532-708b33db04ac,Kaumad,2013-09-28T18:02:55.554Z,20,20,1,PASSED_REVIEW | ||
| PrH9NO0kTiBtUM,ffc62a9b-94ca-454b-a532-708b33db04ac,Valarmathi1,2013-09-28T03:17:27.736Z,10,20,, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[❗❗ correctness]
The entry on this line has a missing value for 'Prize type'. Ensure that this is intentional and that the data processing logic can handle missing values appropriately.
No description provided.