Skip to content

Commit

Permalink
Merge pull request #1 from MapColonies/skeleton
Browse files Browse the repository at this point in the history
refactor:  initializing overseer (MAPCO-4436)
  • Loading branch information
almog8k authored Jul 22, 2024
2 parents e3f5b56 + 16ba7fb commit bf25759
Show file tree
Hide file tree
Showing 31 changed files with 408 additions and 912 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ jobs:
pull_request:
uses: MapColonies/shared-workflows/.github/workflows/pull_request.yaml@v1
secrets: inherit
with:
enableOpenApiCheck: false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ lerna-debug.log*

# Development tools
.idea
local.json

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
Expand Down
4 changes: 0 additions & 4 deletions .versionrc.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"bumpFiles": [
{
"filename": "openapi3.yaml",
"updater": "node_modules/@map-colonies/standard-version-update-openapi3-version/src/index.js"
},
{
"filename": "package.json",
"type": "json"
Expand Down
1 change: 0 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"TELEMETRY_METRICS_ENABLED": "false",
"TELEMETRY_TRACING_URL": "http://localhost:55681/v1/trace",
"TELEMETRY_METRICS_URL": "http://localhost:55681/v1/metrics"
// "OPENAPI_FILE_PATH": "./openapi3.yaml"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"files.eol": "\n"
}
}
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Map Colonies typescript service template
# Map Colonies Overseer Worker Service

----------------------------------

This is a basic repo template for building new MapColonies web services in Typescript.
A worker service designed for geospatial data management. Overseer handles a series of complex workflows including initialization, merge, and finalization tasks for geospatial layers. Features include polling for initialization and finalization tasks, processing merge tasks (new, update, swap), and resilient error handling with capabilities to resume tasks post-failure. It integrates with various APIs like mapproxy-API and GeoServer-API to insert and update layers, and enhances WFS links. The service listens to an ingestion queue, intelligently decides task creation, and commits updates upon successful task completions, ensuring data integrity and seamless workflow execution.

### Template Features:

Expand All @@ -22,8 +22,6 @@ This is a basic repo template for building new MapColonies web services in Types

- logging by [@map-colonies/js-logger](https://github.com/MapColonies/js-logger)

- OpenAPI request validation

- config load with [node-config](https://www.npmjs.com/package/node-config)

- Tracing and metrics by [@map-colonies/telemetry](https://github.com/MapColonies/telemetry)
Expand All @@ -48,9 +46,6 @@ This is a basic repo template for building new MapColonies web services in Types

- snyk

## API
Checkout the OpenAPI spec [here](/openapi3.yaml)

## Installation

Install deps with npm
Expand Down
3 changes: 0 additions & 3 deletions config/custom-environment-variables.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"openapiConfig": {
"filePath": "OPENAPI_FILE_PATH"
},
"telemetry": {
"serviceName": "TELEMETRY_SERVICE_NAME",
"hostname": "TELEMETRY_HOST_NAME",
Expand Down
6 changes: 0 additions & 6 deletions config/default.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"openapiConfig": {
"filePath": "./openapi3.yaml",
"basePath": "/docs",
"rawPath": "/api",
"uiPath": "/api"
},
"telemetry": {
"logger": {
"level": "info",
Expand Down
86 changes: 0 additions & 86 deletions openapi3.yaml

This file was deleted.

Loading

0 comments on commit bf25759

Please sign in to comment.