Skip to content

feat: Add originMetadata to requests - #4093

Draft
FrederikBolding wants to merge 11 commits into
mainfrom
fb/add-origin-metadata
Draft

feat: Add originMetadata to requests#4093
FrederikBolding wants to merge 11 commits into
mainfrom
fb/add-origin-metadata

Conversation

@FrederikBolding

@FrederikBolding FrederikBolding commented Aug 5, 2026

Copy link
Copy Markdown
Member

Add an originMetadata field to handlers arguments that also contain origin. This should only be used when the origin is using a non-verifiable transport.

https://consensyssoftware.atlassian.net/browse/WPC-1195

@FrederikBolding
FrederikBolding force-pushed the fb/add-origin-metadata branch from a7d0d59 to 992ae4b Compare August 5, 2026 10:14
@FrederikBolding
FrederikBolding force-pushed the fb/add-origin-metadata branch from 157e037 to 5a770b9 Compare August 5, 2026 10:42
@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.59%. Comparing base (a2ea600) to head (ff3d47c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4093   +/-   ##
=======================================
  Coverage   98.59%   98.59%           
=======================================
  Files         428      429    +1     
  Lines       12485    12495   +10     
  Branches     1975     1976    +1     
=======================================
+ Hits        12310    12320   +10     
  Misses        175      175           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

case HandlerType.OnActive:
case HandlerType.OnInactive:
return { origin };
return { origin, originMetadata };

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we get originMetadata on these ? 🤔

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking in case we ever allow installation/update of Snaps on mobile, we would want to pass originMetadata there as well. Though we could remove this for now.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind keeping it, that makes sense

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.

2 participants