|
@@ -46,7 +46,7 @@ export type GroupListColumn = 'graph' | 'event' | 'users' | 'assignee' | 'lastTr
|
|
type Props = WithRouterProps & {
|
|
type Props = WithRouterProps & {
|
|
api: Client;
|
|
api: Client;
|
|
endpointPath: string;
|
|
endpointPath: string;
|
|
- orgId: string;
|
|
|
|
|
|
+ orgSlug: string;
|
|
query: string;
|
|
query: string;
|
|
customStatsPeriod?: TimePeriodType;
|
|
customStatsPeriod?: TimePeriodType;
|
|
onFetchSuccess?: (
|
|
onFetchSuccess?: (
|
|
@@ -104,7 +104,7 @@ class GroupList extends Component<Props, State> {
|
|
const ignoredQueryParams = ['end'];
|
|
const ignoredQueryParams = ['end'];
|
|
|
|
|
|
if (
|
|
if (
|
|
- prevProps.orgId !== this.props.orgId ||
|
|
|
|
|
|
+ prevProps.orgSlug !== this.props.orgSlug ||
|
|
prevProps.endpointPath !== this.props.endpointPath ||
|
|
prevProps.endpointPath !== this.props.endpointPath ||
|
|
prevProps.query !== this.props.query ||
|
|
prevProps.query !== this.props.query ||
|
|
!isEqual(
|
|
!isEqual(
|
|
@@ -125,12 +125,12 @@ class GroupList extends Component<Props, State> {
|
|
|
|
|
|
fetchData = async () => {
|
|
fetchData = async () => {
|
|
GroupStore.loadInitialData([]);
|
|
GroupStore.loadInitialData([]);
|
|
- const {api, orgId, queryParams} = this.props;
|
|
|
|
|
|
+ const {api, orgSlug, queryParams} = this.props;
|
|
api.clear();
|
|
api.clear();
|
|
|
|
|
|
this.setState({loading: true, error: false, errorData: null});
|
|
this.setState({loading: true, error: false, errorData: null});
|
|
|
|
|
|
- fetchOrgMembers(api, orgId).then(members => {
|
|
|
|
|
|
+ fetchOrgMembers(api, orgSlug).then(members => {
|
|
this.setState({memberList: indexMembersByProject(members)});
|
|
this.setState({memberList: indexMembersByProject(members)});
|
|
});
|
|
});
|
|
|
|
|
|
@@ -182,8 +182,8 @@ class GroupList extends Component<Props, State> {
|
|
};
|
|
};
|
|
|
|
|
|
getGroupListEndpoint() {
|
|
getGroupListEndpoint() {
|
|
- const {orgId, endpointPath, queryParams} = this.props;
|
|
|
|
- const path = endpointPath ?? `/organizations/${orgId}/issues/`;
|
|
|
|
|
|
+ const {orgSlug, endpointPath, queryParams} = this.props;
|
|
|
|
+ const path = endpointPath ?? `/organizations/${orgSlug}/issues/`;
|
|
const queryParameters = queryParams ?? this.getQueryParams();
|
|
const queryParameters = queryParams ?? this.getQueryParams();
|
|
|
|
|
|
return `${path}?${qs.stringify(queryParameters)}`;
|
|
return `${path}?${qs.stringify(queryParameters)}`;
|