Skip to content

Remove validator account from the QN#4915

Closed
chrlschwb wants to merge 10 commits intoJoystream:masterfrom
chrlschwb:fix/4903-updateVerify
Closed

Remove validator account from the QN#4915
chrlschwb wants to merge 10 commits intoJoystream:masterfrom
chrlschwb:fix/4903-updateVerify

Conversation

@chrlschwb
Copy link
Copy Markdown
Contributor

#4905

  • QN and protobufs validatorAccount fields removed
  • isVerifiedValidatoris reset to false whenever any membership metadata field is changed.

expected.externalResources?.map(asMembershipExternalResource) ?? []
)
assert.isFalse(Utils.hasDuplicates(metadata.externalResources?.map(({ type }) => type)))
assert.equal(metadata.isVerifiedValidator, false)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please keep this assert.equal(metadata.isVerifiedValidator, false). Even though it doesn't mean what we thought it did, this value should still be set tofalse when any metadata changes.

assert.equal(about, metadata.about)
assert.equal(inviteCount, 0)
assert.equal(avatar?.avatarUri, metadata.avatarUri || undefined)
assert.equal(validatorAccount, metadata.validatorAccount)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please check assert.equal(metadata.isVerifiedValidator, false) here too

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can't add command. because isVerifiedValidator is not defined.

Utils.assert(entry.__typename === 'MembershipEntryGifted', 'Query node: Invalid membership entry method')
Utils.assert(entry.membershipGiftedEvent)
assert.equal(entry.membershipGiftedEvent.id, qEvent.id)
assert.equal(validatorAccount, metadata.validatorAccount)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

And here too

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

here same

Comment on lines +66 to +74
message VerifyValidator{
required uint64 memberId = 1;
required bool is_verified = 2;
}

message RemarkMetadataAction {
oneof action {
ModeratePost moderate_post = 1;
VerifyValidator verfy_validator = 2;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is correct but it should be on #4868 not here (because you'll need it for the tests)

chrlschwb and others added 3 commits October 12, 2023 11:20
delete getMemberByID

Co-authored-by: Theophile Sandoz <theophile.sandoz@gmail.com>
@thesan thesan changed the title update verify validator Remove validator account from the QN Oct 30, 2023
@chrlschwb chrlschwb closed this Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants