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

Adding metrics events for EIP-1559 V2 flow #13329

Merged
merged 34 commits into from
Feb 1, 2022
Merged

Adding metrics events for EIP-1559 V2 flow #13329

merged 34 commits into from
Feb 1, 2022

Conversation

jpuri
Copy link
Contributor

@jpuri jpuri commented Jan 17, 2022

Fixes: #12107

Adding metrics events for EIP-1559 V2

@github-actions
Copy link
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.

@jpuri jpuri requested review from mcmire and brad-decker January 18, 2022 12:00
@jpuri jpuri marked this pull request as ready for review January 18, 2022 12:02
@jpuri jpuri requested a review from a team as a code owner January 18, 2022 12:02
Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Left some comments!

@jpuri jpuri requested a review from mcmire January 19, 2022 10:26
Copy link
Contributor

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

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

The event signaturess in this PR are the old metrics format, not the new...furthermore we need the fragment system in place to report the metrics in the way that product wants to use then..hold until event fragments for transactions are available

@metamaskbot
Copy link
Collaborator

@jpuri jpuri changed the base branch from develop to EIP_1559_V2_capturing_gas_defaults January 24, 2022 01:25
@jpuri jpuri force-pushed the EIP-1559_v2_metrics branch 3 times, most recently from 954dd8e to 0116132 Compare January 24, 2022 03:24
@jpuri jpuri marked this pull request as draft January 24, 2022 03:25
Copy link
Contributor

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

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

Added some additional direction. Feel free to push back on these -- this is just the design implementation I had envisioned when doing the proceeding work.

shared/constants/transaction.js Outdated Show resolved Hide resolved
app/scripts/controllers/transactions/index.js Outdated Show resolved Hide resolved
app/scripts/controllers/transactions/index.js Outdated Show resolved Hide resolved
app/scripts/metamask-controller.js Outdated Show resolved Hide resolved
ui/hooks/useTransactionEventFragment.js Show resolved Hide resolved
@jpuri jpuri force-pushed the EIP-1559_v2_metrics branch from 5c1a43d to 2bbcd62 Compare January 28, 2022 13:05
@metamaskbot
Copy link
Collaborator

Base automatically changed from EIP_1559_V2_capturing_gas_defaults to develop January 31, 2022 17:27
@metamaskbot
Copy link
Collaborator

Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

This all looks good, just some typos I noticed.

@@ -26,6 +28,11 @@ const AdvancedGasFeeSaveButton = () => {
maxPriorityFeePerGas: decGWEIToHexWEI(maxPriorityFeePerGas),
gasLimit,
});
updateTransactionEventFragment({
properties: {
gas_edit_type: 'advance',
Copy link
Contributor

Choose a reason for hiding this comment

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

advanced?

Copy link
Contributor Author

@jpuri jpuri Jan 31, 2022

Choose a reason for hiding this comment

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

my bad, Just fixed

openModal('editGasFee');
};

const openAdvanceGasFeeModal = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Advance -> Advanced

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed


const openAdvanceGasFeeModal = () => {
updateTransactionEventFragment({
gas_edit_attempted: 'advance',
Copy link
Contributor

Choose a reason for hiding this comment

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

advance -> advanced

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also fixed

@jpuri jpuri requested a review from mcmire January 31, 2022 18:53
@metamaskbot
Copy link
Collaborator

Copy link
Contributor

@adonesky1 adonesky1 left a comment

Choose a reason for hiding this comment

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

LGTM!

@jpuri jpuri merged commit cc1861a into develop Feb 1, 2022
@jpuri jpuri deleted the EIP-1559_v2_metrics branch February 1, 2022 17:53
@github-actions github-actions bot locked and limited conversation to collaborators Feb 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EIP-1559 events tracking: Edit button and Edit screen audit/implementation
7 participants