Skip to content
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

UpdateActivityAsync removes / overrides labels from messages #6660

Closed
14 tasks
mluebbec opened this issue Aug 9, 2024 · 1 comment
Closed
14 tasks

UpdateActivityAsync removes / overrides labels from messages #6660

mluebbec opened this issue Aug 9, 2024 · 1 comment
Labels
bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team.

Comments

@mluebbec
Copy link

mluebbec commented Aug 9, 2024

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.

Version

Bot Framework DotNet SDK 4.22.4

Describe the bug

If I create a new message activity and label it with "AI Generated" and "confidential," and then update this message again with UpdateActivityAsync in the second step, the labels "AI generated" and "Confidential" disappear.

The issue also occurs when the update activity has the same entities as it did during creation.

To Reproduce

Steps to reproduce the behavior:

Create a new message activity with the following code:

var activity = Activity.CreateMessageActivity();
activity.Text = "Insert text here";
activity.Entities.Add(new Entity("https://schema.org/Message") { Properties = JObject.FromObject(new { additionalType = new[] { "AIGeneratedContent" }, usageInfo = new { name = "Confidential", description = "Contains Sensitive Information" } }) });
var response = await context.SendActivityAsync(activity);

The message has the following labels:
image

Update the message with the following code:

var updateActivity = Activity.CreateMessageActivity();
updateActivity.Id = response.Id;
updateActivity.Text = "Insert text here (update)";
updateActivity.Entities.Add(new Entity("https://schema.org/Message") { Properties = JObject.FromObject(new { additionalType = new[] { "AIGeneratedContent" }, usageInfo = new { name = "Confidential", description = "Contains Sensitive Information" } }) });
await context.UpdateActivityAsync(updateActivity);

After updating, the message no longer has any labels - except of the "bearbeitet" (edited) one..:
image

Expected behavior

UpdateActivityAsync should not delete the labels.

Additional context

Add any other context about the problem here.

Tracking Status

Dotnet SDK TODO

  • PR
  • Merged

Javascript SDK TODO

  • PR
  • Merged

Python SDK TODO

  • PR
  • Merged

Java SDK TODO

  • PR
  • Merged

Samples TODO

  • PR
  • Merged

Docs TODO

  • PR
  • Merged

Tools TODO

  • PR
  • Merged
@mluebbec mluebbec added bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team. labels Aug 9, 2024
@mluebbec
Copy link
Author

Issue seems to be resolved.
Everything now seems to work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team.
Projects
None yet
Development

No branches or pull requests

1 participant