Closed roperzh closed 9 months ago
@georgekarrv should we close this? we haven't seen problems even after the extra waiting time.
Yes it was just on this sprint to make sure and check once more before closing
@georgekarrv should we close this?
tentatively moving to "ready for release" so it doesn't get picked up
Database locks no more, Profiles listed with ease. Fleet soars, users pleased.
Fleet version: 4.38.1
💥 Actual behavior
When we list for profiles, we make a call to verify if the team exists:
https://github.com/fleetdm/fleet/blob/e6d4ed5f7af51b4f2d4c95ff6f4f742287021e77/server/service/apple_mdm.go#L395-L400
Getting the team information is the source of some timeouts, for example:
🧑💻 Steps to reproduce
This is a code bug that causes performance issues but can't be easily replicated.
Verification after the fix should ensure that listing profiles still works as expected:
mdm/apple/profiles?team_id=..
endpoint and check the right values are returnedmdm/apple/profiles?team_id=..
endpoint with a non-existent team id an verify that we return a good error + status code