Skip to content

Conversation

@olzhik11
Copy link
Member

@olzhik11 olzhik11 commented Aug 15, 2025

Important

Adds feature to export SQL results to labeling queue with updated queue handling and error management.

  • Export Feature:
    • Adds ExportLabelingQueueDialog in export-sql-dialog.tsx to export SQL results to a labeling queue.
    • Updates ExportSqlDialog to include an option for exporting to a labeling queue.
  • Queue Handling:
    • Modifies pushQueueItems in route.ts to handle SQL source metadata.
    • Updates PushQueueItemSchema in queue/index.ts to include sql as a source.
    • Adds SQL source handling in QueueInner in queue.tsx.
  • Error Handling:
    • Replaces manual error handling with ZodError handling in route.ts.
  • Misc:
    • Removes console logs from page.tsx.

This description was created by Ellipsis for e6b0c5c. You can customize this summary. It will automatically update as commits are pushed.

@olzhik11 olzhik11 self-assigned this Aug 15, 2025
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 388 lines of code in 5 files
  • Skipped 0 files when reviewing.
  • Skipped posting 5 draft 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% <= threshold 50% 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% <= threshold 50% 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% <= threshold 50% 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 Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

);
}

function ExportLabelingQueueDialog({
Copy link
Member

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

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.

3 participants