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

chore: cherry-pick #11595 #11683

Merged
merged 2 commits into from
Oct 8, 2024
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 8, 2024

This PR cherry-picks #11595

<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

This PR fixes an issue where the `Signature Requested` mobile analytics
event was not being sent when a dapp sends a sign request. Only the
`Signature Approved` analytics where being sent.

Examples:
From [MetaMask SDK Wagmi test
dapp](https://mmsdk-wagmi-test-dapp.vercel.app) (mobile browser):
```
{"event": "Signature Requested", "properties": {"account_type": "MetaMask", "chain_id": "11155111", "dapp_host_name": "wagmi.io", "request_platform": "web-mobile", "request_source": "MetaMask-SDK-Remote-Conn", "signature_type": "personal_sign", "version": "N/A"}, "type": "track"}
```
From [WalletConnect test dapp](https://appkit-lab.reown.com) (mobile
browser):
```
{"event": "Signature Requested", "properties": {"account_type": "MetaMask", "chain_id": "11155111", "dapp_host_name": "appkit-lab.reown.com", "request_platform": undefined, "request_source": "WalletConnect", "signature_type": "eth_signTypedData_v4", "version": "N/A"}, "type": "track"}
```

From iOS SDK test dapp:
```
{"event": "Signature Requested", "properties": {"account_type": "MetaMask", "chain_id": "11155111", "dapp_host_name": "dubdapp.com", "request_platform": "ios", "request_source": "MetaMask-SDK-Remote-Conn", "signature_type": "eth_signTypedData_v4", "version": "N/A"}, "type": "track"}
```

## **Related issues**

Fixes: [SDK-65](https://consensyssoftware.atlassian.net/browse/SDK-65)

## **Manual testing steps**

1. Go to this
[mmsdk-wagmi-test-dapp](https://mmsdk-wagmi-test-dapp.vercel.app/) on
mobile device
2. Connect to MetaMask
3. Sign message
4. Check the logs that `Signature Requested` is being logged to
analytics and also check Segment that the event is being received.

## **Pre-merge author checklist**

- [x] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.


[SDK-65]:
https://consensyssoftware.atlassian.net/browse/SDK-65?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
@NicolasMassart NicolasMassart marked this pull request as ready for review October 8, 2024 13:17
@NicolasMassart NicolasMassart requested a review from a team as a code owner October 8, 2024 13:17
@NicolasMassart NicolasMassart added the Run Smoke E2E Triggers smoke e2e on Bitrise label Oct 8, 2024
Copy link
Contributor Author

github-actions bot commented Oct 8, 2024

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.

@MetaMask MetaMask deleted a comment from github-actions bot Oct 8, 2024
@NicolasMassart NicolasMassart added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Oct 8, 2024
Copy link
Contributor Author

github-actions bot commented Oct 8, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: edeb9a5
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/17a98a94-a6bd-4a12-a802-5d9d14a63a2d

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

Copy link

sonarqubecloud bot commented Oct 8, 2024

@NicolasMassart NicolasMassart merged commit 06cf1b6 into release/7.33.0 Oct 8, 2024
37 of 38 checks passed
@NicolasMassart NicolasMassart deleted the chore/cherry-pick-11595 branch October 8, 2024 14:08
@github-actions github-actions bot locked and limited conversation to collaborators Oct 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
rc-cherry-picked Run Smoke E2E Triggers smoke e2e on Bitrise
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants