Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
87b177c
chore: import from ts-server-boilerplate
NivGreenstein Mar 2, 2025
586764f
refactor: update config to new schema
NivGreenstein Mar 2, 2025
d8bea82
refactor: update code style
NivGreenstein Mar 2, 2025
257066a
feat: added postInjectionHook, afterAllInjectionHook
NivGreenstein Mar 2, 2025
1fef5dd
refactor: removed interfaces as no longer needed
NivGreenstein Mar 2, 2025
36ee211
refactor: updated custom error implementations
NivGreenstein Mar 2, 2025
880e8cc
chore: removed custom error interface
NivGreenstein Mar 2, 2025
f7be066
refactor: updated pgboss factory
NivGreenstein Mar 2, 2025
2058023
chore: added type prefix
NivGreenstein Mar 2, 2025
618ffc3
refactor: updated getApp function
NivGreenstein Mar 2, 2025
83126ac
refactor: updated const name
NivGreenstein Mar 2, 2025
7f1770a
fix: updated imports
NivGreenstein Mar 2, 2025
28d453f
fix: updated injections
NivGreenstein Mar 2, 2025
1cf66d9
refactor: updated imports
NivGreenstein Mar 2, 2025
ca2674e
refactor: updated registerExternalValues
NivGreenstein Mar 2, 2025
310c3eb
chore: updated jest.config
NivGreenstein Mar 2, 2025
e6e0349
refactor: update import. added type
NivGreenstein Mar 2, 2025
de5d699
feat: added docs test
NivGreenstein Mar 2, 2025
cea815c
fix: updated faker calls
NivGreenstein Mar 2, 2025
34a0dbd
refactor: updated import
NivGreenstein Mar 2, 2025
a443010
refactor: added types. updated error messages
NivGreenstein Mar 2, 2025
b4f9c94
chore: udpate package.json
NivGreenstein Mar 2, 2025
d3665de
ci: updated github actions
NivGreenstein Mar 2, 2025
36da210
ci: fixed directory name
NivGreenstein Mar 2, 2025
3f91fba
ci: fix-docker-release-tag
NivGreenstein Mar 4, 2025
12e1b07
fix: added missing shutdown function
NivGreenstein Mar 12, 2025
9d81d96
Merge branch 'refactor/update-to-boilerplate-mapco-6313' of https://g…
NivGreenstein Mar 12, 2025
8fc3a67
chore: changed variable name
NivGreenstein Mar 13, 2025
6711b1b
fix: changed to nullish coalescing operator
NivGreenstein Mar 13, 2025
5bf1942
fix: added back healthcheck
NivGreenstein Mar 13, 2025
8857be5
refactor: changed pgboss dependency token to be PGBOSS_PROVIDER
NivGreenstein Mar 13, 2025
91755db
chore: update schema package
NivGreenstein Mar 13, 2025
6e410de
fix: added back missing consumeAndProcess startup
NivGreenstein Mar 13, 2025
3d312ae
fix: change test to get consume and process function from container.r…
NivGreenstein Mar 13, 2025
4d39454
fix: changed max zoom to 19
NivGreenstein Apr 7, 2025
0bfad2c
Update package.json
NivGreenstein Apr 8, 2025
8080f3f
Update openapi3.yaml
NivGreenstein Apr 8, 2025
1149c1c
chore: update package-lock
NivGreenstein Apr 8, 2025
eb08684
chore: upgrade mapcolonies schema version
NivGreenstein Apr 14, 2025
4bfd598
refactor: changed schema to new schema
NivGreenstein Apr 20, 2025
0551514
ci: updated schema temp package url
NivGreenstein Jan 20, 2026
35818df
fix: changed tilesManager to containerScoped
NivGreenstein Jan 26, 2026
b909e34
fix: added SERVICE_NAME to db application name
NivGreenstein Jan 26, 2026
252f727
fix: added conditionFn type
NivGreenstein Jan 26, 2026
7d177bd
fix: removed genearated openapi types
NivGreenstein Jan 26, 2026
3653ff0
fix: update ts config
NivGreenstein Jan 26, 2026
536cc60
fix: added container assignment
NivGreenstein Jan 26, 2026
ee9b31b
feat: added pgboss on error log
NivGreenstein Jan 26, 2026
20790ba
fix: changed back port to default 8080
NivGreenstein Jan 26, 2026
8e1b3c1
feat: update dockerfile
NivGreenstein Jan 26, 2026
4c78db5
feat: update node to 24
NivGreenstein Jan 26, 2026
06827de
feat: added openapi lint. update matrix to node 24
NivGreenstein Jan 26, 2026
cfb128b
fix: renamed consumeDelay to consumeCondition
NivGreenstein Jan 26, 2026
ff72040
fix: update init-npm to default node 24
NivGreenstein Jan 26, 2026
bda04b6
fix: rename delaySec to conditionCheckIntervalSec
NivGreenstein Jan 26, 2026
5e43c39
fix: fixed export and import to the new tsconfig
NivGreenstein Jan 26, 2026
cf53eec
feat: added loca.json and myvalues.json to ignore
NivGreenstein Jan 26, 2026
5b890f4
feat: update redocly
NivGreenstein Jan 26, 2026
70397e9
feat: update package json
NivGreenstein Jan 26, 2026
d50dac4
ci: changed init-npm to mapcolonies shared workflow init npm
NivGreenstein Jan 26, 2026
986251f
ci: update pull request workflow
NivGreenstein Jan 26, 2026
7d9d4e6
fix: update package-lock
NivGreenstein Jan 26, 2026
57349a8
fix: changed noUncheckedIndexedAccess from true to false
NivGreenstein Jan 26, 2026
219a03d
ci: added config .redocly.yaml
NivGreenstein Jan 26, 2026
24200a5
docs: added security to openapi
NivGreenstein Jan 26, 2026
a9b7240
fix: changed boolean-parameter-prefixes to warn
NivGreenstein Jan 26, 2026
9c89030
fix: update redocly
NivGreenstein Jan 26, 2026
94fe89d
fix: update ignore transform to jest.config
NivGreenstein Jan 26, 2026
1fc599c
fix: override kdbush to v3.0.0. update mapcolonies/telemetry
NivGreenstein Jan 26, 2026
8754218
ci: update build and push workflow
NivGreenstein Jan 28, 2026
430cd9e
ci: added missing mapcolonies github workflows
NivGreenstein Jan 28, 2026
04f946f
chore: added extensions from ts-server-boileplate
NivGreenstein Jan 28, 2026
af52930
refactor: changed username extract
NivGreenstein Feb 1, 2026
bae12dc
refactor: changed place of pgboss.on error init
NivGreenstein Feb 1, 2026
44f87f7
docs: added app consume condition doc
NivGreenstein Feb 2, 2026
a7249bf
refactor: changed variable name
NivGreenstein Feb 2, 2026
d9a7183
Update README.md
NivGreenstein Feb 2, 2026
c252175
Merge branch 'refactor/update-to-boilerplate-mapco-6313' of https://g…
NivGreenstein Feb 2, 2026
219d2b4
refactor: changed queue timeout
NivGreenstein Feb 2, 2026
276f738
fix: update shcmea test version
NivGreenstein Feb 2, 2026
b4c423f
chore: update schema
NivGreenstein Feb 2, 2026
dbd6162
chore: update schema
NivGreenstein Feb 2, 2026
2aa108c
chore: update mapcolonies/schemas to official release
NivGreenstein Feb 3, 2026
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
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ commitlint.config.json
dist
build
reports

