OPT-4112 we added Settings to Optimize which reflect the current settings state (at the moment only reflecting if basic telemetry is enabled). These settings have either been set manually by a superuser or have been taken from the initial config settings.
If they have not yet been confirmed by a superuser, the frontend should display a modal when the first superuser logs in to confirm the settings. In order to decide whether the frontend should display this modal, it needs to be able to retrieve this information (have settings been set manually yet?) from the backend.
As discussed with frontend: settings flags will be moved to the UIConfig endpoint, where we will also add a flag whether settings have been manually confirmed yet. The information whether the current user is authorized to set telemetry will be added with a new list of authorizations. Later, we can also move event based auths to this list.
- it is possible the retrieve the information whether the settings have been manually set yet from the backend:
- an authorizaitions list is added to the response of the current user endpoint
- this is documented on confluence