-
Notifications
You must be signed in to change notification settings - Fork 39
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
Update persistent subscriptions to minimum viable tier #180
Conversation
dd416de
to
c1ea7fb
Compare
c1ea7fb
to
8a32a35
Compare
src/EventStore.Client.PersistentSubscriptions/EventStorePersistentSubscriptionsClient.Info.cs
Outdated
Show resolved
Hide resolved
src/EventStore.Client.PersistentSubscriptions/EventStorePersistentSubscriptionsClient.List.cs
Outdated
Show resolved
Hide resolved
...Store.Client.PersistentSubscriptions/EventStorePersistentSubscriptionsClient.ReplayParked.cs
Outdated
Show resolved
Hide resolved
...e.Client.PersistentSubscriptions/EventStorePersistentSubscriptionsClient.RestartSubsystem.cs
Outdated
Show resolved
Hide resolved
...tore.Client.PersistentSubscriptions.Tests/SubscriptionToAll/list_persistent_subscriptions.cs
Outdated
Show resolved
Hide resolved
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.
@pvanbuijtene, changes look good, besides the missing fallbacks to HTTP API and/or adding restart subsystem that, as I recall, is not working yet correctly in each case.
src/EventStore.Client.PersistentSubscriptions/EventStorePersistentSubscriptionsClient.Create.cs
Outdated
Show resolved
Hide resolved
src/EventStore.Client.PersistentSubscriptions/PersistentSubscriptionDetail.cs
Outdated
Show resolved
Hide resolved
src/EventStore.Client.PersistentSubscriptions/PersistentSubscriptionDetail.cs
Outdated
Show resolved
Hide resolved
src/EventStore.Client.PersistentSubscriptions/PersistentSubscriptionDetail.cs
Outdated
Show resolved
Hide resolved
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.
would be worth rebasing, the names of some methods have changed in master so they'll need updating even though there aren't (many) merge conflicts
bcee6a4
to
2b8e0a5
Compare
f6b5084
to
b831653
Compare
private async Task<HttpRequestMessage> CreateRequest(string path, string query, HttpMethod method, UserCredentials? credentials, CancellationToken cancellationToken) { | ||
credentials ??= Settings.DefaultCredentials; | ||
|
||
var scheme = Settings.ConnectivitySettings.Address.Scheme; |
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.
not certain, but is this necessarily the right scheme. i wonder if ConnectivitySettings.Address is necessarily populated for clusters
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.
Changed to use: ConnectivitySettings.Insecure
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.
is ConnectivitySettings.Insecure
definitely set for single node? im not certain either way
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.
(this is now in httpfallback.cs)
src/EventStore.Client.PersistentSubscriptions/PersistentSubscriptionStatus.cs
Outdated
Show resolved
Hide resolved
src/EventStore.Client.PersistentSubscriptions/IsExternalInit.cs
Outdated
Show resolved
Hide resolved
src/EventStore.Client.PersistentSubscriptions/EventStorePersistentSubscriptionsClient.cs
Outdated
Show resolved
Hide resolved
src/EventStore.Client.PersistentSubscriptions/EventStorePersistentSubscriptionsClient.Info.cs
Outdated
Show resolved
Hide resolved
src/EventStore.Client.PersistentSubscriptions/EventStorePersistentSubscriptionsClient.List.cs
Outdated
Show resolved
Hide resolved
...e.Client.PersistentSubscriptions/EventStorePersistentSubscriptionsClient.RestartSubsystem.cs
Outdated
Show resolved
Hide resolved
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.
looks good, comments and suggestions above ^
1afa205
to
102c7f3
Compare
looks good, i think there's just the two unresolved conversations above left |
a93832a
to
797296c
Compare
looks good to me. if @thefringeninja is happy with the last commit i think we can squash and merge |
set { | ||
_insecure = value; | ||
|
||
_defaultAddress = new UriBuilder { |
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.
Changing Insecure
should not result in changing the set address
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.
It's only setting the default address which should be returned incase there is no address set. It won't change the address once it's set. This is done to keep the Address.Scheme
in sync with the Insecure
setting.
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.
Refactored it a bit to resemble this behavior.
797296c
to
dd8c9aa
Compare
dd8c9aa
to
4e82f49
Compare
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.
👍
Added: Support
GetInfo()
over gRPC for returning details of a persistent subscriptionAdded: Support
ReplayParked()
over gRPC for replaying parked messagesAdded: Support
List()
over gRPC for listing persistent subscriptionsAdded: Support
RestartSubsystem()
over gRPC for restarting the persistent subscription subsystemCloses #147
Closes #185