fleetdm / fleet

Open device management
https://fleetdm.com
Other
5.22k stars 611 forks source link

Cannot access installable software when using the "Turn off teams" feature, various other UI edge cases #30198

Closed ksatter closed 1 week ago

ksatter commented 2 weeks ago

Fleet version: v4.69.0

Web browser and operating system:


💥  Actual behavior

1) Can't access installable software:

After enabling the FLEET_PARTNERSHIPS_ENABLE_PRIMO configuration added for #28221, customer-preston is unable to view installable applications without manually adding 'team_id=0` to the URL.

See video example here:

https://fleetdm.slack.com/archives/C061ZA91Y1J/p1750431864258739?thread_ts=1750431629.326919&cid=C061ZA91Y1J

🧑‍💻  Steps to reproduce

  1. Upload software to "No Team"
  2. Enable FLEET_PARTNERSHIPS_ENABLE_PRIMO
  3. Navigate to Software tab
  4. Filter by "Available for install

UI

🛠️ To fix

- Default and redirect to No team (team_id=0) or All teams when Primo mode enabled, whichever preservers full "Premium" functionality of each page
- ~If feasible, keep team_id=0 out of the URL~
- Handle resulting UI edge cases

QA

jacobshandling commented 2 weeks ago

I’m going to assume the requirements here are:

@ksatter @noahtalerman please let me know exactly what the requirements are if not these

noahtalerman commented 2 weeks ago

I’m going to assume the requirements here are:

  • Default and redirect to No team (team_id=0) everywhere when Primo mode enabled
  • If feasible, keep team_id=0 out of the URL while we’re at it Estimate 2-3

@ksatter @noahtalerman please let me know exactly what the requirements are if not these

Up to @rachaelshaw

cc @jacobshandling

ksatter commented 2 weeks ago

I think that just defaulting to "No Team" is a reasonable solution., FWIW.

valentinpezon-primo commented 2 weeks ago

I’m going to assume the requirements here are:

  • Default and redirect to No team (team_id=0) everywhere when Primo mode enabled
  • If feasible, keep team_id=0 out of the URL while we’re at it Estimate 2-3

@ksatter @noahtalerman please let me know exactly what the requirements are if not these

Yes, always default to team 0 - everywhere it's needed 👍

jmwatts commented 2 weeks ago

QA Notes

with FLEET_PARTNERSHIPS_ENABLE_PRIMO=true:

I did see in an earlier comment:

If feasible, keep team_id=0 out of the URL while we’re at it

but I didn't see that when testing. ?team_id=0 showed up in the url when navigating around.

Per the notes on the PR there are two main caveats to this revision:

  1. Software page: [Without the environment variable] Software automations are only accessible via All teams, while Add software is only accessible on a team, including No team. [With the environment variable enabled] the Add software functionality is available. The Software automations functionality is not available with this revision. Enabling both functionalities with the environment variable enabled will need to go through a proper drafting process, since Fleet doesn’t currently support both in any state.

  2. Policies page: [Without the environment variable] “Other workflows” (tickets and webhooks) automations are available on All Teams and specific teams, but not on No Team. [With the environment variable enabled] “Other workflows” is currently unavailable in this revision. If any policies were created on All Teams prior to enabling the environment variable, the option to manage ticket or webhook automations for them will not longer be available. All Teams policies can only have ticket/webhook workflows.

fleet-release commented 1 week ago

Fixing URL, like paths in clouds, Software seen, no more shrouds. Quietly enhancing flow.