Full access (all users who have code insights license)
Limited access mode (showing only a limited number of insights, freeze edit UI, additional UI on the pages)
At the moment the second mode is implemented only on the frontend (by fetching information about user license and having a dozen FE checks based on this information) in a meantime our API is still providing insight information even if users don't have a license.
Why do we need this change?
Since code insights is a paid part of the product we need to close API endpoints from users who don't have a special license for it, this move also will give us benefits in terms of complexity on the FE which is important if we want to spread insights UI across of the app.
Background
At the moment Code Insights pages have two modes
At the moment the second mode is implemented only on the frontend (by fetching information about user license and having a dozen FE checks based on this information) in a meantime our API is still providing insight information even if users don't have a license.
Why do we need this change?
Since code insights is a paid part of the product we need to close API endpoints from users who don't have a special license for it, this move also will give us benefits in terms of complexity on the FE which is important if we want to spread insights UI across of the app.