Skip to content

Commit fd093c4

Browse files
committed
disable exclusion of changesets newer than 5 minutes
1 parent 375316e commit fd093c4

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "osmcha-frontend",
3-
"version": "0.58.0",
3+
"version": "0.58.1",
44
"license": "ISC",
55
"engines": {
66
"node": ">=7.0"

src/config/constants.js

-5
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,3 @@ export const whosThat =
2020
export const nominatimUrl = 'https://nominatim.openstreetmap.org/search.php';
2121

2222
export const DEFAULT_FROM_DATE = 7;
23-
24-
// exclude changesets newer than x minutes. It's needed because of the difference
25-
// between the time a changeset is processed by OSMCha and the time its map
26-
// visualization is available
27-
export const DELAY_TO_EXCLUDE = 5;

src/store/changesets_page_actions.js

-7
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
import { put, call, takeLatest, select, all } from 'redux-saga/effects';
33
import { delay } from 'redux-saga';
44

5-
import moment from 'moment';
65
import { fromJS, List, Map } from 'immutable';
76
import { fetchChangesetsPage } from '../network/changesets_page';
87
import { filtersSelector } from './filters_actions';
98

109
import { modal } from './modal_actions';
1110

12-
import { DELAY_TO_EXCLUDE } from '../config/constants';
1311
import type { RootStateType } from './';
1412
import type { filtersType } from '../components/filters';
1513

@@ -109,11 +107,6 @@ export function* fetchChangesetsPageSaga({
109107
nocache
110108
);
111109
}
112-
const newFeatures = thisPage.features.filter(
113-
i => moment().diff(i.properties.date, 'minutes') > DELAY_TO_EXCLUDE
114-
);
115-
thisPage.count -= thisPage.features.length - newFeatures.length;
116-
thisPage.features = newFeatures;
117110
yield put(
118111
action(CHANGESETS_PAGE.fetched, {
119112
data: fromJS(thisPage),

0 commit comments

Comments
 (0)