Skip to content

Commit 75f011f

Browse files
authored
ref(sentry10): Remove sentry 9 stream components (#13528)
1 parent d550af8 commit 75f011f

24 files changed

+16
-2241
lines changed

src/sentry/static/sentry/app/actionCreators/tags.jsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import {Client} from 'app/api';
21
import {t} from 'app/locale';
32
import TagStore from 'app/stores/tagStore';
43
import TagActions from 'app/actions/tagActions';
@@ -61,21 +60,6 @@ function tagFetchSuccess(tags) {
6160
TagActions.loadTagsSuccess(trimmedTags);
6261
}
6362

64-
/**
65-
* Fetch tags for a single project
66-
*/
67-
export function fetchProjectTags(orgId, projectId) {
68-
TagStore.reset();
69-
TagActions.loadTags();
70-
const api = new Client();
71-
const url = `/projects/${orgId}/${projectId}/tags/`;
72-
73-
const promise = api.requestPromise(url);
74-
promise.then(tagFetchSuccess, TagActions.loadTagsError);
75-
76-
return promise;
77-
}
78-
7963
/**
8064
* Fetch tag values for a single project. Used for sentry9 views.
8165
*/

src/sentry/static/sentry/app/components/smartSearchBar/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
} from 'app/actionCreators/savedSearches';
2020
import {t} from 'app/locale';
2121
import Button from 'app/components/button';
22-
import CreateSavedSearchButton from 'app/views/stream/createSavedSearchButton';
22+
import CreateSavedSearchButton from 'app/views/organizationStream/createSavedSearchButton';
2323
import InlineSvg from 'app/components/inlineSvg';
2424
import MemberListStore from 'app/stores/memberListStore';
2525
import SentryTypes from 'app/sentryTypes';

src/sentry/static/sentry/app/routes.jsx

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,27 +1155,9 @@ function routes() {
11551155
</Route>
11561156

11571157
<Route path=":projectId/" component={errorHandler(ProjectDetails)}>
1158-
<IndexRoute
1159-
componentPromise={() =>
1160-
import(/* webpackChunkName: "Stream" */ './views/stream')
1161-
}
1162-
component={errorHandler(LazyLoad)}
1163-
/>
1164-
<Route
1165-
path="issues/"
1166-
componentPromise={() =>
1167-
import(/* webpackChunkName: "Stream" */ './views/stream')
1168-
}
1169-
component={errorHandler(LazyLoad)}
1170-
/>
1171-
1172-
<Route
1173-
path="searches/:searchId/"
1174-
componentPromise={() =>
1175-
import(/* webpackChunkName: "Stream" */ './views/stream')
1176-
}
1177-
component={errorHandler(LazyLoad)}
1178-
/>
1158+
<IndexRedirect to="/organizations/:orgId/issues/" />
1159+
<Redirect from="issues/" to="/organizations/:orgId/issues/" />
1160+
<Redirect from="searches/:searchId/" to="/organizations/:orgId/issues/" />
11791161
<Route
11801162
path="dashboard/"
11811163
componentPromise={() =>
@@ -1234,9 +1216,7 @@ function routes() {
12341216
component={errorHandler(LazyLoad)}
12351217
/>
12361218
</Route>
1237-
12381219
<Redirect from="user-feedback/" to="/organizations/:orgId/user-feedback/" />
1239-
12401220
<Route path="settings/" component={errorHandler(ProjectSettings)}>
12411221
<Redirect from="teams/" to="/settings/:orgId/projects/:projectId/teams/" />
12421222
<Redirect from="alerts/" to="/settings/:orgId/projects/:projectId/alerts/" />
@@ -1344,7 +1324,6 @@ function routes() {
13441324
/>
13451325
{projectSettingsRoutes}
13461326
</Route>
1347-
13481327
<Redirect from="group/:groupId/" to="issues/:groupId/" />
13491328
<Route
13501329
path="issues/:groupId/"
@@ -1372,7 +1351,6 @@ function routes() {
13721351
<Route path="similar/" component={errorHandler(ProjectGroupSimilarView)} />
13731352
<Route path="merged/" component={errorHandler(ProjectGroupMergedView)} />
13741353
</Route>
1375-
13761354
<Route path="events/:eventId/" component={errorHandler(ProjectEventRedirect)} />
13771355
</Route>
13781356
</Route>

src/sentry/static/sentry/app/views/stream/filters.jsx renamed to src/sentry/static/sentry/app/views/organizationStream/filters.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ class StreamFilters extends React.Component {
4040
};
4141

4242
static defaultProps = {
43-
projectId: null,
4443
sort: '',
4544
query: null,
4645
onSortChange: function() {},

src/sentry/static/sentry/app/views/organizationStream/overview.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ import Pagination from 'app/components/pagination';
3131
import ProcessingIssueList from 'app/components/stream/processingIssueList';
3232
import SelectedGroupStore from 'app/stores/selectedGroupStore';
3333
import SentryTypes from 'app/sentryTypes';
34-
import StreamActions from 'app/views/stream/actions';
35-
import StreamFilters from 'app/views/stream/filters';
3634
import StreamGroup from 'app/components/stream/group';
37-
import StreamSidebar from 'app/views/stream/sidebar';
3835
import TagStore from 'app/stores/tagStore';
3936
import parseApiError from 'app/utils/parseApiError';
4037
import parseLinkHeader from 'app/utils/parseLinkHeader';
4138
import utils from 'app/utils';
4239
import withGlobalSelection from 'app/utils/withGlobalSelection';
4340
import withOrganization from 'app/utils/withOrganization';
4441
import withSavedSearches from 'app/utils/withSavedSearches';
42+
import StreamActions from './actions';
43+
import StreamFilters from './filters';
44+
import StreamSidebar from './sidebar';
4545

4646
const MAX_ITEMS = 25;
4747
const DEFAULT_QUERY = 'is:unresolved';

src/sentry/static/sentry/app/views/stream/sidebar.jsx renamed to src/sentry/static/sentry/app/views/organizationStream/sidebar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import PropTypes from 'prop-types';
22
import React from 'react';
33
import createReactClass from 'create-react-class';
44
import _ from 'lodash';
5-
import StreamTagFilter from 'app/views/stream/tagFilter';
65
import LoadingIndicator from 'app/components/loadingIndicator';
76
import {queryToObj, objToQuery} from 'app/utils/stream';
87
import {t} from 'app/locale';
8+
import StreamTagFilter from './tagFilter';
99

1010
const TEXT_FILTER_DEBOUNCE_IN_MS = 300;
1111

src/sentry/static/sentry/app/views/stream/index.jsx

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)