Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/shiny-lies-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@koopjs/featureserver': minor
---

Add indexes default for feature layer metadata
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# @koopjs/koop-core

## 10.4.18

### Patch Changes

- @koopjs/output-geoservices@8.1.25

## 10.4.17

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"dependencies": {
"@koopjs/cache-memory": "6.0.0",
"@koopjs/logger": "5.0.0",
"@koopjs/output-geoservices": "8.1.25",
"@koopjs/output-geoservices": "8.1.24",
"@sindresorhus/fnv1a": "^2.0.1",
"body-parser": "^1.19.0",
"compression": "^1.7.5",
Expand Down
6 changes: 0 additions & 6 deletions packages/featureserver/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# @koopjs/featureserver

## 10.0.0

### Major Changes

add 'indexes' to layer metadata defaults

## 9.2.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/featureserver/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@koopjs/featureserver",
"version": "10.0.0",
"version": "9.2.1",
"description": "*An open source implementation of the GeoServices specification*",
"main": "src/index.js",
"directories": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ describe('FeatureLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: [],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -391,6 +392,7 @@ describe('FeatureLayerMetadata', () => {
},
],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -552,6 +554,7 @@ describe('FeatureLayerMetadata', () => {
},
],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -709,6 +712,7 @@ describe('FeatureLayerMetadata', () => {
},
],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -904,6 +908,7 @@ describe('FeatureLayerMetadata', () => {
},
],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -1059,6 +1064,7 @@ describe('FeatureLayerMetadata', () => {
},
],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -1227,6 +1233,7 @@ describe('FeatureLayerMetadata', () => {
},
],
relationships: [],
indexes: [],
capabilities: 'list,of,stuff',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down
21 changes: 21 additions & 0 deletions packages/featureserver/src/helpers/table-layer-metadata.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: [],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -251,6 +252,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -365,6 +367,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -477,6 +480,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -589,6 +593,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -701,6 +706,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -813,6 +819,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -925,6 +932,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -1037,6 +1045,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -1149,6 +1158,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -1261,6 +1271,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -1373,6 +1384,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'hello,world',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -1485,6 +1497,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'Query,Extract',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -1597,6 +1610,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -1709,6 +1723,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -1821,6 +1836,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -1933,6 +1949,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand All @@ -1947,6 +1964,7 @@ describe('TableLayerMetadata', () => {
{
name: 'Hank Williams',
relationships: ['something'],
indexes: [],
description: 'There is a tear in my beer.',
copyrightText: 'copyright-text',
templates: ['templates'],
Expand Down Expand Up @@ -2056,6 +2074,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: ['something'],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -2311,6 +2330,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'list,of,stuff',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down Expand Up @@ -2432,6 +2452,7 @@ describe('TableLayerMetadata', () => {
maxRecordCountFactor: 1,
fields: ['fields'],
relationships: [],
indexes: [],
capabilities: 'list,of,stuff',
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
types: [],
Expand Down
1 change: 1 addition & 0 deletions packages/featureserver/src/metadata-defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ class MetadataDefaults {
maxRecordCountFactor: 1,
fields: [],
relationships: [],
indexes: [],
capabilities: 'Query',
ownershipBasedAccessControlForFeatures: {
allowOthersToQuery: true,
Expand Down
7 changes: 0 additions & 7 deletions packages/output-geoservices/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# @koopjs/output-geoservices

## 8.1.25

### Patch Changes

- Updated dependencies [b9a2c3e]
- @koopjs/featureserver@10.0.0

## 8.1.24

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/output-geoservices/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@koopjs/output-geoservices",
"version": "8.1.25",
"version": "8.1.24",
"description": "Wraps FeatureServer as a Koop output plugin",
"main": "src/index.js",
"scripts": {
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/koopjs/koop#readme",
"dependencies": {
"@koopjs/featureserver": "10.0.0",
"@koopjs/featureserver": "9.2.1",
"@koopjs/logger": "5.0.0"
},
"jest": {
Expand Down
2 changes: 2 additions & 0 deletions test/geoservice-client-requests-no-geom.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ describe('Typical Geoservice Client request sequence: Dataset with no geometry',
},
],
relationships: [],
indexes: [],
capabilities: 'Query',
maxRecordCount: 2000,
ownershipBasedAccessControlForFeatures: {
Expand Down Expand Up @@ -369,6 +370,7 @@ describe('Typical Geoservice Client request sequence: Dataset with no geometry',
},
],
relationships: [],
indexes: [],
capabilities: 'Query',
maxRecordCount: 2000,
ownershipBasedAccessControlForFeatures: { allowOthersToQuery: true },
Expand Down
2 changes: 2 additions & 0 deletions test/helpers/client-response-fixtures.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const CURRENT_VERSION = 11.2;
const FULL_VERSION = '11.2.0';
const COPYRIGHT_TEXT =
// eslint-disable-next-line max-len
'Copyright information varies by provider. For more information please contact the source of this data.';

function getServerInfo(id) {
Expand Down Expand Up @@ -129,6 +130,7 @@ function getLayersInfo(filename, idField) {
},
],
relationships: [],
indexes: [],
capabilities: 'Query',
maxRecordCount: 2000,
supportsStatistics: true,
Expand Down
Loading