**/local.json
**/myvalues.yaml
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ignorePatterns": ["**/*.js", "dist", "helm"],
"ignorePatterns": ["**/*.js", "dist", "helm", "coverage", "reports", ".husky"],
"extends": ["@map-colonies/eslint-config/jest", "@map-colonies/eslint-config/ts-base"],
"parserOptions": {
"project": "./tsconfig.lint.json"
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#prevent git from chaning line endings of sh file to /r/n on windows systems
*.sh text eol=lf
*.* text eol=lf
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @netanelC @CptSchnitz @shimoncohen
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ about: Create a report to help us improve
title: ''
labels: 'bug'
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -23,6 +23,5 @@ A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.


**Additional context**
Add any other context about the problem here.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Suggest an idea for this project
title: ''
labels: 'enhancement'
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
Expand Down
21 changes: 11 additions & 10 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@
Make sure you've read the contributing guidelines (CONTRIBUTING.md)
-->

| Question | Answer |
| ---------------- | -------------------------------------------------------------------------- |
| Bug fix | ✔/✖ |
| New feature | ✔/✖ |
| Breaking change | ✔/✖ |
| Deprecations | ✔/✖ |
| Documentation | ✔/✖ |
| Tests added | ✔/✖ |
| Chore | ✔/✖ |
| Question | Answer |
| --------------- | ------ |
| Bug fix | ✔/✖ |
| New feature | ✔/✖ |
| Breaking change | ✔/✖ |
| Deprecations | ✔/✖ |
| Documentation | ✔/✖ |
| Tests added | ✔/✖ |
| Chore | ✔/✖ |

Related issues: #XXX , #XXX ...
Closes #XXX ...

Further information:
Further information:

<!--
Here you can provide more information regarding any of the questions written above.
In addition, you can add screenshots, ask the maintainers questions.
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: PR Author Auto Assign

on:
pull_request_target:
types: [opened, reopened]

permissions:
pull-requests: write

jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign@v2.1.1
with:
repo-token: ${{ secrets.GH_PAT }}
76 changes: 76 additions & 0 deletions .github/workflows/build_and_push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Push Artifacts to Azure Registry

on:
push:
tags:
- 'v*'

permissions:
contents: write
packages: write

env:
DOMAIN: vector

jobs:
push-docker-image:
runs-on: ubuntu-latest
steps:
- name: Login to Azure Container Registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.ACR_URL }}
username: ${{ secrets.ACR_PUSH_USER }}
password: ${{ secrets.ACR_PUSH_TOKEN }}

