Skip to content

Commit

Permalink
chore: file rename
Browse files Browse the repository at this point in the history
  • Loading branch information
rgwozdz committed Jan 24, 2024
1 parent 5533108 commit 8f071f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions packages/featureserver/src/query/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const _ = require('lodash');
const { filterAndTransform } = require('./filter-and-transform');
const { logWarnings } = require('./log-warnings');
const { logProviderDataWarnings } = require('./log-provider-data-warnings');

Check failure on line 3 in packages/featureserver/src/query/index.js

View workflow job for this annotation

GitHub Actions / Install, lint, test (18.x, ubuntu-latest)

'logProviderDataWarnings' is assigned a value but never used
const { renderFeaturesResponse } = require('./render-features');
const { renderStatisticsResponse } = require('./render-statistics');
const { renderPrecalculatedStatisticsResponse } = require('./render-precalculated-statistics');
Expand All @@ -15,11 +15,10 @@ function query (json, requestParams = {}) {
all: skipFiltering
} = {}
} = json;
const { f: requestedFormat } = requestParams;

validate(requestParams);

const { f: requestedFormat } = requestParams;

if (shouldRenderPrecalculatedData(json, requestParams)) {
return renderPrecalculatedData(json, requestParams);
}
Expand All @@ -28,11 +27,6 @@ function query (json, requestParams = {}) {

const data = (skipFiltering || !features) ? json : filterAndTransform(json, requestParams);






// TODO: Bug when count or extent requested.
// QUESTION: Is this problematic if its an aggregation with stats?
if (requestedFormat === 'geojson') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const _ = require('lodash');
const { getDataTypeFromValue } = require('../helpers');
const logManager = require('../log-manager');

function logFeatureCollectionWarnings(geojson, requestParams) {
function logProviderDataWarnings(geojson, requestParams) {
const { f, outFields = '*', returnCountOnly, returnExtentOnly, returnIdsOnly } = requestParams;

if (f === 'geojson' || returnCountOnly || returnExtentOnly || returnIdsOnly) {
Expand Down Expand Up @@ -91,4 +91,4 @@ function isEsriTypeMatchException (definitionType, propertyType) {
}
}

module.exports = { logWarnings: logFeatureCollectionWarnings };
module.exports = { logProviderDataWarnings };

0 comments on commit 8f071f4

Please sign in to comment.