import StatsContainer from '../containers/StatsContainer';
import SearchContainer from '../containers/SearchContainer';
import TasksContainer from '../containers/TasksContainer';
-import ListFooterContainer from '../containers/ListFooterContainer';
export default class BackgroundTasksApp extends Component {
componentDidMount () {
<StatsContainer/>
<SearchContainer/>
<TasksContainer/>
- <ListFooterContainer/>
</div>
);
}
+++ /dev/null
-/*
- * SonarQube
- * Copyright (C) 2009-2016 SonarSource SA
- * mailto:contact AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-import { connect } from 'react-redux';
-
-import ListFooter from '../../../components/shared/list-footer';
-
-function mapStateToProps (state) {
- return {
- ready: !state.fetching,
- total: state.total,
- count: state.tasks.length
- };
-}
-
-export default connect(
- mapStateToProps
-)(ListFooter);
};
}
-export function receiveTasks (tasks, total) {
+export function receiveTasks (tasks) {
return {
type: RECEIVE_TASKS,
- tasks,
- total
+ tasks
};
}
const { component } = getState();
const parameters = mapFiltersToParameters(filters);
- parameters.ps = PAGE_SIZE;
-
if (component) {
parameters.componentId = component.id;
}
dispatch(requestTasks(filters));
return Promise.all([
- getActivity(parameters),
- getActivity({ ps: 1, onlyCurrents: true, status: STATUSES.FAILED }),
- getActivity({ ps: 1, status: STATUSES.PENDING })
+ getActivity(parameters)
]).then(responses => {
- const [activity, failingActivity, pendingActivity] = responses;
+ const [activity] = responses;
const tasks = activity.tasks;
- const total = activity.paging.total;
- dispatch(receiveTasks(tasks, total));
+ dispatch(receiveTasks(tasks));
- const pendingCount = pendingActivity.paging.total;
- const failingCount = failingActivity.paging.total;
+ // FIXME request real numbers
+ const pendingCount = 0;
+ const failingCount = 0;
dispatch(receiveStats({ pendingCount, failingCount }));
});