Repository navigation
feat: add inactive topic policies command for topic - #444
Merged
Merged
Conversation
nodece
force-pushed
the
inactive_topic
branch
6 times, most recently
from
September 9, 2021 06:08
e1d1290 to
16f8e96
Compare
24 of 61 tasks
nodece
force-pushed
the
inactive_topic
branch
from
September 13, 2021 08:21
16f8e96 to
8b43a8f
Compare
zymap
approved these changes
Sep 22, 2021
|
|
||
| import ( | ||
| "github.com/streamnative/pulsarctl/pkg/cmdutils" | ||
|
|
| "github.com/stretchr/testify/assert" | ||
| ) | ||
|
|
||
| func TestInactiveTopicCmd(t *testing.T) { |
Contributor
There was a problem hiding this comment.
We also need to add some failure case tests.
Contributor
Author
There was a problem hiding this comment.
I think we just need to test the flag required by set-inactive-topic-policies.
Contributor
There was a problem hiding this comment.
The failure case is used to check the error response is parsed correctly at the pulsarctl
Contributor
Author
There was a problem hiding this comment.
Do you want to test the response from pulsar?
zymap
self-requested a review
September 22, 2021 01:28
nodece
force-pushed
the
inactive_topic
branch
from
September 24, 2021 02:08
8b43a8f to
07bffc2
Compare
nodece
force-pushed
the
inactive_topic
branch
2 times, most recently
from
September 24, 2021 06:19
b8246b2 to
851cdeb
Compare
Signed-off-by: Zixuan Liu <[email protected]>
nodece
force-pushed
the
inactive_topic
branch
2 times, most recently
from
September 24, 2021 12:29
a97367d to
57cdcf0
Compare
zymap
approved these changes
Sep 28, 2021
nodece
added a commit
that referenced
this pull request
Nov 12, 2021
Signed-off-by: Zixuan Liu <[email protected]> ### Changes background from #246, the PR implements the following commands: - `pulsarctl topics get-inactive-topic-policies <topic> --applied <bool>` - `pulsarctl topics remove-inactive-topic-policies <topic>` - `pulsarctl topics set-inactive-topic-policies <topic> --enable-delete-while-inactive <bool> --max-inactive-duration <string> --delete-mode <delete_when_no_subscriptions|delete_when_subscriptions_caught_up>` (cherry picked from commit db4dda4)
tisonkun
pushed a commit
to tisonkun/pulsar-client-go
that referenced
this pull request
Aug 15, 2023
…sarctl#444) Signed-off-by: Zixuan Liu <[email protected]> ### Changes background from streamnative/pulsarctl#246, the PR implements the following commands: - `pulsarctl topics get-inactive-topic-policies <topic> --applied <bool>` - `pulsarctl topics remove-inactive-topic-policies <topic>` - `pulsarctl topics set-inactive-topic-policies <topic> --enable-delete-while-inactive <bool> --max-inactive-duration <string> --delete-mode <delete_when_no_subscriptions|delete_when_subscriptions_caught_up>`
tisonkun
pushed a commit
to apache/pulsar-client-go
that referenced
this pull request
Aug 16, 2023
…sarctl#444) Signed-off-by: Zixuan Liu <[email protected]> ### Changes background from streamnative/pulsarctl#246, the PR implements the following commands: - `pulsarctl topics get-inactive-topic-policies <topic> --applied <bool>` - `pulsarctl topics remove-inactive-topic-policies <topic>` - `pulsarctl topics set-inactive-topic-policies <topic> --enable-delete-while-inactive <bool> --max-inactive-duration <string> --delete-mode <delete_when_no_subscriptions|delete_when_subscriptions_caught_up>`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Zixuan Liu [email protected]
Changes
background from #246, the PR implements the following commands:
pulsarctl topics get-inactive-topic-policies <topic> --applied <bool>pulsarctl topics remove-inactive-topic-policies <topic>pulsarctl topics set-inactive-topic-policies <topic> --enable-delete-while-inactive <bool> --max-inactive-duration <string> --delete-mode <delete_when_no_subscriptions|delete_when_subscriptions_caught_up>