This is an automated email from the ASF dual-hosted git repository.

vogievetsky pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 5b123def365 Remove logic to disable "hard rest" and "set offsets" 
button when supervisor is in suspended state (#17934)
5b123def365 is described below

commit 5b123def365c3c23b30732a773e180c97e2bc598
Author: Suraj Goel <[email protected]>
AuthorDate: Tue Apr 22 21:23:47 2025 +0530

    Remove logic to disable "hard rest" and "set offsets" button when 
supervisor is in suspended state (#17934)
    
    * There is no restriction to suspend the supervisor to reset the offsets at 
backend apis.
    * This validation forces the user to suspend which increases the consumer 
lag further.
    * Removed the conditions from UI.
---
 web-console/src/views/supervisors-view/supervisors-view.tsx | 2 --
 1 file changed, 2 deletions(-)

diff --git a/web-console/src/views/supervisors-view/supervisors-view.tsx 
b/web-console/src/views/supervisors-view/supervisors-view.tsx
index 8b692c26bfd..e8576865964 100644
--- a/web-console/src/views/supervisors-view/supervisors-view.tsx
+++ b/web-console/src/views/supervisors-view/supervisors-view.tsx
@@ -475,14 +475,12 @@ export class SupervisorsView extends React.PureComponent<
         icon: IconNames.STEP_BACKWARD,
         title: `Set ${type === 'kinesis' ? 'sequence numbers' : 'offsets'}`,
         onAction: () => this.setState({ resetOffsetsSupervisorInfo: { id: 
supervisor_id, type } }),
-        disabledReason: suspended ? undefined : `Supervisor must be suspended`,
       },
       {
         icon: IconNames.STEP_BACKWARD,
         title: 'Hard reset',
         intent: Intent.DANGER,
         onAction: () => this.setState({ resetSupervisorId: supervisor_id }),
-        disabledReason: suspended ? undefined : `Supervisor must be suspended`,
       },
       {
         icon: IconNames.CROSS,


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to