|
@@ -6,7 +6,6 @@ import AsyncComponent from 'sentry/components/asyncComponent';
|
|
|
import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container';
|
|
|
import {
|
|
|
getDatetimeFromState,
|
|
|
- normalizeDateTimeParams,
|
|
|
normalizeDateTimeString,
|
|
|
} from 'sentry/components/organizations/pageFilters/parse';
|
|
|
import {getPageFilterStorage} from 'sentry/components/organizations/pageFilters/persistence';
|
|
@@ -83,12 +82,7 @@ class HomepageQueryAPI extends AsyncComponent<Props, HomepageQueryState> {
|
|
|
}
|
|
|
|
|
|
getEndpoints(): ReturnType<AsyncComponent['getEndpoints']> {
|
|
|
- const {organization, selection} = this.props;
|
|
|
- const {projects, environments, datetime} = selection;
|
|
|
- const commonQuery = {
|
|
|
- environment: environments,
|
|
|
- project: projects.map(proj => String(proj)),
|
|
|
- };
|
|
|
+ const {organization} = this.props;
|
|
|
|
|
|
const endpoints: ReturnType<AsyncComponent['getEndpoints']> = [];
|
|
|
if (organization.features.includes('discover-query')) {
|
|
@@ -97,13 +91,6 @@ class HomepageQueryAPI extends AsyncComponent<Props, HomepageQueryState> {
|
|
|
`/organizations/${organization.slug}/discover/homepage/`,
|
|
|
]);
|
|
|
}
|
|
|
- if (organization.features.includes('starfish-test-endpoint')) {
|
|
|
- endpoints.push([
|
|
|
- 'starfishResult',
|
|
|
- `/organizations/${organization.slug}/events-starfish/`,
|
|
|
- {query: {...commonQuery, ...normalizeDateTimeParams(datetime)}},
|
|
|
- ]);
|
|
|
- }
|
|
|
return endpoints;
|
|
|
}
|
|
|
|