Conversation
Minimum allowed line rate is |
There was a problem hiding this comment.
Pull request overview
This PR backports Facebook marketplace app API changes to the discovery.launch() method. The changes refactor the launch flow to use an internal broker-based approach for reserved apps instead of directly emitting navigation events or sending app requests.
Changes:
- Replaced the direct app event emission and AppRequest flow with BrokerUtils.process_internal_main_request for reserved apps
- Removed the update_intent_source function and its usage (now commented out)
- Removed handling for non-reserved apps
Comments suppressed due to low confidence (1)
core/main/src/firebolt/handlers/discovery_rpc.rs:300
- The logic change means that non-reserved apps (apps where get_reserved_application_id returns None) will always fail with the generic error message "Discovery.launch: some failure". This represents a breaking change in behavior. In the previous implementation, there was handling for non-reserved apps that would send an AppRequest through send_app_request. The new code only handles reserved apps and fails for all other cases. If this is intentional for the fb marketplace app changes, it should be clearly documented. Otherwise, the non-reserved app path should be restored or properly handled.
Err(jsonrpsee::core::Error::Custom(String::from(
"Discovery.launch: some failure",
)))
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Vinodsathyaseelan
approved these changes
Feb 6, 2026
Nv-Delle1416
approved these changes
Feb 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
discovery.launch() api's updated.
Why
For fb marketplace apps
How
Updated rules and api's
Test
Get subscription page from app
Checklist