Skip to content

Commit 9f44240

Browse files
authored
Merge pull request #263 from geomatician/main
Removed Failed-Ingest Lambda and update STAC API Version and rel type
2 parents 6ccc468 + e537c8c commit 9f44240

File tree

5 files changed

+32
-60
lines changed

5 files changed

+32
-60
lines changed

CHANGELOG.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,23 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [0.5.0] - 2022-05-18
9+
10+
### Added
11+
12+
- Added STAC_API_VERSION as an environment variable to the serverless.yml file
13+
- Added STAC_API_VERSION to display on the API landing page within the api.js file
14+
under src/lib/api.js in the collectionsToCatalogLinks function
15+
16+
### Changed
17+
18+
- Changed the rel type to 'server' for the URL to the STAC API webpage inside the Links object
19+
20+
### Removed
21+
22+
- Removed the failed-ingest Lambda function from the serverless.yml file since this function is no longer needed
23+
- Deleted failed-ingest folder from the src/lambdas directory
24+
825
## [0.4.0] - 2022-04-19
926

1027
### Added
@@ -56,18 +73,22 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
5673
## [0.3.1] - 2021-07-28
5774

5875
### Removed
76+
5977
- stac_api_version from root catalog ([#126](https://github.com/stac-utils/stac-server/pull/126))
6078

6179
### Fixed
80+
6281
- Root catalog now properly includes `type: Catalog`
6382

6483
## [0.3.0] - 2021-07-06
6584

6685
### Added
86+
6787
- Added conformsTo to root catalog
6888
- Added geo_point mapping to items -> properties -> epsg:centroid
6989

7090
### Fixed
91+
7192
- Array GET parameters can now be comma-delimited, as per spec
7293
- Collections link rel type changed to `data`
7394
- Added required rel=search links in root
@@ -76,6 +97,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7697
- Integration tests
7798

7899
### Changed
100+
79101
- Elasticsearch version update 6.8 -> 7.9
80102
- Updated all mappings
81103
- Enforce only HTTPS access
@@ -86,31 +108,35 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
86108
- Increase SQS VisibilityTimeout and Ingest Lambda timeout
87109

88110
### Removed
111+
89112
- Mapping types (deprecated in Elasticsearch)
90113

91114
## [0.2.1] - 2020-12-14
92115

93116
### Fixed
117+
94118
- Pagination is now STAC compliant
95119
- Response from `/collections` is now STAC compliant
96120
- Return 404 errors when collections or items not found
97121

98122
### Removed
99-
- Specified mapping for temporal and spatial properties (will auto map)
100123

124+
- Specified mapping for temporal and spatial properties (will auto map)
101125

102126
## [0.2.0] - 2020-09-21
103127

104128
### Added
129+
105130
- Partial STAC transaction extension added, disabled by default - set ENABLE_TRANSACTIONS_EXTENSION=true to enable
106131

107132
### Changed
133+
108134
- Name changed from 'stac-api' to 'stac-server' to avoid confusion with [stac-api-spec](https://github.com/radiantearth/stac-api-spec)
109135
- Elasticsearch client library updated to @elastic/elasticsearch
110136

111137
### Removed
112-
- Collection properties no longer merged into Item on ingest (commons extension removed from STAC)
113138

139+
- Collection properties no longer merged into Item on ingest (commons extension removed from STAC)
114140

115141
## [0.1.0] - 2020-03-20
116142

serverless.yml.example

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ provider:
99
STAC_ID: "stac-server"
1010
STAC_TITLE: "STAC API"
1111
STAC_DESCRIPTION: "A STAC API using stac-server"
12+
STAC_API_VERSION: "1.0.0-beta.5"
1213
STAC_VERSION: 1.0.0
1314
LOG_LEVEL: DEBUG
1415
ES_BATCH_SIZE: 500
@@ -60,17 +61,6 @@ functions:
6061
- sqs:
6162
arn:
6263
Fn::GetAtt: [ingestQueue, Arn]
63-
failed-ingest:
64-
description: stac-server Failed Ingest Lambda
65-
handler: index.handler
66-
memorySize: 128
67-
timeout: 30
68-
package:
69-
artifact: dist/failed-ingest/failed-ingest.zip
70-
events:
71-
- sqs:
72-
arn:
73-
Fn::GetAtt: [deadLetterQueue, Arn]
7464

7565
resources:
7666
Description: A STAC API running on stac-server

src/lambdas/failed-ingest/index.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/lambdas/failed-ingest/webpack.config.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/lib/api.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,13 @@ const addItemLinks = function (results, endpoint) {
365365

366366
const collectionsToCatalogLinks = function (results, endpoint) {
367367
const stacVersion = process.env.STAC_VERSION || '1.0.0'
368+
const stacApiVersion = process.env.STAC_API_VERSION || '1.0.0-beta.5'
368369
const catalogId = process.env.STAC_ID || 'stac-server'
369370
const catalogTitle = process.env.STAC_TITLE || 'A STAC API'
370371
const catalogDescription = process.env.STAC_DESCRIPTION || 'A STAC API running on stac-server'
371372
const catalog = {
372373
stac_version: stacVersion,
374+
stac_api_version: stacApiVersion,
373375
type: 'Catalog',
374376
id: catalogId,
375377
title: catalogTitle,
@@ -583,7 +585,7 @@ const getCatalog = async function (txnEnabled, backend, endpoint = '') {
583585
const docsUrl = process.env.STAC_DOCS_URL
584586
if (docsUrl) {
585587
links.push({
586-
rel: 'docs',
588+
rel: 'server',
587589
href: docsUrl,
588590
type: 'text/html'
589591
})

0 commit comments

Comments
 (0)