[ 
https://issues.apache.org/jira/browse/ARTEMIS-5131?focusedWorklogId=945103&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-945103
 ]

ASF GitHub Bot logged work on ARTEMIS-5131:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 22/Nov/24 09:50
            Start Date: 22/Nov/24 09:50
    Worklog Time Spent: 10m 
      Work Description: andytaylor commented on code in PR #35:
URL: 
https://github.com/apache/activemq-artemis-console/pull/35#discussion_r1853644823


##########
artemis-console-extension/artemis-extension/src/artemis-extension/artemis/artemis-service.ts:
##########
@@ -589,6 +595,20 @@ class ArtemisService {
     checkCanBrowseQueue = (queueMBean: MBeanNode ): boolean => {
         return (this.DEBUG_PRIVS && queueMBean?.hasInvokeRights(BROWSE_SIG)) 
?? false;
     }
+
+    doesCopyMessageMethodExist = (broker: MBeanNode | undefined, queue: 
string): boolean => {
+        return this.doesMethodExist(broker, queue, COPY_MESSAGE_SIG);
+    }
+
+    doesMethodExist = (broker: MBeanNode | undefined, queue: string, method: 
string): boolean => {
+        if(broker) {
+            var queueMBean = broker.parent?.find(node => { 
+                return node.propertyList?.get('subcomponent') === 'queues' && 
node.name === queue 
+            })
+            return queueMBean?queueMBean.hasOperations(method): false;
+        }
+        return false;
+    }

Review Comment:
   nope that cant happen as its a 1 to 1 with address name and queue name





Issue Time Tracking
-------------------

    Worklog Id:     (was: 945103)
    Time Spent: 2h 40m  (was: 2.5h)

> Add A Copy message button to console
> ------------------------------------
>
>                 Key: ARTEMIS-5131
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5131
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Web Console
>            Reporter: Andy Taylor
>            Assignee: Andy Taylor
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> This would behave similarly to the move button and would neeed some additions 
> to QueueControl



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to