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

Fixed changing device name #9921

Merged
merged 4 commits into from
Mar 22, 2023
Merged

Conversation

igor-sirotin
Copy link
Contributor

Fixes #9584
Requires status-im/status-go#3294

What does the PR do

Now it's possible to change device name :)

2023-03-16.21.16.41.mov

@status-im-auto
Copy link
Member

status-im-auto commented Mar 16, 2023

Jenkins Builds

Click to see older builds (26)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 94e6918 #3 2023-03-16 11:28:02 ~5 min tests-nim 📄log
✔️ 94e6918 #3 2023-03-16 11:29:06 ~6 min imports 📄log
✔️ 94e6918 #3 2023-03-16 11:32:50 ~10 min macos 🍎dmg
✔️ 94e6918 #3 2023-03-16 11:34:19 ~11 min linux 📦tgz
✖️ 94e6918 #3 2023-03-16 11:41:03 ~18 min linux-e2e 📄log
✔️ 94e6918 #3 2023-03-16 11:51:23 ~28 min windows 💿exe
✔️ 8780fa9 #4 2023-03-17 02:29:37 ~5 min imports 📄log
✔️ 8780fa9 #4 2023-03-17 02:29:54 ~6 min tests-nim 📄log
✔️ 8780fa9 #4 2023-03-17 02:31:29 ~7 min macos 🍎dmg
✔️ 8780fa9 #4 2023-03-17 02:35:16 ~11 min linux 📦tgz
✖️ 8780fa9 #4 2023-03-17 02:41:54 ~18 min linux-e2e 📄log
✔️ 8780fa9 #4 2023-03-17 02:48:41 ~24 min windows 💿exe
✔️ 4276eb0 #5 2023-03-20 12:38:19 ~5 min imports 📄log
✔️ 4276eb0 #5 2023-03-20 12:41:20 ~8 min macos 🍎dmg
✔️ 4276eb0 #5 2023-03-20 12:43:43 ~11 min tests-nim 📄log
✔️ 4276eb0 #5 2023-03-20 12:47:30 ~15 min linux 📦tgz
✖️ 4276eb0 #5 2023-03-20 12:51:36 ~19 min linux-e2e 📄log
✔️ 46497ff #6 2023-03-20 12:59:22 ~6 min imports 📄log
✔️ 46497ff #6 2023-03-20 12:59:49 ~7 min tests-nim 📄log
✔️ 46497ff #6 2023-03-20 12:59:52 ~7 min macos 🍎dmg
✔️ 3dcc712 #7 2023-03-20 13:11:37 ~6 min imports 📄log
✔️ 3dcc712 #7 2023-03-20 13:12:31 ~7 min macos 🍎dmg
✔️ 3dcc712 #7 2023-03-20 13:15:17 ~10 min linux 📦tgz
✔️ 3dcc712 #7 2023-03-20 13:15:31 ~10 min tests-nim 📄log
✔️ 3dcc712 #7 2023-03-20 13:20:07 ~15 min linux-e2e 📄log
✔️ 3dcc712 #7 2023-03-20 13:38:32 ~33 min windows 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ f0ca079 #8 2023-03-20 22:57:45 ~5 min imports 📄log
✔️ f0ca079 #8 2023-03-20 22:58:23 ~6 min tests-nim 📄log
✔️ f0ca079 #8 2023-03-20 22:59:27 ~7 min macos 🍎dmg
✔️ bd76b22 #9 2023-03-20 23:06:14 ~5 min tests-nim 📄log
✔️ bd76b22 #9 2023-03-20 23:07:13 ~6 min imports 📄log
✔️ bd76b22 #9 2023-03-20 23:07:36 ~6 min macos 🍎dmg
✔️ bd76b22 #9 2023-03-20 23:10:10 ~9 min linux 📦tgz
✖️ bd76b22 #9 2023-03-20 23:17:37 ~16 min linux-e2e 📄log
✔️ bd76b22 #9 2023-03-20 23:30:59 ~30 min windows 💿exe
✖️ bd76b22 #10 2023-03-21 23:01:59 ~21 min linux-e2e 📄log
✖️ bd76b22 #11 2023-03-22 00:58:49 ~6 min linux-e2e 📄log
✔️ bd76b22 #12 2023-03-22 11:33:22 ~15 min linux-e2e 📄log

Copy link
Member

@caybro caybro left a comment

Choose a reason for hiding this comment

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

Almost there :)

# Once we get more info from `status-go` we may emit success/failed signal from here.
discard status_installations.setInstallationMetadata(installationId, name, hostOs)
let response = status_installations.setInstallationName(installationId, name)
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't it be in the try block?

if response.error != nil:
let e = Json.decode($response.error, RpcError)
error "error: ", errorDescription = e.message
discard
Copy link
Contributor

Choose a reason for hiding this comment

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

should we do a return here?
Or discard won't execute code after?

@igor-sirotin
Copy link
Contributor Author

@mprakhov thanks for review!
You're right with both points, fixed 🙂

Copy link
Contributor

@mprakhov mprakhov left a comment

Choose a reason for hiding this comment

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

lgtm

@igor-sirotin igor-sirotin merged commit 2d22f2f into master Mar 22, 2023
@igor-sirotin igor-sirotin deleted the fix/issue-9584-set-device-name branch March 22, 2023 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't set the name of any device in Settings/Syncing
4 participants