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

Removed settings.Usernames and reactivate PreferredName #3964

Merged
merged 5 commits into from
Sep 16, 2023

Conversation

qfrank
Copy link
Contributor

@qfrank qfrank commented Aug 28, 2023

this PR removed settings.Usernames and reactivate sync settings.PreferredName , mobile will use the same API relate to ens as desktop now, e.g. Register

relate mobile issue
relate mobile PR

@status-im-auto
Copy link
Member

status-im-auto commented Aug 28, 2023

Jenkins Builds

Click to see older builds (69)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 15809f4 #1 2023-08-28 08:44:55 ~3 min linux 📦zip
✔️ 15809f4 #1 2023-08-28 08:47:09 ~5 min android 📦aar
✔️ 15809f4 #1 2023-08-28 08:48:09 ~6 min ios 📦zip
✖️ 15809f4 #1 2023-08-28 09:03:18 ~21 min tests 📄log
✔️ 38c23f8 #2 2023-08-28 23:57:16 ~1 min android 📦aar
✔️ 38c23f8 #2 2023-08-28 23:58:28 ~3 min linux 📦zip
✔️ 38c23f8 #2 2023-08-28 23:59:26 ~3 min ios 📦zip
✔️ 38c23f8 #2 2023-08-29 00:26:25 ~30 min tests 📄log
✔️ e621783 #3 2023-08-29 07:14:04 ~1 min linux 📦zip
✔️ e621783 #3 2023-08-29 07:14:31 ~1 min android 📦aar
✔️ e621783 #3 2023-08-29 07:15:14 ~2 min ios 📦zip
✔️ e621783 #3 2023-08-29 07:42:37 ~29 min tests 📄log
✔️ 6474ffa #4 2023-08-31 07:37:41 ~1 min linux 📦zip
✔️ 6474ffa #4 2023-08-31 07:38:21 ~2 min android 📦aar
✔️ 6474ffa #4 2023-08-31 07:40:43 ~4 min ios 📦zip
✖️ 6474ffa #4 2023-08-31 08:06:36 ~30 min tests 📄log
✖️ 6a10c26 #5 2023-09-05 12:03:09 ~2 min tests 📄log
✔️ 6a10c26 #5 2023-09-05 12:03:59 ~3 min android 📦aar
✔️ 6a10c26 #5 2023-09-05 12:05:50 ~5 min linux 📦zip
✔️ 6a10c26 #5 2023-09-05 12:05:50 ~5 min ios 📦zip
✔️ 512685d #6 2023-09-06 05:43:27 ~1 min linux 📦zip
✔️ 512685d #6 2023-09-06 05:46:54 ~4 min android 📦aar
✔️ 512685d #6 2023-09-06 05:47:28 ~5 min ios 📦zip
✖️ 512685d #6 2023-09-06 06:06:25 ~24 min tests 📄log
✔️ 7213863 #7 2023-09-06 10:49:17 ~1 min linux 📦zip
✔️ 7213863 #7 2023-09-06 10:49:38 ~1 min android 📦aar
✔️ 7213863 #7 2023-09-06 10:53:00 ~5 min ios 📦zip
✔️ a6683f2 #8 2023-09-08 05:50:44 ~1 min android 📦aar
✔️ a6683f2 #8 2023-09-08 05:51:36 ~2 min linux 📦zip
✔️ a6683f2 #8 2023-09-08 05:51:55 ~3 min ios 📦zip
✔️ a6683f2 #8 2023-09-08 06:19:03 ~30 min tests 📄log
✔️ a48bd01 #9 2023-09-08 05:52:48 ~2 min android 📦aar
✔️ a48bd01 #9 2023-09-08 05:53:00 ~1 min linux 📦zip
✔️ a48bd01 #9 2023-09-08 05:54:38 ~2 min ios 📦zip
✔️ a48bd01 #9 2023-09-08 06:49:00 ~29 min tests 📄log
✔️ 223d215 #10 2023-09-13 10:37:16 ~2 min linux 📦zip
✔️ 223d215 #10 2023-09-13 10:38:17 ~3 min ios 📦zip
✔️ 223d215 #10 2023-09-13 10:38:22 ~4 min android 📦aar
✖️ 223d215 #10 2023-09-13 10:49:04 ~14 min tests 📄log
✔️ 2b6f320 #11 2023-09-13 11:08:42 ~1 min linux 📦zip
✔️ 2b6f320 #11 2023-09-13 11:11:33 ~4 min android 📦aar
✔️ 2b6f320 #11 2023-09-13 11:14:25 ~6 min ios 📦zip
✔️ 2b6f320 #11 2023-09-13 11:38:00 ~30 min tests 📄log
✔️ 9f7ac89 #12 2023-09-14 12:12:19 ~1 min android 📦aar
✔️ 9f7ac89 #12 2023-09-14 12:13:43 ~3 min linux 📦zip
✔️ 9f7ac89 #12 2023-09-14 12:13:50 ~3 min ios 📦zip
✖️ 9f7ac89 #12 2023-09-14 12:24:05 ~13 min tests 📄log
✔️ 0e9ccae #13 2023-09-15 03:46:45 ~1 min android 📦aar
✔️ 0e9ccae #13 2023-09-15 03:47:36 ~2 min ios 📦zip
✔️ 0e9ccae #13 2023-09-15 03:47:36 ~2 min linux 📦zip
✔️ 0e9ccae #13 2023-09-15 04:15:28 ~30 min tests 📄log
✔️ bd81c9b #14 2023-09-15 08:08:53 ~1 min linux 📦zip
✔️ bd81c9b #14 2023-09-15 08:09:29 ~2 min android 📦aar
bd81c9b #14 2023-09-15 08:10:05 ~2 min ios 📄log
✖️ bd81c9b #14 2023-09-15 08:10:51 ~3 min tests 📄log
✖️ c37cdde #15 2023-09-15 09:16:22 ~1 min tests 📄log
✔️ c37cdde #15 2023-09-15 09:16:34 ~1 min linux 📦zip
✔️ c37cdde #15 2023-09-15 09:16:48 ~1 min android 📦aar
✔️ c37cdde #15 2023-09-15 09:17:58 ~2 min ios 📦zip
✔️ c37cdde #16 2023-09-15 09:56:59 ~28 min tests 📄log
cab4181 #16 2023-09-15 16:02:45 ~1 min ios 📄log
✔️ cab4181 #16 2023-09-15 16:03:01 ~1 min linux 📦zip
✔️ cab4181 #16 2023-09-15 16:03:37 ~1 min android 📦aar
✖️ cab4181 #17 2023-09-15 16:14:53 ~13 min tests 📄log
✖️ cab4181 #18 2023-09-15 16:45:31 ~28 min tests 📄log
1d0edc6 #17 2023-09-15 16:19:51 ~46 sec ios 📄log
✔️ 1d0edc6 #17 2023-09-15 16:20:32 ~1 min linux 📦zip
✔️ 1d0edc6 #17 2023-09-15 16:20:38 ~1 min android 📦aar
✔️ 1d0edc6 #19 2023-09-15 17:15:03 ~29 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 9247759 #18 2023-09-15 22:57:15 ~1 min linux 📦zip
✔️ 9247759 #18 2023-09-15 22:57:27 ~1 min android 📦aar
✔️ 9247759 #18 2023-09-15 22:58:47 ~2 min ios 📦zip
✔️ 9247759 #20 2023-09-15 23:25:20 ~29 min tests 📄log
✔️ 8cb11a3 #19 2023-09-15 23:02:20 ~1 min linux 📦zip
✔️ 8cb11a3 #19 2023-09-15 23:02:38 ~1 min android 📦aar
✔️ 8cb11a3 #19 2023-09-15 23:03:20 ~2 min ios 📦zip
✖️ 8cb11a3 #21 2023-09-15 23:38:16 ~12 min tests 📄log
✖️ 8cb11a3 #22 2023-09-16 00:34:32 ~25 min tests 📄log
✔️ 8cb11a3 #23 2023-09-16 01:15:51 ~28 min tests 📄log

Copy link
Contributor

@saledjenic saledjenic left a comment

Choose a reason for hiding this comment

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

I logged the issue to remove it from the desktop app implementation, here status-im/status-desktop#12017.

Copy link
Collaborator

@igor-sirotin igor-sirotin left a comment

Choose a reason for hiding this comment

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

Thanks for this, @qfrank!
Just one question in comments.

protocol/protobuf/sync_settings.proto Outdated Show resolved Hide resolved
Copy link
Collaborator

@igor-sirotin igor-sirotin left a comment

Choose a reason for hiding this comment

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

Thanks for the update 👍

I also just digged a bit more into this topic and found a good approach for marking deleted fields:
https://protobuf.dev/programming-guides/proto3/#fieldreserved

Feel free to add it or not, I'm just sharing what I found 🙂

@qfrank qfrank force-pushed the feat/sync_ens_name branch 3 times, most recently from 6a10c26 to 512685d Compare September 6, 2023 05:41
@qfrank qfrank force-pushed the feat/sync_ens_name branch 3 times, most recently from 223d215 to 2b6f320 Compare September 13, 2023 11:07
response := wakusync.WakuBackedUpDataResponse{
Setting: settingField,
if settingField != nil {
if message.GetType() == protobuf.SyncSetting_PREFERRED_NAME && message.GetValueString() != "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

@qfrank the changes look good, I have only 2 general questions:

  • Do we need to display the ens name at all on the login screen or we display the display name and use the preferred ens name after login? (This is more about whether is that a request or not?)
  • What in case the user changes the setting or removes the ens name but the backup still refers to the preferred ens name which is not in use anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we need to display the ens name at all on the login screen or we display the display name and use the preferred ens name after login? (This is more about whether is that a request or not?)

I had the same feeling, and @cammellos made a clarification here

What in case the user changes the setting or removes the ens name but the backup still refers to the preferred ens name which is not in use anymore?

No process in this case , mobile doesn't support remove ENS ATM @saledjenic

@qfrank qfrank force-pushed the feat/sync_ens_name branch 5 times, most recently from 1d0edc6 to 9247759 Compare September 15, 2023 22:55
@qfrank qfrank merged commit 6bcf5f1 into develop Sep 16, 2023
2 checks passed
@qfrank qfrank deleted the feat/sync_ens_name branch September 16, 2023 01:20
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.

5 participants