-
Notifications
You must be signed in to change notification settings - Fork 16
Reduce the number of fields sent to the service #288
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
base: next/core
Are you sure you want to change the base?
Changes from all commits
456f29c
a354cc9
92c31d7
dad81c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "permissions": { | ||
| "allow": [ | ||
| "Bash(dotnet build:*)", | ||
| "Bash(dotnet test:*)", | ||
| "Bash(dotnet clean:*)" | ||
| ] | ||
| } | ||
| } |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,17 +37,13 @@ protected CoreActivityBuilder(TActivity activity) | |
| public TBuilder WithConversationReference(TActivity activity) | ||
| { | ||
| ArgumentNullException.ThrowIfNull(activity); | ||
| ArgumentNullException.ThrowIfNull(activity.ChannelId); | ||
| ArgumentNullException.ThrowIfNull(activity.ServiceUrl); | ||
| ArgumentNullException.ThrowIfNull(activity.Conversation); | ||
| ArgumentNullException.ThrowIfNull(activity.From); | ||
| ArgumentNullException.ThrowIfNull(activity.Recipient); | ||
|
|
||
| WithServiceUrl(activity.ServiceUrl); | ||
| WithChannelId(activity.ChannelId); | ||
| SetConversation(activity.Conversation); | ||
| SetFrom(activity.Recipient); | ||
| SetRecipient(activity.From); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the main motivation behind these changes? If
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. APX does not require the Recipient, so I was thinking of using it only for TM |
||
|
|
||
| return (TBuilder)this; | ||
| } | ||
|
|
@@ -128,9 +124,12 @@ public TBuilder WithProperty<T>(string name, T? value) | |
| /// </summary> | ||
| /// <param name="from">The sender account.</param> | ||
| /// <returns>The builder instance for chaining.</returns> | ||
| public TBuilder WithFrom(ConversationAccount from) | ||
| public TBuilder WithFrom(ConversationAccount? from) | ||
| { | ||
| SetFrom(from); | ||
| if (from is not null) | ||
| { | ||
| SetFrom(from); | ||
| } | ||
| return (TBuilder)this; | ||
| } | ||
|
|
||
|
|
@@ -163,7 +162,10 @@ public TBuilder WithConversation(Conversation conversation) | |
| /// <returns>The builder instance for chaining.</returns> | ||
| public virtual TBuilder WithChannelData(ChannelData? channelData) | ||
| { | ||
| _activity.ChannelData = channelData; | ||
| if (channelData is not null) | ||
| { | ||
| _activity.ChannelData = channelData; | ||
| } | ||
| return (TBuilder)this; | ||
| } | ||
|
|
||
|
|
||
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.
doing this means it will always be null and not overridable by the end user. What's the tradeoff 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.
this means that we do not serialize the ServiceURL when sending the response to APX