Hide `stats` from Explore page for GitLab Error Tracking
Context
The Explore page supports 2 query types:
-
Issues
- to see a list of errors, their occurrence, etc -
Stats
- to see errors over time
Both query types work with external Sentry data sources, since this is provided out of the box by Sentry.
GitLab Error Tracking (aka "integrated") currently only supports Issues
, not Stats
(to be implemented with opstrace#2074 (closed)). Selecting Stats
is currently broken, which leads to a 501 and is confusing for users.
Goal
Let's disable the ability to query Stats
when using GitLab Error Tracking. Implementing support for this in the backend is low on the prio list, so we'd rather just hide it from the UI for now.
Acceptance criteria
- There is a feature flag to enable/disable the ability to set the query type on an error tracking data source. This will be useful for developing the capability in the future: Implement Sentry compatible Stats V2 API for E... (opstrace#2074 - closed)
- In the
Explore
page- When using GitLab Error Tracking, the flag is OFF
- The query type is set to
Issue
by default - The query type dropdown is not visible (not needed since there is only 1 option)
- The query type is set to
- When using an external Error Tracking data source, the flag is ON.
- Nothing changes. Both query types are available via the dropdown.
- When using GitLab Error Tracking, the flag is OFF