-
Notifications
You must be signed in to change notification settings - Fork 18
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
NO-TICKET - Add metadata change logs #1852
Conversation
PhoneNumberUtil.PhoneNumberFormat.INTERNATIONAL | ||
) | ||
internationalFormat.replace("+$phoneCode", emptyString()) | ||
if (exampleNumber != null) { |
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.
to remove unwanted trash logs when exampleNumber is null
@@ -132,6 +132,7 @@ class GatewayServiceCreateWalletMapper( | |||
phoneNumberTimestampSec = epochUnixTimeSeconds, | |||
socialShareOwnerEmail = socialShareOwnerId, | |||
emailTimestampSec = epochUnixTimeSeconds, | |||
authProviderTimestampSec = epochUnixTimeSeconds |
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.
we forgot to add this here
?: if (web3AuthData != null) "Not loaded" else "None" | ||
|
||
textViewWeb3Value.text = web3DataJson | ||
textViewMetadataValue.text = metadataJson | ||
|
||
buttonMetadataLogs.setOnClickListener { |
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.
share logs in debug panel
@@ -92,6 +93,15 @@ object NetworkModule : InjectionModule { | |||
interceptor = RpcInterceptor(get(), get()) | |||
) | |||
} | |||
single<RpcApi> { |
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.
moved RpcApi to our module because there was not enough logging for update_metadata
requests
.orEmpty() | ||
if (cipheredMetadata.isNotBlank()) { | ||
// get json like GatewayOnboardingMetadataCiphered | ||
val metadataAsJson = kotlin.runCatching { |
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.
if you move runCatching
to the next line, it would be much easier to read
single<RpcApi> { | ||
getRetrofit( | ||
// no need for baseUrl here, we pass URL inside RpcApi | ||
baseUrl = "http://localhost/", |
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 think that needs to be refactored.
Move URL passing here.
@davran1001 fyi
Description of Work
metadata
field onget_metadata
andupdate_metadata
requests