-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
draft: Add metadata around transaction name changes #5709
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
Conversation
size-limit report 📦
|
5c28e06
to
8c00b71
Compare
packages/types/src/transaction.ts
Outdated
nameChanges: TransactionNameChange[]; | ||
|
||
/** The total number of propagations that happened */ | ||
numPropagations: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is called propagations
on TransactionNameChange
, would opt for using the same shorter name here:
numPropagations: number; | |
propagations: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done - e9ccebd
packages/types/src/transaction.ts
Outdated
*/ | ||
export interface TransactionNameChange { | ||
// new name | ||
name: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed offline, we don't require the name for analysis right now. If we drop it, we further prevent the possibility of capturing unintended.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done - 3ef0b80
// new name | ||
name: string; | ||
// unix timestamp when the name was changed | ||
timestamp: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FTR: The develop spec and Relay protocol definition should use the same type as other timestamps in the protocol, allowing for ISO strings in addition to numbers.
Alright - I'm going to split this PR up so we can start reviewing/testing/and merging in components we can ship |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good!
This is a draft PR that adds metadata around transaction name changes for #5679. It's mainly being used to get feedback around the data being sent, and the general approach being used.
If folks are fine with this, I'll split this up into smaller PRs with test changes.
The schema looks like this:
In addition to an array of these transaction name changes, we also store the total amount of propagations, which should help understand the relative nature of the propagations.