-
Notifications
You must be signed in to change notification settings - Fork 647
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
Access data of outgoing message over the context only. #3535
Comments
This is less convoluted than the incoming part. But still @Particular/nservicebus-maintainers would like to flag this as Core V6 and get the squad to approve it. Thoughts? |
@Particular/platform-dev-squad I would like to flag this V6 |
I think the change is good but since this touch the API only exposed to advanced users I propose we focus on and https://github.com/Particular/PlatformDevelopment/issues/621 and look at this one once we have a decision on the above? (since they improve the API exposed to all users and therefor have much bigger impact) |
👍 On Tuesday, March 8, 2016, Andreas Öhlund [email protected] wrote:
Don't miss the Async/Await Webinar Series |
if API changes are being proposed, then this cannot be a refactoring. |
@adamralph if the functionality stays the same, why can't it be refactoring? Is that label and it's meaning documented somewhere? |
@timbussmann the label is defined at https://github.com/Particular/PlatformDevelopment/blob/master/IssueLabels.md#type-refactoring An API change is something users will see so I would say it has to be relevant to them, and would have to form part of the release notes. |
@adamralph thanks for the link 👍 Since the whole pipeline changed drastically from v5, there isn't really an "API" change which would affect users other than it already did before. But since those label don't really imply anything right now, I don't really mind. |
Talked to @timbussmann and @andreasohlund today and we came to the conclusion that we cannot justify the value of this change since it really only affects a very small portion of users. We will live with this inconsistency and deal with it in a future release. |
When doing the API walkthrough with @indualagarsamy @mikeminutillo and @udidahan, we detected that we have inconsistency in how we expose data of the outgoing message over the context. Here are a few examples
The API is not concise and clear because we have multiple ways of accessing the headers. There are two ways we can achieve this:
.Message
on the context and only access data over that property, or.Message
Since the context is already the advanced object containing the strongly typed data for a given stage, I'd say we should just expose the necessary data on the context directly. So the code would only allow to do the following:
based on the stage. Better clarity and discoverability of the API. We would no longer confuse the users with two ways of achieving the same thing and therefore, remove questions like
for our users.
Incoming part
#3534
The text was updated successfully, but these errors were encountered: