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

Refactor out payload inputs to its own component and add encoding field #2370

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Alex-Tideman
Copy link
Contributor

@Alex-Tideman Alex-Tideman commented Oct 4, 2024

Description & motivation 💭

Allow users to set the encoding field of a payload for Signal, Schedule Input and Start Workflow Input to either:

  1. json/plain
  2. json/protobuf

Also update decode logic to base64 decode all payloads since all payloads will be returned base64 encoded regardless of codec server or not.

Screenshots (if applicable) 📸

Screenshot 2024-10-07 at 12 42 47 PM Screenshot 2024-10-07 at 12 45 19 PM Screenshot 2024-10-07 at 12 45 52 PM Screenshot 2024-10-07 at 12 46 01 PM

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

  • Fix JSON file upload setting input in Start Workflow
  • Can I remove if (encoding?.startsWith('json/')) { ... in decode-payload?

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

Copy link

vercel bot commented Oct 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
holocene ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 7, 2024 6:02pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant