-
Notifications
You must be signed in to change notification settings - Fork 150
feat: add export to labeling queue from sql editor #800
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: dev
Are you sure you want to change the base?
Conversation
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.
Important
Looks good to me! 👍
Reviewed everything up to e6b0c5c in 1 minute and 19 seconds. Click for details.
- Reviewed
388lines of code in5files - Skipped
0files when reviewing. - Skipped posting
5draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. frontend/app/api/projects/[projectId]/queues/[queueId]/push/route.ts:9
- Draft comment:
Removed upfront schema validation (safeParse) from the request body. Confirm that pushQueueItems now handles validation appropriately. - Reason this comment was not posted:
Comment looked like it was already resolved.
2. frontend/app/invitations/page.tsx:10
- Draft comment:
Removed debug console.log statements. Ensure this cleanup is intentional for production. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
3. frontend/components/queue/queue.tsx:80
- Draft comment:
Added new routing for items with source 'sql' to navigate to /project/{projectId}/sql/{id}. This change appears correct. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%<= threshold50%This comment is purely informative, stating that the change appears correct. It doesn't provide any actionable feedback or suggestions for improvement.
4. frontend/components/sql/export-sql-dialog.tsx:262
- Draft comment:
In ExportLabelingQueueDialog, ensure that 'id' from useParams is the intended identifier for the SQL export. Also, consider refactoring common drag‐and‐drop and column mapping logic shared with ExportDatasetDialog to reduce duplication. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 50% The first part about 'id' is asking for confirmation/verification, which violates our rules about not asking authors to verify things. The second part about refactoring is a valid code quality suggestion that points out clear duplication. However, since this is a new feature being added, suggesting refactoring of the implementation details feels premature - let's get the feature working first. I might be too quick to dismiss the refactoring suggestion - duplicated code can lead to maintenance issues and bugs. Also, the 'id' parameter usage could be a real bug if it's the wrong ID. While these concerns are valid, the comment violates our rules: it asks for verification and makes a premature optimization suggestion. If there was a clear bug with the ID usage, that would be different, but the comment just asks to verify it. Delete the comment. It primarily asks for verification and makes a premature optimization suggestion, both of which violate our review guidelines.
5. frontend/lib/actions/queue/index.ts:27
- Draft comment:
Added 'sql' as an allowed source in the PushQueueItemSchema. Verify that this change aligns with front-end usage and overall queue processing. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%<= threshold50%The comment is asking the PR author to verify alignment with front-end usage and overall queue processing, which falls under asking the author to confirm their intention or ensure behavior is intended. This violates the rules.
Workflow ID: wflow_UCPDZtKKtyyNe2xQ
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
| ); | ||
| } | ||
|
|
||
| function ExportLabelingQueueDialog({ |
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.
why do we need separate component to export to labeling queue which exactly mimics the export to dataset dialog? We just need to modify export code of original export dialog
Important
Adds feature to export SQL results to labeling queue with updated queue handling and error management.
ExportLabelingQueueDialoginexport-sql-dialog.tsxto export SQL results to a labeling queue.ExportSqlDialogto include an option for exporting to a labeling queue.pushQueueItemsinroute.tsto handle SQL source metadata.PushQueueItemSchemainqueue/index.tsto includesqlas a source.QueueInnerinqueue.tsx.ZodErrorhandling inroute.ts.page.tsx.This description was created by
for e6b0c5c. You can customize this summary. It will automatically update as commits are pushed.