Repository navigation
Stats validation restrictions - #1215
Merged
Merged
Conversation
Contributor
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
A required changeset is missing for both affected packages, so the release workflow will not version or publish the runtime changes, leaving the validation unavailable to published-package consumers.
1 open issue
What changed in this PR
This PR adds statistics-parameter validation to FeatureServer and integrates it into GeoServices before provider data is fetched. It also restructures publishing to support retries after partial release failures.
Changes:
- Validate statistic types, field names, and parameter shapes for direct and GeoServices queries.
- Add validation tests and document request handling and error responses.
- Split release jobs, reuse dependencies, skip existing GitHub releases, and conditionally commit lockfile updates.
| File | Description |
|---|---|
test/gh-release.spec.js |
Tests release selection, retries, and failure propagation. |
packages/output-geoservices/src/index.spec.js |
Tests validation before provider calls and parameter precedence. |
packages/output-geoservices/src/index.js |
Validates statistics before fetching provider data. |
packages/output-geoservices/README.md |
Documents early validation and ArcGIS error responses. |
packages/featureserver/src/query/index.spec.js |
Tests query validation and statistics rendering. |
packages/featureserver/src/query/index.js |
Validates statistics before query processing. |
packages/featureserver/src/index.spec.js |
Checks the new public validator export. |
packages/featureserver/src/index.js |
Exports validateStatisticsRequest. |
packages/featureserver/src/helpers/validate-statistics-params.spec.js |
Covers accepted and rejected statistics parameters. |
packages/featureserver/src/helpers/validate-statistics-params.js |
Implements shared statistics validation. |
packages/featureserver/src/helpers/index.js |
Exports the validation helpers. |
packages/featureserver/src/helpers/fields/statistics-fields.js |
Adds whitespace only; no behavior change. |
packages/featureserver/README.md |
Documents validation and updates statistics examples. |
gh-release.js |
Skips existing releases and exports the runner for testing. |
CONTRIBUTING.md |
Documents release stages and retry guidance. |
.github/workflows/release.yml |
Separates setup, publishing, GitHub releases, and cleanup. |
Review effort: Balanced
🦋 Changeset detectedLatest commit: 2fa7dd7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
sansth1010
approved these changes
Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This pull request introduces a comprehensive validation system for statistics query parameters in the FeatureServer package, improves the release workflow for reliability and repeatability, and updates documentation and tests to reflect these changes.
FeatureServer statistics validation:
validateStatisticsParamsandvalidateStatisticsRequesthelpers to enforce strict validation ofoutStatisticsandgroupByFieldsForStatisticsparameters, ensuring only allowed field names and statistic types are used. Validation throws a 400 error on failure and is performed before query processing and when using FeatureServer directly. [1] [2] [3]validateStatisticsRequest.Release workflow improvements:
setup,release-npm,release-github, andcleanupfor better reliability and atomicity. Dependencies are archived and restored across jobs, npm publishing is idempotent, and package-lock updates are committed only if they change. [1] [2]CONTRIBUTING.md.GitHub release script enhancements:
Other updates: