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

fix: Hide fleet selection from settings #13848

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

caybro
Copy link
Member

@caybro caybro commented Mar 5, 2024

What does the PR do

  • introduce ENABLE_FLEET_SELECTION desktop config entry to control the Fleet selection UI availability
  • UI can be enabled with envvar STATUS_RUNTIME_ENABLE_FLEET_SELECTION=1

Fixes #13848

Affected areas

Settings/Advanced

Screenshot of functionality (including design for comparison)

  • I've checked the design and this PR matches it

Disabled by default:
image

With ENABLE_FLEET_SELECTION=1:
image

@caybro caybro linked an issue Mar 5, 2024 that may be closed by this pull request
@status-im-auto
Copy link
Member

status-im-auto commented Mar 5, 2024

Jenkins Builds

Click to see older builds (12)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 5e1009c #1 2024-03-05 17:43:52 ~6 min tests/nim 📄log
✔️ 5e1009c #1 2024-03-05 17:44:15 ~6 min macos/aarch64 🍎dmg
✔️ 5e1009c #1 2024-03-05 17:47:33 ~10 min macos/x86_64 🍎dmg
✔️ 5e1009c #1 2024-03-05 17:48:18 ~11 min tests/ui 📄log
✔️ 5e1009c #1 2024-03-05 17:55:44 ~18 min linux/x86_64 📦tgz
✔️ 5e1009c #1 2024-03-05 18:03:24 ~26 min windows/x86_64 💿exe
✔️ e4d9e5f #2 2024-03-06 09:20:28 ~4 min macos/aarch64 🍎dmg
✔️ e4d9e5f #2 2024-03-06 09:22:41 ~6 min tests/nim 📄log
✔️ e4d9e5f #2 2024-03-06 09:25:07 ~8 min macos/x86_64 🍎dmg
✔️ e4d9e5f #2 2024-03-06 09:26:43 ~10 min tests/ui 📄log
✔️ e4d9e5f #2 2024-03-06 09:32:43 ~16 min linux/x86_64 📦tgz
✔️ e4d9e5f #2 2024-03-06 09:35:22 ~19 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 6881e3f #3 2024-03-07 08:26:46 ~4 min macos/aarch64 🍎dmg
✔️ 6881e3f #3 2024-03-07 08:28:40 ~6 min tests/nim 📄log
✔️ 6881e3f #3 2024-03-07 08:30:19 ~7 min macos/x86_64 🍎dmg
✔️ 6881e3f #3 2024-03-07 08:33:47 ~11 min tests/ui 📄log
✔️ 6881e3f #3 2024-03-07 08:39:15 ~16 min linux/x86_64 📦tgz
✔️ 6881e3f #3 2024-03-07 08:43:01 ~20 min windows/x86_64 💿exe
✔️ 7e17796 #4 2024-03-07 22:51:07 ~6 min tests/nim 📄log
✔️ 7e17796 #4 2024-03-07 22:55:31 ~10 min tests/ui 📄log
✔️ 7e17796 #4 2024-03-07 23:00:31 ~15 min macos/x86_64 🍎dmg
✔️ 7e17796 #4 2024-03-07 23:00:46 ~16 min linux/x86_64 📦tgz
✔️ 7e17796 #4 2024-03-07 23:05:17 ~20 min windows/x86_64 💿exe
✔️ 7e17796 #4 2024-03-08 00:11:21 ~1 hr 26 min macos/aarch64 🍎dmg

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.

Removing is ok, not sure only about the point @richard-ramos made in this comment.

Copy link
Contributor

@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.

The implementation (de-implementation I'd say 😄) is good with me.
Explaining the mark as 'request changes' below.


Indeed there was a discussion today to keep this selector, but make it "more dev-usage-only obvious". E.g. move to some "Debug section", or only allow to change when Debug is enabled, smth like that. Or even keep it as is, but add some exaplnating label.

The reason why to keep this is to be able to test deployed fleets with Status apps. Recently we faced an issue because shards.test fleet was upgraded. This wouln't happen if the upgrade was first done on .test fleet, tested by Status QA team and then deployed to .prod fleet.

This workflow also requires switching status to prod.

cc @chair28980 @anastasiyaig @John-44

@caybro
Copy link
Member Author

caybro commented Mar 6, 2024

The implementation (de-implementation I'd say 😄) is good with me. Explaining the mark as 'request changes' below.

Indeed there was a discussion today to keep this selector, but make it "more dev-usage-only obvious". E.g. move to some "Debug section", or only allow to change when Debug is enabled, smth like that. Or even keep it as is, but add some exaplnating label.

The reason why to keep this is to be able to test deployed fleets with Status apps. Recently we faced an issue because shards.test fleet was upgraded. This wouln't happen if the upgrade was first done on .test fleet, tested by Status QA team and then deployed to .prod fleet.

This workflow also requires switching status to prod.

cc @chair28980 @anastasiyaig @John-44

OK then the most straightforward solution would be to just hide it in production, wdyt?

caybro added a commit that referenced this pull request Mar 6, 2024
- hide the Fleet settings in production builds; will be visible in dev
or testing builds

Fixes #13848
@caybro caybro force-pushed the 13352-remove-fleet-selection-from-settings branch from 5e1009c to e4d9e5f Compare March 6, 2024 09:15
@caybro caybro requested a review from igor-sirotin March 6, 2024 09:16
@igor-sirotin
Copy link
Contributor

igor-sirotin commented Mar 6, 2024

OK then the most straightforward solution would be to just hide it in production, wdyt?

Yes, until we want to test this with prod release 😄

Let's see what other people response. I'll tag @jrainville as well for context.

@jrainville
Copy link
Member

OK then the most straightforward solution would be to just hide it in production, wdyt?

Yes, until we want to test this with prod release 😄

Let's see what other people response. I'll tag @jrainville as well for context.

If we want QAs to test, then hiding it in production is not the best, because QAs mostly use CI builds that are in production.

Doing something like Igor said is probably the simplest. Hide it when not in Debug, or we can add a new switch in the Advanced section to hide it.

@caybro
Copy link
Member Author

caybro commented Mar 7, 2024

OK then the most straightforward solution would be to just hide it in production, wdyt?

Yes, until we want to test this with prod release 😄
Let's see what other people response. I'll tag @jrainville as well for context.

If we want QAs to test, then hiding it in production is not the best, because QAs mostly use CI builds that are in production.

Doing something like Igor said is probably the simplest. Hide it when not in Debug, or we can add a new switch in the Advanced section to hide it.

It is already in the Advanced section; I'll add an envvar so that we can enable it at will (by default this will be hidden)

caybro added a commit that referenced this pull request Mar 7, 2024
- introduce `ENABLE_FLEET_SELECTION` envvar to control the Fleet selection UI availability
- hide the Fleet settings by default, unless `ENABLE_FLEET_SELECTION=1`

Fixes #13848
@caybro caybro force-pushed the 13352-remove-fleet-selection-from-settings branch from e4d9e5f to 6881e3f Compare March 7, 2024 08:22
@caybro caybro changed the title fix: Remove fleet selection from settings fix: Hide fleet selection from settings Mar 7, 2024
@caybro
Copy link
Member Author

caybro commented Mar 7, 2024

Ok, third time's a charm :) @jrainville @igor-sirotin @anastasiyaig

Copy link
Contributor

@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.

Maybe go with some more generic solution with desktop config?

type StatusDesktopConfig = object

- introduce `ENABLE_FLEET_SELECTION` desktop config entry to control the
Fleet selection UI availability
- UI can be enabled with envvar `STATUS_RUNTIME_ENABLE_FLEET_SELECTION=1`

Fixes #13848
@caybro caybro force-pushed the 13352-remove-fleet-selection-from-settings branch from 6881e3f to 7e17796 Compare March 7, 2024 22:44
@caybro caybro requested a review from igor-sirotin March 7, 2024 22:45
@caybro
Copy link
Member Author

caybro commented Mar 7, 2024

Maybe go with some more generic solution with desktop config?

type StatusDesktopConfig = object

@igor-sirotin ok, updated with the suggestion; I hope it's fine now 😆

Copy link
Contributor

@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.

Looks good to me! Thank you!

@caybro caybro merged commit 29c61d8 into master Mar 8, 2024
8 checks passed
@caybro caybro deleted the 13352-remove-fleet-selection-from-settings branch March 8, 2024 12:29
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.

Remove fleet selection from settings
5 participants