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

Resolve Web UI Beta Testing Bugs #7471

Merged
merged 38 commits into from
Oct 10, 2020
Merged

Resolve Web UI Beta Testing Bugs #7471

merged 38 commits into from
Oct 10, 2020

Conversation

rauljordan
Copy link
Contributor

@rauljordan rauljordan commented Oct 8, 2020

What type of PR is this?

Feature

What does this PR do? Why is it needed?

Which issues(s) does this PR fix?

  • Includes the validator status in the list balances response
  • Adds a default wallet response endpoint
  • Logs in a user if they try to signup and already have an account
  • Ensures we have stronger password validation in place
  • Use a package level cache for keys in the keymanagers
  • Remove SendDepositTx functionality in derived keymanager
  • Only send a wallet over the WalletInitializedFeed if we have validating public keys

Other notes for review

Diff large due to mocks

@rauljordan rauljordan marked this pull request as ready for review October 8, 2020 20:57
@rauljordan rauljordan requested a review from a team as a code owner October 8, 2020 20:57
@rauljordan rauljordan marked this pull request as draft October 8, 2020 20:57
@rauljordan rauljordan marked this pull request as ready for review October 8, 2020 21:46
validator/rpc/auth.go Outdated Show resolved Hide resolved
validator/rpc/auth.go Outdated Show resolved Hide resolved
validator/rpc/wallet.go Outdated Show resolved Hide resolved
validator/rpc/wallet.go Outdated Show resolved Hide resolved
validator/rpc/wallet.go Show resolved Hide resolved
@rauljordan rauljordan self-assigned this Oct 9, 2020
@rauljordan rauljordan added API Api related tasks Ready For Review labels Oct 9, 2020
DepositDataResponse accounts_created = 2;
}

message DefaultWalletResponse {
Copy link
Member

Choose a reason for hiding this comment

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

Is a new message required? This looks like WalletResponse.

@@ -18,6 +18,11 @@ service Wallet {
body: "*"
};
}
rpc DefaultWalletPath(google.protobuf.Empty) returns (DefaultWalletResponse) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
rpc DefaultWalletPath(google.protobuf.Empty) returns (DefaultWalletResponse) {
rpc DefaultWallet(google.protobuf.Empty) returns (WalletResponse) {

I think the "Path" part doesn't align with the path. Also, can you use WalletResponse?
That seems to make more sense to me.

@@ -18,6 +18,11 @@ service Wallet {
body: "*"
};
}
rpc DefaultWalletPath(google.protobuf.Empty) returns (DefaultWalletResponse) {
option (google.api.http) = {
get: "/v2/validator/wallet/default",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
get: "/v2/validator/wallet/default",
get: "/v2/validator/wallet/config/default",

Recommend: add config to the path for clarity.
I was thinking that /v2/validator/wallet would return a default wallet, so the distinction wasn't very clear between those two API routes.

validator/web/handler_test.go Outdated Show resolved Hide resolved
prestonvanloon
prestonvanloon previously approved these changes Oct 9, 2020
Copy link
Member

@prestonvanloon prestonvanloon left a comment

Choose a reason for hiding this comment

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

LGTM

Discussed offline that API changes / refactoring can be done in a follow up PR.
If you create a tracking issue, please link to this PR. Thanks!

@codecov
Copy link

codecov bot commented Oct 9, 2020

Codecov Report

Merging #7471 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #7471   +/-   ##
=======================================
  Coverage   61.11%   61.11%           
=======================================
  Files         427      427           
  Lines       31054    31054           
=======================================
  Hits        18979    18979           
  Misses       9023     9023           
  Partials     3052     3052           

@prylabs-bulldozer prylabs-bulldozer bot merged commit 551b03d into master Oct 10, 2020
@delete-merged-branch delete-merged-branch bot deleted the ui-compliance branch October 10, 2020 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Api related tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants