Fix disabled 'eth_sign' event & add 'Request Disabled' event type#18007
Fix disabled 'eth_sign' event & add 'Request Disabled' event type#18007
Conversation
|
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. |
|
moving back to draft. More discussions are being had to plan how we will want to handle this event edit: |
| method === MESSAGE_TYPE.ETH_SIGN && | ||
| res.error?.code === errorCodes.rpc.methodNotFound; | ||
|
|
||
| const isDisabledRequest = isDisabledEthSignAdvancedSetting; |
There was a problem hiding this comment.
hey, reason for duplicating the variable ?
There was a problem hiding this comment.
hey, I did this for readability down the line. hope it helps, unless it's just me - In that case, happy to change it back
Builds ready [5aa2298]
Page Load Metrics (1703 ± 72 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov Report
@@ Coverage Diff @@
## develop #18007 +/- ##
========================================
Coverage 63.44% 63.44%
========================================
Files 903 903
Lines 35267 35281 +14
Branches 8920 8925 +5
========================================
+ Hits 22373 22383 +10
- Misses 12894 12898 +4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
oh I am still seeing the Signature Requested and Signature Approved event sent to Segment, with eth_sign disabled and no Request Disabled event thrown.
I believe I have the last changes 🤔 : could you double check this behaviour to discard it's just me? 🙏 :
segment-eth-sign.mp4
|
oof, great catch @seaona! Derp.. when we decided to exclude I'm reworking this PR now |
Builds ready [bf06192]
Page Load Metrics (1625 ± 65 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
|
thank you @digiwand ! Now I can see that whenever we have
eth_sign_disabled.mp4When we have
|
Explanation
Fixes #17974
note:
Screenshots/Screencaps
Before
After
Manual Testing Steps
Pre-merge author checklist
Pre-merge reviewer checklist
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the
Extension QA Boardlabel.In this case, a QA Engineer approval will be be required.