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

En 7295 get username route #2203

Merged
merged 7 commits into from
Aug 13, 2020
Merged

Conversation

bogdan-rosianu
Copy link
Contributor

@bogdan-rosianu bogdan-rosianu commented Aug 5, 2020

Added an API endpoint for getting the username for a given address.

Testing steps:
a) Prerequisites
-a testnet which has the following routes enabled in api.toml:
- address/:address/username
- address/:address
b) Test steps
-make API requests to the routes
c) Expected results
-on the address/:address/username route only the username should be returned
-the username should be visible also on the route address/:address

-if the given address exists and it has an username set, it should be returned.
-if the given address does not exist an error will be returned.
-if the given address exists, but it doesn't have an username set, an empty username will be returned.

d) Actual results
-tested on a local testnet and the acceptance criteria is met

@bogdan-rosianu bogdan-rosianu added the type:feature New feature or request label Aug 5, 2020
@bogdan-rosianu bogdan-rosianu self-assigned this Aug 5, 2020
Copy link
Contributor

@sasurobert sasurobert left a comment

Choose a reason for hiding this comment

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

You started from the wrong branch. Your changes include relayed-tx-bugfix as well.

@bogdan-rosianu bogdan-rosianu changed the base branch from development to bugFix/relayed-invalid-nonce August 5, 2020 09:16
sasurobert
sasurobert previously approved these changes Aug 5, 2020
Base automatically changed from bugFix/relayed-invalid-nonce to development August 7, 2020 11:45
@LucianMincu LucianMincu dismissed sasurobert’s stale review August 7, 2020 11:45

The base branch was changed.

@iulianpascalau iulianpascalau self-requested a review August 10, 2020 10:43
}

addr, err := n.addressPubkeyConverter.Decode(address)
account, err := n.getAccountHandler(address)
Copy link
Contributor

Choose a reason for hiding this comment

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

GJ! Same level of abstraction

Copy link
Contributor

@LucianMincu LucianMincu left a comment

Choose a reason for hiding this comment

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

System tests passed

@LucianMincu LucianMincu merged commit f4d41ff into development Aug 13, 2020
@LucianMincu LucianMincu deleted the EN-7295-get-username-route branch August 13, 2020 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants