-
Notifications
You must be signed in to change notification settings - Fork 698
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
Added support for Subject reporting on StreamInfo requests #1010
Conversation
jsm.go
Outdated
DeletedDetails bool `json:"deleted_details,omitempty"` | ||
// SubjectsFilter When set, returns information on the matched subjects - can be a wildcard or wild-carded subject |
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.
when set (lower) and wildcarded
@@ -1702,6 +1702,42 @@ func TestPurgeStream(t *testing.T) { | |||
} | |||
} | |||
|
|||
func TestStreamInfoSubjectInfo(t *testing.T) { |
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.
There already is a test called TestStreamInfo
which tests basic stream info request (without parameters) as well as request with DeletedDetails == true
.
So it would be nice to either extend this existing test with additional cases for SubjectInfo
or at least rename TestStreamInfo
to e.g. TestStreamInfoDeletedDetails
to be consistent in naming.
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.
Renaming the other test to TestStreamInfoDeletedDetails
…a subject/wildcard that instruct the request to provide information on matching subjects in `StreamState`. [FEAT] added `NumSubjects` to `StreamState` enabling report for the number of subjects in the stream [FEAT] added `Subjects` to `StreamState` a map of subject to number of messages in the subject which gets populated if the `StreamInfoRequest` specifies a `SubjectFilter` FIX #1009
LGTM |
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.
LGTM
[FEAT] added
SubjectFilter
toStreamInfoRequest
. The field takes a subject/wildcard that instruct the request to provide information on matching subjects inStreamState
.[FEAT] added
NumSubjects
toStreamState
enabling report for the number of subjects in the stream[FEAT] added
Subjects
toStreamState
a map of subject to the number of messages with the subject which gets populated if theStreamInfoRequest
specifies aSubjectFilter
FIX #1009