fix: filter and subscribe when using requestQueueing#23386
Merged
fix: filter and subscribe when using requestQueueing#23386
Conversation
Contributor
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
c2944f9 to
cdd83ff
Compare
adonesky1
reviewed
Mar 7, 2024
cdd83ff to
f57cd40
Compare
|
Removed dependencies detected. Learn more about Socket for GitHub ↗︎ 🚮 Removed packages: npm/@metamask/json-rpc-engine@7.3.2, npm/eth-json-rpc-filters@6.0.1, npm/eth-query@2.1.2 |
Contributor
Author
|
@metamaskbot update-policies |
e711111 to
6e42940
Compare
Collaborator
|
Policies updated |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #23386 +/- ##
===========================================
+ Coverage 68.67% 68.68% +0.01%
===========================================
Files 1106 1106
Lines 43356 43342 -14
Branches 11591 11594 +3
===========================================
- Hits 29773 29767 -6
+ Misses 13583 13575 -8 ☔ View full report in Codecov by Sentry. |
Collaborator
Builds ready [4b0d6e7]
Page Load Metrics (1266 ± 482 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
adonesky1
approved these changes
Mar 8, 2024
Contributor
adonesky1
left a comment
There was a problem hiding this comment.
LGTM! Code looks good! And Tested and its working nicely for me!
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.
Description
When using the per-dapp network selection feature flag, subscribe and filter requests are not respecting the per-dapp selection. This the main goal of this PR. Additionally, this PR correctly uses the persisted values for the feature flag. It also addresses an issue where changing the feature flag value would require dapps to be refreshed.
Related issues
Manual testing steps
note to test subscribe:
go to https://docs.metamask.io/wallet/reference/eth_subscribe/
open dev tools / console and add event listener:
window.ethereum.on('message', ({data}) => console.log(parseInt(data.result.number, 16)));hit execute on eth_subscribe
console should now start showing block updates
Basic Functionality Tests:
- Verify that subscribing to different Ethereum events (like block headers, logs, or specific event types) works as expected.
- Test filtering functionalities, ensuring that the filter correctly captures and displays events based on provided criteria.
Network-Specific Tests:
- Test the subscribe and filter functionalities across different networks (mainnet, Ropsten, Kovan, etc.) to ensure consistent behavior.
- Check for any network-specific issues or inconsistencies in the functioning of the subscribe and filter features.
Test with and without useRequestQueue Feature Flag:
- Conduct tests with the useRequestQueue feature flag enabled and verify the functioning of the subscribe and filter features.
- Repeat the tests with the feature flag disabled to ensure that the functionalities remain stable and consistent.
Repeat the above tests, but in a multi-dapp scenario
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist