-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Refactor to use UUID instead of random number for txId #20952
Merged
OGPoyraz
merged 8 commits into
develop
from
1102-use-uuids-for-transaction-ids-in-extension-transaction-controller-2
Sep 27, 2023
Merged
Refactor to use UUID instead of random number for txId #20952
OGPoyraz
merged 8 commits into
develop
from
1102-use-uuids-for-transaction-ids-in-extension-transaction-controller-2
Sep 27, 2023
Conversation
This file contains 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
OGPoyraz
added
the
team-confirmations-system
DEPRECATED: please use "team-confirmations" label instead
label
Sep 19, 2023
Builds ready [b7ae5e6]
Page Load Metrics (1675 ± 64 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #20952 +/- ##
===========================================
+ Coverage 68.35% 68.36% +0.01%
===========================================
Files 1007 1008 +1
Lines 40269 40285 +16
Branches 10773 10776 +3
===========================================
+ Hits 27524 27537 +13
- Misses 12745 12748 +3
☔ View full report in Codecov by Sentry. |
Great PR! Small question, shouldn't we change here too? |
Thanks @vinistevam, it's fixed in: 520f9c4 |
Builds ready [a5bd456]
Page Load Metrics (1663 ± 74 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
matthewwalsh0
previously approved these changes
Sep 26, 2023
vinistevam
previously approved these changes
Sep 26, 2023
OGPoyraz
dismissed stale reviews from vinistevam and matthewwalsh0
via
September 26, 2023 16:04
f93203a
OGPoyraz
force-pushed
the
1102-use-uuids-for-transaction-ids-in-extension-transaction-controller-2
branch
from
September 26, 2023 16:04
a5bd456
to
f93203a
Compare
…ension-transaction-controller-2
Builds ready [de4f958]
Page Load Metrics (977 ± 414 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
…ension-transaction-controller-2
Builds ready [d889ece]
Page Load Metrics (508 ± 305 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
matthewwalsh0
approved these changes
Sep 27, 2023
vinistevam
approved these changes
Sep 27, 2023
OGPoyraz
deleted the
1102-use-uuids-for-transaction-ids-in-extension-transaction-controller-2
branch
September 27, 2023 12:08
metamaskbot
added
the
release-11.3.0
Issue or pull request that will be included in release 11.3.0
label
Sep 27, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
QA Passed
release-11.3.0
Issue or pull request that will be included in release 11.3.0
team-confirmations-system
DEPRECATED: please use "team-confirmations" label instead
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.
Explanation
Core
TransactionController
creates UUID strings as anid
for transactions. On the otherside extension creates random number while creating transactions usingcreateRandomId
.While we are on a mission for
TransactionController
alignment for both clients, for the sake of standardisation the use of UUIDs is preferred.So this PR aims to make transaction ids to be UUID instead of random number. And also creates a migration for persisted transactions to migrate from random numbers to UUIDs.
Here is the redux state dump for three completed tx after migration ran over the old ones.
3 transaction state dump.txt
Screenshots/Screencaps
No functional change.
Manual Testing Steps
This PRs manual testing could be tricky since it's using a migration and needs a history of transactions persisted in previous commit. So testing could be done in these steps:
develop
1102-use-uuids-for-transaction-ids-in-extension-transaction-controller
Apart from the case above, we need to be able to navigate between transactions on multiple transaction notification:
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 Board
label.In this case, a QA Engineer approval will be be required.