Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
393d44b
feat: structure branch
alessandrocontarini Mar 19, 2026
f583f43
feat: update data-api structure
alessandrocontarini Mar 19, 2026
705de84
feat: modified data-api structure
alessandrocontarini Mar 19, 2026
4261eaa
feat: fix data-api structur
alessandrocontarini Mar 19, 2026
36c2cad
feat: add mps
alessandrocontarini Mar 19, 2026
b5a910c
feat: add controller unit tests
alessandrocontarini Mar 19, 2026
3e29400
feat: develop sensor structure
alessandrocontarini Mar 19, 2026
3b89b1a
feat: fix sensor structure
alessandrocontarini Mar 20, 2026
13a9236
feat: fix measure controller
alessandrocontarini Mar 20, 2026
bf4afed
feat: add mock test for stream-listener.service
alessandrocontarini Mar 20, 2026
52c7d02
feat: develop sensor service
alessandrocontarini Mar 20, 2026
f6bff1b
fix: added ApiProperty somewhere
Scafu Mar 20, 2026
adb002b
feat: fix response dto
alessandrocontarini Mar 20, 2026
b0b6117
feat: add testing and error handling
alessandrocontarini Mar 20, 2026
f00b238
feat: fix structure errors
alessandrocontarini Mar 21, 2026
fb9f28e
fit: error handling
alessandrocontarini Mar 21, 2026
185c741
feat: add test
alessandrocontarini Mar 23, 2026
d76ac64
fix: error handling
alessandrocontarini Mar 23, 2026
9ebf85b
fix: handilng code coverage
alessandrocontarini Mar 23, 2026
83c39dd
fix: handling error
alessandrocontarini Mar 24, 2026
289f94d
fix: handling lint error
alessandrocontarini Mar 24, 2026
d09b080
fix: type error
alessandrocontarini Mar 24, 2026
b54cebc
fix: error type handling
alessandrocontarini Mar 24, 2026
b3f55c2
fix: updated script for async and open api. still has to be properly …
marcon-effe Mar 25, 2026
28fe021
fix: small changes, just linter
marcon-effe Mar 25, 2026
fc6c6fd
feat: handling openapi errors
alessandrocontarini Mar 25, 2026
04ad221
fix: handling typecheck errors
alessandrocontarini Mar 25, 2026
ee05753
fix: sonar value
alessandrocontarini Mar 25, 2026
5758ffb
fix: handling lint errors
alessandrocontarini Mar 25, 2026
b55875c
fix: updated scripts
marcon-effe Mar 26, 2026
52dc677
feat: add db configurations
alessandrocontarini Mar 30, 2026
ef6ab19
Merge branch 'develop' of https://github.com/NoTIPswe/notip-data-api …
alessandrocontarini Mar 30, 2026
d5a2d48
feat: add unit test
alessandrocontarini Mar 31, 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
56 changes: 0 additions & 56 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,59 +125,3 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max

# Generates the OpenAPI JSON from the NestJS app, then opens a PR on
# notip-infra to replace the API definition file.
openapi-sync:
name: Sync OpenAPI spec to notip-infra
needs: release
if: needs.release.outputs.released == 'true'
runs-on: ubuntu-latest
container:
image: ghcr.io/notipswe/notip-nest-dev:v0.0.1

steps:
- name: Checkout release tag
uses: actions/checkout@v6
with:
ref: v${{ needs.release.outputs.version }}

- name: Cache npm cache
uses: actions/cache@v5
with:
path: ~/.npm
key: npm-cache-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-cache-${{ runner.os }}-

- name: Install dependencies
run: npm ci

- name: Generate OpenAPI spec
run: npm run export:openapi

- name: Checkout notip-infra
uses: actions/checkout@v6
with:
repository: notipswe/notip-infra
# Requires NOTIP_INFRA_WRITE_PAT secret: a Personal Access Token with repo scope on notip-infra.
token: ${{ secrets.NOTIP_INFRA_WRITE_PAT }}
path: notip-infra

- name: Replace API definition in notip-infra
run: cp openapi.json notip-infra/api-contracts/openapi/data-api.json

- name: Open PR on notip-infra
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.NOTIP_INFRA_WRITE_PAT }}
path: notip-infra
commit-message: 'feat(api): update notip-data-api spec to v${{ needs.release.outputs.version }}'
title: 'feat(api): update notip-data-api spec to v${{ needs.release.outputs.version }}'
body: |
Automated OpenAPI spec update from **notip-data-api**.

- **Version**: `v${{ needs.release.outputs.version }}`
- **Source release**: https://github.com/${{ github.repository }}/releases/tag/v${{ needs.release.outputs.version }}
branch: 'feat/update-data-api-spec-v${{ needs.release.outputs.version }}'
base: main
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,9 @@ tmp/
certs/

# --- Ignored folder ---
ignored/
ignored/

# --- Keep Generated API Contracts Tracked ---
!openapi.json
!src/generated/
!src/generated/**
11 changes: 8 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
repos:

- repo: local
hooks:
- id: eslint
Expand All @@ -15,15 +14,21 @@ repos:
entry: npm run format:check
language: system
pass_filenames: false

- id: tsc
name: Type check
entry: npm run typecheck
language: system
types: [file]
files: \.(ts)$
pass_filenames: false


- id: build-openapi-spec
name: Build OpenAPI spec
entry: npm run build:openapi-spec
language: system
pass_filenames: false

- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.1
hooks:
Expand Down
Loading