-
Notifications
You must be signed in to change notification settings - Fork 590
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
Revert "Merge pull request #5348 from voxel51/prompt-on-cancel" #5404
Conversation
WalkthroughThis pull request introduces significant changes to the operator execution and cancellation mechanism across multiple files. The modifications primarily focus on removing the Changes
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (9)
💤 Files with no reviewable changes (2)
✅ Files skipped from review due to trivial changes (1)
🧰 Additional context used📓 Path-based instructions (6)app/packages/operators/src/usePanelEvent.ts (1)Pattern app/packages/operators/src/components/OperatorExecutionButton/index.tsx (1)Pattern app/packages/core/src/plugins/SchemaIO/components/OperatorExecutionButtonView.tsx (1)Pattern app/packages/operators/src/components/OperatorExecutionTrigger/index.tsx (1)Pattern app/packages/operators/src/state.ts (1)Pattern app/packages/operators/src/built-in-operators.ts (1)Pattern ⏰ Context from checks skipped due to timeout of 90000ms (7)
🔇 Additional comments (7)
Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
LGTM
executionParams?: object; | ||
onOptionSelected?: (option: OperatorExecutionOption) => void; | ||
disabled?: boolean; | ||
children: React.ReactNode; | ||
executorOptions?: OperatorExecutorOptions; | ||
}) => { |
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.
Looking at the branch I know works, there is only 1 diff @ritch
It looks like the below code needs to get removed according to the test revert PR: https://github.com/voxel51/fiftyone-teams/pull/1178/files#diff-c7ac05774e1bef71c873704cd12ecb89aea648e19b061d7953b088b5a47766dbL54
onOptionSelected?: (option: OperatorExecutionOption) => void; | ||
disabled?: boolean; | ||
}) => { | ||
const [isMenuOpen, setIsMenuOpen] = useState(false); | ||
// Anchor to use for context menu | ||
const containerRef = useRef(null); | ||
|
||
// Pass onSuccess and onError through to the operator executor. |
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.
Hmm this is only partially reverting... ugh. Going to close this and start over.
This reverts commit c5d3bf5, reversing changes made to 55709fb.
Summary by CodeRabbit
Refactor
Changes
onCancel
functionality from operator executionThe changes focus on simplifying the operator execution process by removing cancellation-related code and reducing unnecessary complexity in the implementation.