-
Notifications
You must be signed in to change notification settings - Fork 589
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
Add selective delete to Transfer deadletter subqueues and fix the context menus for the Transfer Deadletter grid view #768
Conversation
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.
A few comments. Something is not sitting right with me about SubqueueType
but not a blocker.
public enum SubqueueType | ||
{ | ||
NotSet, | ||
NotASubqueue, |
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.
PrimaryQueue?
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.
Sure
@@ -115,6 +117,16 @@ public partial class MessageForm : Form | |||
}; | |||
#endregion | |||
|
|||
#region Public Enums | |||
public enum SubqueueType |
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.
QueueType?
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
stopwatch.Start(); | ||
|
||
if (chkRemove.Checked) | ||
{ | ||
var messageHandler = CreateDeadLetterMessageHandler(); | ||
|
||
var result = await messageHandler.MoveMessages(messageSender, | ||
sequenceNumbers, outboundMessages); | ||
sequenceNumbers, | ||
transferDLQ: subqueueType == SubqueueType.TransferDeadletter ? true: false, |
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.
Ternary condition not necessary here.
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.
Good
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.
Approving with correct account 😄
Approved twice, this must be a fantastic PR 😆 |
If I wouldn't approve with the correct account, you'd be blocked 😉 |
I know. I just couldn't resist 😄 |
Before this PR the context menu when selecting a single Transfer DLQ message looks like this:
and when selecting multiple messages it looks like this:
This PR removes the separate handling of the Transfer Deadletter context menus, they are now the same as for the Deadletter context menus. A lot of the code for handling messages in these subqueues is now shared.
Also added the feature to selectively delete Transfer deadletter messages.
The above is only added for queues and not for subscriptions as the transfer deadletter support is a bit mysterious for subscriptions.