- name: Build and Push Docker image
id: build_and_push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ secrets.ACR_URL }}/${{ env.DOMAIN }}/${{ github.event.repository.name }}:${{ github.ref_name }}

- name: Update Docker Image in artifacts.json
uses: MapColonies/shared-workflows/actions/update-artifacts-file@update-artifacts-file-v1
with:
domain: ${{ env.DOMAIN }}
type: docker
artifact_name: ${{ github.event.repository.name }}
artifact_tag: ${{ github.ref_name }} # Using the git tag directly
registry: ${{ secrets.ACR_URL }}
github_token: ${{ secrets.GH_PAT }}

push-helm-package:
runs-on: ubuntu-latest
needs: push-docker-image
steps:
- name: Checkout Repository
uses: actions/checkout@v5

- name: Remove v from the tag
id: remove_v
run: |
TAG=${{ github.ref_name }}
echo "VERSION=${TAG#v}" >> $GITHUB_OUTPUT

- name: Push Chart to ACR
uses: appany/helm-oci-chart-releaser@v0.5.0
with:
name: ${{ github.event.repository.name }}
repository: helm/${{ env.DOMAIN }}
tag: ${{ steps.remove_v.outputs.version }}
path: ./helm
registry: ${{ secrets.ACR_URL }}
registry_username: ${{ secrets.ACR_PUSH_USER }}
registry_password: ${{ secrets.ACR_PUSH_TOKEN }}
update_dependencies: 'true' # Defaults to false

