Resolve group analytics pages not redirecting to SSO

What does this MR do and why?

This is a fix for the issue Any paths under `/analyze` section doesn't redi... (#554200 - closed).

It updates the group analytics controller to use the Groups::ApplicationController and redirect to group's SSO. It also adds specs for the abstract analytics controller.

References

Any paths under `/analyze` section doesn't redi... (#554200 - closed)

Screenshots or screen recordings

No UI changes.

Not logged in

Before After
image image

Logged in

Before After
image image

How to set up and validate locally

  1. Follow these instructions on how to setup your GDK to test SAML
  2. Navigate or find your SAML test group and find the Analyze menu category
  3. Open the pages under the Analyze menu category and verify that they render as expected
  4. In a new private browser window visit [GDK_HOST]/[YOUR_SAML_GROUP]/-/analytics/dashboards
  5. Verify that you are redirected to the group's singe sign-on page and not the instance login page

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #554200 (closed)

Edited by Jiaan Louw

Merge request reports

Loading