jayeshchoudhary commented on code in PR #14754:
URL: https://github.com/apache/pinot/pull/14754#discussion_r1902235273
##########
pinot-controller/src/main/resources/app/pages/TaskQueueTable.tsx:
##########
@@ -110,7 +110,13 @@ const TaskQueueTable = (props) => {
if (get(res, `${taskType}`, null) === null) {
dispatch({
type: 'error',
- message: `Could not schedule task`,
+ message: `Could not schedule task.\nTask generation errors :
${get(res, 'generationErrors', 'none')}.\nTask scheduling errors : ${get(res,
'schedulingErrors', 'none')}`,
+ show: true
+ });
+ } else if (get(res, `${taskType}`, null) === '') {
+ dispatch({
+ type: 'success',
+ message: `No task to schedule`,
Review Comment:
\n won't work here.
you can add custom jsx for the formatting. try this.
```js
message: (
<Box>
<Typography>
Task generation errors : {get(res, 'generationErrors', 'none')}
</Typography>
<Typography>
Task scheduling errors : {get(res, 'schedulingErrors', 'none')}
</Typography>
</Box>
)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]