Compare commits

..

82 Commits

Author SHA1 Message Date
niggl cd3cd81360 fix(deps): Bump sqlite3
ci/woodpecker/push/build Pipeline was successful
2023-11-06 20:32:05 +01:00
niggl cf48c00ddb fix(deps): Bumped argon2 to latest version for arm support
ci/woodpecker/push/build Pipeline failed
2023-11-06 20:23:32 +01:00
niggl 3192365793 feat(ci)!: Switch to woodpecker
ci/woodpecker/push/build Pipeline failed
2023-11-06 20:15:44 +01:00
philipp 075d484f11 ci: drop lfk-client-node 2023-11-06 18:09:31 +01:00
philipp 5082b1b8b1 fix: updated README for pnpm, typos 2023-11-06 18:04:32 +01:00
philipp 50dd703a1b build: package lock 2023-11-06 18:01:15 +01:00
niggl 057a8ee699 🚀Bumped version to v1.1.3
continuous-integration/drone/push Build is passing
2023-05-10 13:38:14 +02:00
niggl 8d9418635d feat(orgs): Also resolve child-teams' distances and add them to org total 2023-05-10 13:37:54 +02:00
niggl f2832a2dae fix(orgs): Removed unused log 2023-05-10 13:36:05 +02:00
niggl 0d21596e2b 🚀Bumped version to v1.1.2
continuous-integration/drone/push Build is passing
2023-05-10 13:16:33 +02:00
niggl 245827e9c6 feat(groups): Resolve the total group distance on group get single (aka get org and get team) 2023-05-10 13:15:59 +02:00
niggl 4608a36df6 chore(package): Formatting 2023-05-10 13:15:21 +02:00
niggl cb1305aa77 🚀Bumped version to v1.1.1
continuous-integration/drone/push Build is passing
2023-04-19 18:10:52 +02:00
niggl 12a9ae2493 feat(donors): Resolve donations with donors via pagination 2023-04-19 18:10:26 +02:00
niggl b9fe9f1c24 🚀Bumped version to v1.1.0
continuous-integration/drone/push Build is passing
2023-04-19 15:48:16 +02:00
niggl b25b0db760 Added hints 2023-04-19 15:47:54 +02:00
niggl fe59e3a557 Added average donation per distance to stats 2023-04-19 15:46:50 +02:00
niggl 42c23a5883 Formatting 2023-04-19 15:45:34 +02:00
niggl 6ee5328dbc Added calls to controller 2023-04-19 15:41:49 +02:00
niggl 6f39ac42da feat(stats): Added donation count and donor count to stats 2023-04-19 15:41:43 +02:00
niggl 301f334674 🚀Bumped version to v1.0.1
continuous-integration/drone/push Build is passing
2023-04-18 20:09:58 +02:00
niggl fcee3909f4 fix(pagination) page=0 resulted in false thx JS 2023-04-18 20:09:44 +02:00
niggl f0e20e4130 🚀Bumped version to v1.0.0
continuous-integration/drone/push Build is passing
2023-04-18 20:03:51 +02:00
niggl 80de188565 Merge pull request 'feature/205-pagination' (#206) from feature/205-pagination into dev
continuous-integration/drone/push Build is passing
Reviewed-on: #206
Reviewed-by: Philipp Dormann <philipp@noreply.git.odit.services>
2023-04-18 18:03:20 +00:00
niggl 2f305e127c Updated test for attribute
continuous-integration/drone/pr Build is passing
2023-04-18 20:02:03 +02:00
niggl 513d7f6fba usergroup pagination
continuous-integration/drone/pr Build is failing
ref #205
2023-04-18 18:44:15 +02:00
niggl 244da61892 users pagination
ref #205
2023-04-18 18:43:13 +02:00
niggl 2a72aea10e Track pagination
continuous-integration/drone/pr Build is failing
ref #205
2023-04-18 18:41:57 +02:00
niggl 71ebce6f8e statsclient pagination
continuous-integration/drone/pr Build is failing
ref #205
2023-04-18 18:40:45 +02:00
niggl f60025b6de scanstation pagination
continuous-integration/drone/pr Build is failing
ref #205
2023-04-18 18:39:37 +02:00
niggl 0fa663a341 RunnerTeam Pagination
continuous-integration/drone/pr Build is failing
ref #205
2023-04-18 18:38:27 +02:00
niggl 538622aa18 Added pagination for runner orgs
ref #205
2023-04-18 18:37:09 +02:00
niggl 86a21dbfa4 Get all pagination for permissions
continuous-integration/drone/pr Build is failing
ref #205
2023-04-18 18:35:25 +02:00
niggl 1e9e24d99d Pagination for group contacts
ref #205
2023-04-18 18:34:08 +02:00
niggl 4493c0e3d9 Added pagination for get all donors
continuous-integration/drone/pr Build is failing
ref #205
2023-04-18 18:30:20 +02:00
niggl f5d48fc638 Added pagination for donations
ref #205
2023-04-18 18:28:55 +02:00
niggl b35a2dd2fa Added pagination for runnercards
ref #205
2023-04-18 18:27:11 +02:00
niggl a28ffe06e5 Formatting
ref #205
2023-04-18 18:21:09 +02:00
niggl d873674819 Added pagination for runners
ref #205
2023-04-18 18:20:56 +02:00
niggl 37b2ac974b Added pagination for get all scans
ref #205
2023-04-18 18:17:10 +02:00
niggl 81aed1de40 🚀Bumped version to v0.15.4
continuous-integration/drone/push Build is passing
2023-04-15 22:52:10 +02:00
niggl 0f0c3c7214 Fixed possible null
continuous-integration/drone/push Build is passing
2023-04-15 22:51:48 +02:00
niggl 3909ed34f7 🚀Bumped version to v0.15.3
continuous-integration/drone/push Build is passing
2023-04-15 22:36:09 +02:00
niggl b2ac70e0ae Faster stats (not including donations) 2023-04-15 22:35:55 +02:00
niggl 5f17e7f783 🚀Bumped version to v0.15.2
continuous-integration/drone/push Build is passing
2023-04-15 21:16:56 +02:00
niggl a5a56a263a Resolve groups again for card generation 2023-04-15 21:15:29 +02:00
niggl 2d8f7528d9 Don't resolve runner group and parten with get all card requests 2023-04-15 21:13:14 +02:00
niggl 9581185b24 🚀Bumped version to v0.15.1
continuous-integration/drone/push Build is passing
2023-04-15 21:11:56 +02:00
niggl 2905884c02 Log batch time in mass scan script 2023-04-15 21:11:32 +02:00
niggl e9914e317b Faster trackscan creation by only loading the latest scan 2023-04-15 21:08:08 +02:00
niggl 702070da66 Dont load cards with get all runners request 2023-04-15 20:55:22 +02:00
niggl cc89ba8afb 🚀Bumped version to v0.15.0
continuous-integration/drone/push Build is passing
2023-04-15 20:51:28 +02:00
niggl 7c4ff42a3b More scan request optimizations 2023-04-15 20:51:13 +02:00
niggl 8007117434 Added test script for creating mass scans 2023-04-15 20:50:48 +02:00
niggl 23fa78eb9d Get all scans speed improvement 2023-04-15 20:31:52 +02:00
niggl 3b3e68900b 🚀Bumped version to v0.14.6
continuous-integration/drone/push Build is passing
2023-04-15 18:20:54 +02:00
niggl 3ff666fd3e Missing orm file 2023-04-15 18:19:47 +02:00
niggl 4e4435010f 🚀Bumped version to v0.14.5
continuous-integration/drone/push Build is passing
2023-04-15 18:16:09 +02:00
niggl de9af5a909 Entrypoint fix 2023-04-15 18:15:57 +02:00
niggl ac631f0af4 Fixed copy 2023-04-15 18:13:58 +02:00
niggl 6bbdd5bb04 🚀Bumped version to v0.14.4
continuous-integration/drone/pr Build was killed
continuous-integration/drone/push Build is passing
2023-04-15 18:09:49 +02:00
niggl a8fc755840 Back to ean13 based codes
continuous-integration/drone/push Build was killed
continuous-integration/drone/pr Build is failing
2023-04-15 18:09:24 +02:00
niggl 27e74e824c pinned pnpm to 8
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-04-12 14:12:05 +02:00
niggl b5c0a288ac coherent baseimage
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing
2023-03-29 20:35:16 +02:00
niggl 85dc3444ac custom pnpm cache
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is passing
2023-03-29 20:29:56 +02:00
niggl d02743984d install prod in first step
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is passing
2023-03-29 20:29:08 +02:00
niggl 734c826fac added missing ci env
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-03-29 20:27:01 +02:00
niggl 33b25c9743 bumped final pnpm version
continuous-integration/drone/pr Build was killed
continuous-integration/drone/push Build is passing
2023-03-29 20:03:38 +02:00
niggl 6275aaa326 Switched ci over to pnpm + cache
continuous-integration/drone/pr Build was killed
continuous-integration/drone/push Build is failing
2023-03-29 19:56:05 +02:00
niggl 2a94bfa622 pinned pnpm version 2023-03-29 19:53:42 +02:00
niggl a64f6c9822 COPY by stage name 2023-03-29 19:52:59 +02:00
niggl 93d43b7684 Switched dockerfile to pnpm 8 with cache 2023-03-29 19:52:31 +02:00
niggl 16ce0a8480 🚀Bumped version to v0.14.3
continuous-integration/drone/push Build is passing
2023-03-18 22:15:02 +01:00
niggl 9a8d618ae4 Adjusted modulo for new fixed card length 2023-03-18 22:14:50 +01:00
niggl 38da2d3318 🚀Bumped version to v0.14.2
continuous-integration/drone/push Build is passing
2023-03-18 21:55:23 +01:00
niggl 068deb4960 Back to modulo 2023-03-18 21:55:10 +01:00
niggl 13f093bb61 🚀Bumped version to v0.14.1
continuous-integration/drone/push Build is passing
2023-03-18 21:46:38 +01:00
niggl 6289f30740 Switched from card prefix replacement via modulo to regex 2023-03-18 21:46:21 +01:00
niggl 6ff764bc34 🚀Bumped version to v0.14.0
continuous-integration/drone/push Build is passing
2023-03-15 14:44:34 +01:00
niggl ea87cc793b Updated default length 2023-03-15 14:44:19 +01:00
niggl 92517e3653 Removed sqlite journal 2023-03-15 14:39:40 +01:00
niggl ffee887ddf breaking(runnercards): shorter runnercard codes (padding to 12 was a bit tooo ambitious) 2023-03-15 14:39:24 +01:00
6 changed files with 560 additions and 712 deletions
-174
View File
@@ -1,174 +0,0 @@
---
kind: secret
name: docker_username
get:
path: odit-registry-builder
name: username
---
kind: secret
name: docker_password
get:
path: odit-registry-builder
name: password
---
kind: secret
name: git_ssh
get:
path: odit-git-bot
name: sshkey
---
kind: secret
name: ci_token
get:
path: odit-ci-bot
name: apikey
---
kind: secret
name: npm_url
get:
path: odit-npm-cache
name: url
---
kind: pipeline
type: kubernetes
name: tests:node
clone:
disable: true
steps:
- name: checkout pr
image: alpine/git
commands:
- git clone $DRONE_REMOTE_URL .
- git checkout $DRONE_SOURCE_BRANCH
- name: run tests
image: registry.odit.services/hub/library/node:19.5.0-alpine3.16
commands:
- npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@8
- pnpm i
- pnpm test:ci
environment:
NPM_REGISTRY_URL:
from_secret: npm_url
trigger:
event:
- pull_request
---
kind: pipeline
type: kubernetes
name: build:dev
clone:
disable: true
steps:
- name: clone
image: alpine/git
commands:
- git clone $DRONE_REMOTE_URL .
- git checkout dev
- name: build dev
depends_on: ["clone"]
image: registry.odit.services/library/drone-kaniko
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
build_args:
- NPM_REGISTRY_URL:
from_secret: npm_url
repo: lfk/backend
tags:
- dev
cache: true
registry: registry.odit.services
trigger:
branch:
- dev
event:
- push
---
kind: pipeline
type: kubernetes
name: build:latest
clone:
disable: true
steps:
- name: clone
image: alpine/git
commands:
- git clone $DRONE_REMOTE_URL .
- git checkout dev
- git merge main
- git checkout main
- name: build latest
depends_on: ["clone"]
image: registry.odit.services/library/drone-kaniko
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
build_args:
- NPM_REGISTRY_URL:
from_secret: npm_url
repo: lfk/backend
tags:
- latest
cache: true
registry: registry.odit.services
- name: push merge to repo
depends_on: ["clone"]
image: appleboy/drone-git-push
settings:
branch: dev
commit: false
remote: git@git.odit.services:lfk/backend.git
ssh_key:
from_secret: git_ssh
trigger:
branch:
- main
event:
- push
---
kind: pipeline
type: kubernetes
name: build:tags
steps:
- name: build $DRONE_TAG
depends_on: ["clone"]
image: registry.odit.services/library/drone-kaniko
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
build_args:
- NPM_REGISTRY_URL:
from_secret: npm_url
repo: lfk/backend
tags:
- "${DRONE_TAG}"
cache: true
registry: registry.odit.services
- name: trigger js lib build
image: idcooldi/drone-webhook
settings:
urls: https://ci.odit.services/api/repos/lfk/lfk-client-js/builds?SOURCE_TAG=${DRONE_TAG}
bearer:
from_secret: ci_token
trigger:
event:
- tag
+39
View File
@@ -0,0 +1,39 @@
steps:
- name: build latest
image: woodpeckerci/plugin-docker-buildx
settings:
repo: registry.odit.services/lfk/backend
tags:
- latest
registry: registry.odit.services
platforms: linux/amd64,linux/arm64
cache_from: registry.odit.services/lfk/backend:latest
username:
from_secret: odit-registry-builder-username
password:
from_secret: odit-registry-builder-password
secrets:
- source: odit-npm-cache-url
target: NPM_REGISTRY_URL
when:
branch: main
- name: build dev
image: woodpeckerci/plugin-docker-buildx
settings:
repo: registry.odit.services/lfk/backend
tags:
- dev
registry: registry.odit.services
platforms: linux/amd64,linux/arm64
cache_from: registry.odit.services/lfk/backend:dev
username:
from_secret: odit-registry-builder-username
password:
from_secret: odit-registry-builder-password
secrets:
- source: odit-npm-cache-url
target: NPM_REGISTRY_URL
when:
branch: dev
when:
event: push
+29
View File
@@ -0,0 +1,29 @@
steps:
- name: build tag
image: woodpeckerci/plugin-docker-buildx
settings:
repo: registry.odit.services/lfk/backend
tags:
- "${CI_COMMIT_TAG}"
registry: registry.odit.services
platforms: linux/amd64,linux/arm64
cache_from: registry.odit.services/lfk/backend:latest
username:
from_secret: odit-registry-builder-username
password:
from_secret: odit-registry-builder-password
secrets:
- source: odit-npm-cache-url
target: NPM_REGISTRY_URL
- name: trigger js lib build
image: woodpeckerci/plugin-trigger
settings:
repositories:
- lfk/lfk-client-js
params:
- "SOURCE_TAG=${CI_COMMIT_TAG}"
token:
from_secret: odit-ci-bot-apikey
when:
event: tag
+13
View File
@@ -0,0 +1,13 @@
steps:
- name: playwright tests
image: registry.odit.services/hub/library/node:19.5.0-alpine3.16
commands:
- npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@8
- pnpm i
- pnpm test:ci
secrets:
- source: odit-npm-cache-url
target: NPM_REGISTRY_URL
when:
event:
- pull_request
+2 -2
View File
@@ -26,7 +26,7 @@
"license": "CC-BY-NC-SA-4.0",
"dependencies": {
"@odit/class-validator-jsonschema": "2.1.1",
"argon2": "0.27.1",
"argon2": "0.31.2",
"axios": "0.21.1",
"body-parser": "1.19.0",
"check-password-strength": "2.0.2",
@@ -46,7 +46,7 @@
"reflect-metadata": "0.1.13",
"routing-controllers": "0.9.0-alpha.6",
"routing-controllers-openapi": "2.2.0",
"sqlite3": "5.0.0",
"sqlite3": "5.1.6",
"typeorm": "0.2.30",
"typeorm-routing-controllers-extensions": "0.2.0",
"typeorm-seeding": "1.6.1",
+477 -536
View File
File diff suppressed because it is too large Load Diff