Skip to content
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

ui: query peer review frontend #18

Merged
merged 11 commits into from
Dec 18, 2024
Merged

ui: query peer review frontend #18

merged 11 commits into from
Dec 18, 2024

Conversation

zhangvi7
Copy link
Owner

@zhangvi7 zhangvi7 commented Dec 10, 2024

Context

  • Users need to enable this feature on desired query engine in admin settings
  • When enabled query engine is selected, the request review option is shown to allow users to request and input reviewers for their query
  • We are keeping the review on the execution, not on a query cell

Changes

  • Feature toggle on query engines to enable peer review option on a query cell
  • Peer Review Modal

Test Plan

Enabling query engine feature toggle

image

Requesting a review on an execution

review.demo.mov

Updated Request Review Modal

image

Comment on lines 95 to 97
toast.success(
'Review request sent! Your reviewers have been notified, and if approved, your query will be executed.'
);

Choose a reason for hiding this comment

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

after sending the request, where can the user to check all the requested executions and their status?

Copy link
Owner Author

@zhangvi7 zhangvi7 Dec 16, 2024

Choose a reason for hiding this comment

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

Good point, I will need to create 2nd tab in Request Review Modal above to monitor existing all reviews.
I think we can also add a link in the QueryExecutionBar to review. Will handle these in later PR, and also copy paste review link ability

Comment on lines 129 to 130
message="Tip: Before submitting your sensitive query for review, run it once to validate its syntax and feasibility. This helps identify errors early and reduces unnecessary review cycles."
/>

Choose a reason for hiding this comment

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

wanna put the tip into the public config as well?

@zhangvi7 zhangvi7 requested a review from jczhong84 December 16, 2024 19:17
@zhangvi7 zhangvi7 force-pushed the peer-review/frontend branch from d122269 to 76f8903 Compare December 17, 2024 00:52
@zhangvi7 zhangvi7 requested a review from jczhong84 December 17, 2024 00:52
@zhangvi7 zhangvi7 merged commit e3256e6 into peer_review Dec 18, 2024
@zhangvi7 zhangvi7 deleted the peer-review/frontend branch December 18, 2024 15:26
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