- name: Update Helm Package in artifacts.json
uses: MapColonies/shared-workflows/actions/update-artifacts-file@update-artifacts-file-v1
with:
domain: ${{ env.DOMAIN }}
type: helm
artifact_name: ${{ github.event.repository.name }}
artifact_tag: ${{ steps.remove_v.outputs.version }}
registry: ${{ secrets.ACR_URL }}
github_token: ${{ secrets.GH_PAT }}
14 changes: 14 additions & 0 deletions .github/workflows/jira-integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Jira Integration
on:
pull_request:
types: [opened, edited, synchronize]

permissions:
statuses: write
pull-requests: write

jobs:
jira-validation:
runs-on: ubuntu-latest
steps:
- uses: mapcolonies/javascript-github-actions/actions/jira-integration@jira-integration-v1
125 changes: 60 additions & 65 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
@@ -1,71 +1,76 @@
name: pull_request

on: [pull_request]
on: [pull_request, workflow_dispatch]

permissions:
contents: read
pull-requests: read

env:
DB_HOST: localhost
DB_PORT: 5432
DB_NAME: postgres
DB_USERNAME: postgres
DB_PASSWORD: postgres
DB_SCHEMA: public

jobs:
eslint:
name: Run eslint
name: Run Linters
runs-on: ubuntu-latest

strategy:
matrix:
node: [24.x]

steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Check out TS Project Git repository
uses: actions/checkout@v5

- name: Set up Node.js
uses: actions/setup-node@v1
- name: Init Nodejs
uses: MapColonies/shared-workflows/actions/init-npm@init-npm-v1
with:
node-version: 16

- name: Install dependencies
run: npm ci
node-version: ${{ matrix.node }}

- name: Run linters
uses: wearerequired/lint-action@v1
- name: Run TS Project linters
uses: wearerequired/lint-action@v2
with:
github_token: ${{ secrets.github_token }}
# Enable linters
eslint: true
prettier: true
eslint_extensions: ts
tsc: true

- name: OpenAPI Lint Checks
uses: nwestfall/openapi-action@v1.0.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
file: ./openapi3.yaml

security:
openapi-lint:
name: Run OpenAPI lint Check
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Check out TS Project Git repository
uses: actions/checkout@v5

- name: Init Nodejs
uses: MapColonies/shared-workflows/actions/init-npm@init-npm-v1

- name: OpenAPI Lint Checks
run: npx @redocly/cli lint --format=github-actions --config .redocly.yaml openapi3.yaml

tests:
name: Run Tests
runs-on: ubuntu-latest
container: node:16-bullseye

strategy:
matrix:
node: [16.x]
node: [24.x]

services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres:13
# Provide the password for postgres
image: postgres:14
env:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 1234
POSTGRES_PASSWORD: ${{ env.DB_PASSWORD }}
POSTGRES_USER: ${{ env.DB_USERNAME }}
POSTGRES_DB: ${{ env.DB_NAME }}
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand All @@ -74,45 +79,35 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Install pg client
run: |
apt-get update && apt-get install -y lsb-release curl ca-certificates
install -d /usr/share/postgresql-common/pgdg
curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
apt-get update
apt-get install -y postgresql-client

- name: Create schema
run: psql -h postgres -d postgres -U postgres -c 'CREATE EXTENSION pgcrypto;'
env:
PGPASSWORD: 1234
uses: actions/checkout@v5

- name: Set up Node.js
uses: actions/setup-node@v1
- name: Init Nodejs
uses: MapColonies/shared-workflows/actions/init-npm@init-npm-v1
with:
node-version: ${{ matrix.node }}

- name: Install Node.js dependencies
run: npm ci

- name: Run tests
run: npm run test

- uses: actions/upload-artifact@v4
with:
name: Test Reporters
name: Test Reporters Node-${{ matrix.node }}
path: reports/**

build_image:
name: Build Image
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
continue-on-error: true
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

build_docker_image:
name: Build Docker Image
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: build Docker image
run: docker build -t test-build:latest .
- name: Build and Push Docker image
uses: docker/build-push-action@v6
Loading
Loading