Visitar URL original
Automatically parse feedback value · Issue #184 · microsoft/teams.ts · GitHub
Skip to content

Automatically parse feedback value #184

Open

Description

Image

When feedback is submitted, the actionValue.feedback comes in as a JSON.

Should we parse this thing to help out devs? Or leave it up to them? I see a case for both.
If we parse it for them, improved devex
If we don't, they can store the whole thing, and if more fields get added, they won't need to change anything.
Though, I think most people are parsing it and storing the text directly...

Thoughts?

Activity

  1. corinagum commented on Jun 5, 2025

    @corinagum
    Collaborator

    Personally I lean towards providing the JSON. Parsing it "modifying" the response received and therefore makes us more opinionated, which we want to avoid where possible.

  2. lilyydu commented on Jun 5, 2025

    @lilyydu
    Contributor

    also lean towards providing JSON

    • if more info gets added to the feedback obj, we'll be responsible for parsing additional properties in the future
    • keeping as json is more flexible for dev if ^ occurs
    • it's probably not a lot of code to parse it for them, but it could lead to bugs, and gives us more responsibility/maintenance for the future
  3. yash01699 commented on Sep 27, 2025

    @yash01699

    Hi, can I take up this issue if this is still open and if you guys are still planning on going ahead with this change?

  4. heyitsaamir commented on May 14, 2026

    @heyitsaamir
    CollaboratorAuthor

    Closing this out based on the discussion above. The current direction is to keep the raw feedback JSON rather than parse it for developers, since parsing would make the SDK more opinionated and create future maintenance/schema risk.

  5. heyitsaamir commented on May 14, 2026

    @heyitsaamir
    CollaboratorAuthor

    Reopening — closed by mistake during a local triage pass. Sorry for the noise.

  6. yash01699 commented on May 15, 2026

    @yash01699

    Aamir Jawaid (@heyitsaamir) could you assign this to me if this is still available?

  7. heyitsaamir commented on May 15, 2026

    @heyitsaamir
    CollaboratorAuthor

    Yashasvi Nancherla (@yash01699) thank you -- we are just triaging some of these. Let me check with the team if this is something we should do or not. I feel like we should, but want to get consensus.

    Value comes as a string right now, and we parse it as a feedback object. If we were to do this, we would need to do a step after the router where we allow objects to be processed before they are sent to the handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions