-
Notifications
You must be signed in to change notification settings - Fork 207
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
fix(zoe): add terms to invite details #7149
base: master
Are you sure you want to change the base?
Conversation
Datadog ReportBranch report: ❌ ❌ Failed Tests (2)
|
terms: { | ||
brands: {}, | ||
issuers: {}, | ||
}, |
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.
Why are empty brands
and issuers
(and a duplicate of the data that will end up in terms
) being included in the custom details? It seems a distracting and unenlightening choice to include in customTerms.
It could be anything, right? It doesn't have anything to do with the brand and issuers in the top-level terms. So it could completely contradict the real info according to Zoe. Wouldn't a better example either show that these brands and issuers are completely separate info or show that they're arbitrary fields according to the contract?
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.
The point is to add terms
itself to the regular invitation details, the part according to zoe, not the customDetails
, which is not clearly separated as the part according to the contract.
I don't understand the reference to customTerms
. IIUC, customTerms
is the part of terms
aside from the brands
and issuers
. If we think of the customTerms rather than the terms as being the parameters of the contract, that could be an argument for only including the customTerms
, not the full terms
, in the invitationDetails.
It doesn't have anything to do with the brand and issuers in the top-level terms. So it could completely contradict the real info according to Zoe.
This is the key issue. The entire purpose of this PR is to introduce only the terms
according to Zoe. The PR is trash until it succeeds at that.
The relevant lines are
const instanceRecord = state.instanceState.getInstanceRecord();
...
terms: instanceRecord.terms,
Is state.instanceState.getInstanceRecord().terms
the terms according to Zoe? In what ways can the contract influence the contents of this field?
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.
I'm confused by the following snippet. Why does terms
appear twice in these invitation details? The deeper one seems to be at the discretion of the contract (it's under customDetails
).
t.deepEqual(details, {
description: 'myInvitation',
handle: details.handle,
installation,
instance,
terms: {
brands: {},
issuers: {},
},
customDetails: {
description: 'whatever',
installation: 'whatever',
instance: 'whatever',
terms: {
brands: {},
issuers: {},
},
},
});
Which documentation needs to be updated to explain what info in an invitation is guaranteed with what veracity according to which authority? cc: @Tyrosine22 |
b1dfd96
to
7b30fa4
Compare
7b30fa4
to
51cba8d
Compare
f6f792f
to
bae637d
Compare
185d264
to
4851975
Compare
bae637d
to
78dc146
Compare
59de8ad
to
574a1a7
Compare
Datadog ReportBranch report: ❌ ❌ Failed Tests (4)
|
574a1a7
to
e5169b6
Compare
e5169b6
to
1637c63
Compare
Converted to draft because this is a durable representation change which needs upgrade coordination |
1637c63
to
72aa7c6
Compare
72aa7c6
to
5b9d838
Compare
dc1ad86
to
48725f4
Compare
acd9381
to
24b3c23
Compare
24b3c23
to
71e88e8
Compare
94d3afd
to
65a9619
Compare
65a9619
to
69d700a
Compare
69d700a
to
77cc571
Compare
77cc571
to
a8f9569
Compare
a8f9569
to
1753253
Compare
1753253
to
2fc60ac
Compare
Fixes #5903
Invitation amounts now include
terms
in the details as info accoring to zoe (as opposed to customDetails, which is info according to the contract).