-
Notifications
You must be signed in to change notification settings - Fork 23
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
fix(orchestrator): Add retrigger option to UI using v2 API #300
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Lior Soffer <[email protected]>
Signed-off-by: Lior Soffer <[email protected]>
Signed-off-by: Lior Soffer <[email protected]>
Missing ChangesetsThe following package(s) are changed by this PR but do not have a changeset:
See CONTRIBUTING.md for more information about how to add changesets. Changed Packages
|
@@ -148,6 +149,7 @@ export class SonataFlowService { | |||
|
|||
if (!response.ok) { | |||
const json = await response.json(); | |||
json.details = `failedNodeId:${json?.failedNodeId}`; |
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.
Please correct me, is that augmentation for the generic error handler to include that in the user-facing message?
If so, we can use it but please make sure we do not loose the details
which might be potentially sent by the server.
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.
yes it is the purpose. do you think is needed to provide the user the failing node?
setAnchorEl(event.currentTarget); | ||
}; | ||
|
||
const handleCloseMenue = () => { |
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.
const handleCloseMenue = () => { | |
const handleCloseMenu = () => { |
anchorEl={anchorEl} | ||
open={Boolean(anchorEl)} | ||
onClose={handleCloseMenue} | ||
getContentAnchorEl={null} |
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.
Is that property needed?
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.
getContentAnchorEl
determines how the menu is positioned relative to the button
} | ||
}; | ||
|
||
const [anchorEl, setAnchorEl] = React.useState<null | HTMLElement>(null); |
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.
Storing HTML elements in React state is gross. Can we use useRef
instead?
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.
I agree
Signed-off-by: Lior Soffer <[email protected]>
Quality Gate passedIssues Measures |
resolve FLPATH-1684
Screencast.from.2025-01-19.17-23-20.mp4