Skip to content
Draft
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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{".":"1.7.0"}
{".":"1.8.0"}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [1.8.0](https://github.com/MapColonies/schemas/compare/v1.7.0...v1.8.0) (2025-05-07)


### Features

* **opala:** added tracing config to opala cron ([#94](https://github.com/MapColonies/schemas/issues/94)) ([6d86a6c](https://github.com/MapColonies/schemas/commit/6d86a6cfca86c27a2f2dd44a1a94e149e3c362e7))

## [1.7.0](https://github.com/MapColonies/schemas/compare/v1.6.0...v1.7.0) (2025-04-29)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@map-colonies/schemas",
"version": "1.7.0",
"version": "1.8.0",
"description": "Package for all of MapColonies config schemas",
"main": "./build/schemas/index.js",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
"logger": {
"level": "info",
"prettyPrint": false
}
},
"tracing": {
"$ref": { "configName": "common-tracing", "version": "latest" }
},
"shared": {}
},
"db": {
"$ref": { "configName": "infra-opala-db", "version": "latest" }
Expand Down
101 changes: 101 additions & 0 deletions schemas/infra/opala/cron/v2.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"$id": "https://mapcolonies.com/infra/opala/cron/v2",
"description": "The opala cron service schema",
"title": "opalaCronSchemaV2",
"type": "object",
"allOf": [
{
"type": "object",
"required": ["telemetry", "cron", "db"],
"properties": {
"telemetry": {
"$ref": "#/definitions/telemetry"
},
"db": {
"$ref": "https://mapcolonies.com/common/db/full/v1"
},
"cron": {
"$ref": "#/definitions/crons"
}
}
}
],
"definitions": {
"crons": {
"type": "object",
"additionalProperties": false,
"anyOf": [
{
"required": ["np"]
},
{
"required": ["stage"]
},
{
"required": ["prod"]
}
],
"properties": {
"np": {
"$ref": "#/definitions/cron"
},
"prod": {
"$ref": "#/definitions/cron"
},
"stage": {
"$ref": "#/definitions/cron"
}
}
},
"cron": {
"type": "object",
"required": ["pattern", "s3"],
"properties": {
"pattern": {
"type": "string",
"description": "The cron timing spec",
"examples": ["*/1 * * * *"]
},
"s3": {
"type": "object",
"allOf": [
{
"$ref": "https://mapcolonies.com/common/s3/partial/v1"
},
{
"type": "object",
"required": ["key", "bucket"],
"properties": {
"key": {
"type": "string",
"description": "specific key of bundle inside s3",
"x-env-value": "S3_KEY"
},
"bucket": {
"type": "string",
"description": "specific bucket name inside s3",
"x-env-value": "S3_BUCKET"
}
}
}
]
}
}
},
"telemetry": {
"type": "object",
"required": ["logger", "tracing", "shared"],
"properties": {
"logger": {
"$ref": "https://mapcolonies.com/common/telemetry/logger/v1"
},
"tracing": {
"$ref": "https://mapcolonies.com/common/telemetry/tracing/v1"
},
"shared": {
"$ref": "https://mapcolonies.com/common/telemetry/base/v1"
}
}
}
}
}
152 changes: 152 additions & 0 deletions schemas/vector/osmSyncTracker/v1.configs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
[
{
"name": "osm-sync-tracker",
"value": {
"openapiConfig": {
"filePath": "./openapi3.yaml",
"basePath": "/docs",
"rawPath": "/api",
"uiPath": "/api"
},
"telemetry": {
"tracing": {
"isEnabled": false
},
"shared": {},
"logger": {
"level": "info",
"prettyPrint": false
}
},
"server": {
"port": 8080,
"request": {
"payload": {
"limit": "1mb"
}
},
"response": {
"compression": {
"enabled": true,
"options": null
}
}
},
"db": {
"type": "postgres",
"host": "localhost",
"port": 5432,
"username": "postgres",
"password": "postgres",
"enableSslAuth": false,
"sslPaths": {
"ca": "",
"key": "",
"cert": ""
},
"database": "postgres",
"schema": "osm_sync_tracker"
},
"redis": {
"host": "localhost",
"port": 6379,
"username": "",
"password": "",
"enableSslAuth": false,
"sslPaths": {
"ca": "",
"key": "",
"cert": ""
},
"db": 0
},
"closure": {
"uiPath": "/closure",
"queues": {
"changesets": {
"queueOptions": {
"enabledBatchJobs": true,
"maxBatchSize": 10
},
"jobOptions": {
"attempts": 10,
"delay": 60000,
"backoff": {
"type": "fixed",
"delay": 60000
}
},
"workerOptions": {
"concurrency": 1,
"removeOnComplete": {
"age": 604800
},
"removeOnFail": {
"age": 2419200
},
"transactionIsolationLevel": "SERIALIZABLE",
"transactionFailureDelay": {
"minimum": 10000,
"maximum": 10000
}
}
},
"files": {
"queueOptions": {
"enabledBatchJobs": false
},
"jobOptions": {
"attempts": 10,
"delay": 60000,
"backoff": {
"type": "fixed",
"delay": 60000
}
},
"workerOptions": {
"concurrency": 1,
"removeOnComplete": {
"age": 604800
},
"removeOnFail": {
"age": 2419200
},
"transactionIsolationLevel": "SERIALIZABLE",
"transactionFailureDelay": {
"minimum": 10000,
"maximum": 10000
}
}
},
"syncs": {
"queueOptions": {
"enabledBatchJobs": false
},
"jobOptions": {
"attempts": 10,
"delay": 60000,
"backoff": {
"type": "fixed",
"delay": 60000
}
},
"workerOptions": {
"concurrency": 1,
"removeOnComplete": {
"age": 604800
},
"removeOnFail": {
"age": 2419200
},
"transactionIsolationLevel": "SERIALIZABLE",
"transactionFailureDelay": {
"minimum": 10000,
"maximum": 10000
}
}
}
}
}
}
}
]
Loading
Loading