karilint
08cfb1bd7b
Improve species merge UX and docs
2026-04-14 15:11:05 +03:00
karilint
8c1f809a19
Optimize linting performance for faster development workflow
...
Performance Improvements:
- Add ESLint --cache flags to all lint commands (frontend, backend, cypress)
- Frontend linting: 80s -> 2.5s on subsequent runs (97% improvement)
- Backend and Cypress linting also benefit from caching
Configuration Changes:
- Update frontend/package.json: Add --cache flag to lint script
- Update backend/package.json: Add --cache flag to lint script
- Update package.json: Add --cache flag to lint:cypress script
- Add lint:staged script preparation (npx lint-staged)
- Update pre-commit hook to use optimized lint:staged approach
- Add lint-staged configuration for changed-files-only linting
Resolves: Slow pre-commit hooks that caused development delays
Impact: Dramatic reduction in linting time, especially on repeated runs
2026-03-30 18:11:33 +03:00
Kari Lintulaakso
f4fd11791b
Fix Cypress lint script for TypeScript specs
2025-11-24 17:21:32 +02:00
Kari Lintulaakso
3b66f4660f
Update Cypress coverage dependency
2025-11-24 15:15:07 +02:00
Kari Lintulaakso
287761cf23
Update ESLint configuration and dependency versions
2025-11-24 13:01:36 +02:00
Kari Lintulaakso
04ba84faef
Add pre-commit checks and cache lint workflow
2025-11-20 15:36:46 +02:00
Kari Lintulaakso
69a093e7e1
Align lint and type-check configuration
2025-11-20 15:19:21 +02:00
Kari Lintulaakso
fca782ffba
chore: add root typescript dev dependency
2025-11-07 10:28:42 +02:00
lkauria and GitHub
0b154be8a8
Revert "Locality details displayed in sidebar"
2025-06-06 13:46:29 +03:00
Elias Junno
c3d7864f6e
Merge remote-tracking branch 'origin/main' into locality-details-displayed-in-sidebar
2025-05-27 12:26:00 +03:00
Aaro Koivukangas and Aaro Koivukangas
2325b26d8f
added lots of technical documentation about devops. Renamed few commands
2024-12-09 17:58:09 +01:00
Sampo Riitala and Aaro Koivukangas
bfbb019e51
add mocha eslint plugin to warn about exclusive tests (it.only)
2024-12-02 11:12:09 +01:00
Aaro Koivukangas
3d22ed4801
removed interaction from
...
> nowdatabase@1.0.0 setup
> npm run install:all && npm run prisma && npm run config:all
> nowdatabase@1.0.0 install:all
> npm i && cd backend && npm i && cd ../frontend && npm i && cd ..
up to date, audited 600 packages in 2s
100 packages are looking for funding
run `npm fund` for details
2 vulnerabilities (1 low, 1 high)
To address all issues, run:
npm audit fix
Run `npm audit` for details.
up to date, audited 893 packages in 3s
134 packages are looking for funding
run `npm fund` for details
9 vulnerabilities (4 low, 1 moderate, 4 high)
To address all issues, run:
npm audit fix
Run `npm audit` for details.
up to date, audited 788 packages in 3s
163 packages are looking for funding
run `npm fund` for details
5 vulnerabilities (1 low, 2 moderate, 2 high)
To address all issues, run:
npm audit fix
Run `npm audit` for details.
> nowdatabase@1.0.0 prisma
> cd backend && npx prisma generate --schema prisma/schema.prisma && npx prisma generate --schema prisma/schema_log.prisma
Prisma schema loaded from prisma/schema.prisma
✔ Generated Prisma Client (v5.22.0) to ./prisma/generated/now_test_client in 1.17s
Start by importing your Prisma Client (See: https://pris.ly/d/importing-client )
Tip: Easily identify and fix slow SQL queries in your app. Optimize helps you enhance your visibility: https://pris.ly/--optimize
Prisma schema loaded from prisma/schema_log.prisma
✔ Generated Prisma Client (v5.22.0) to ./prisma/generated/now_log_test_client in 212ms
Start by importing your Prisma Client (See: https://pris.ly/d/importing-client )
Tip: Curious about the SQL queries Prisma ORM generates? Optimize helps you enhance your visibility: https://pris.ly/tip-2-optimize
> nowdatabase@1.0.0 config:all
> npm run config:dev && npm run config:anon && npm run config:test
> nowdatabase@1.0.0 config:dev
> cp -n .template.env .dev.env && npm run config:geonames -- .dev.env
> nowdatabase@1.0.0 config:geonames
> sed -i -e "s|GEONAMES_USERNAME: \"\"|GEONAMES_USERNAME: $GEONAMES_USERNAME|g" .dev.env
> nowdatabase@1.0.0 config:anon
> npm run config:anon:base && npm run config:anon:host && npm run config:anon:coordinator && npm run config:geonames -- .anon.env
> nowdatabase@1.0.0 config:anon:base
> cp -n .template.env .anon.env
> nowdatabase@1.0.0 config:anon:host
> sed -i -e "s|nowdb-db-dev|nowdb-db-anon|g" .anon.env
> nowdatabase@1.0.0 config:anon:coordinator
> sed -i -e "s|IZ|TEST-SU|g" .anon.env
> nowdatabase@1.0.0 config:geonames
> sed -i -e "s|GEONAMES_USERNAME: \"\"|GEONAMES_USERNAME: $GEONAMES_USERNAME|g" .anon.env
> nowdatabase@1.0.0 config:test
> npm run config:test:base && npm run config:test:host && npm run config:test:coordinator && npm run config:geonames -- .test.env && npm run config:test:yaml && npm run config:test:quotes
> nowdatabase@1.0.0 config:test:base
> cp -n .template.env .test.env
> nowdatabase@1.0.0 config:test:host
> sed -i -e "s|nowdb-db-dev|localhost|g" .test.env
> nowdatabase@1.0.0 config:test:coordinator
> sed -i -e "s|IZ|TEST-SU|g" .test.env
> nowdatabase@1.0.0 config:geonames
> sed -i -e "s|GEONAMES_USERNAME: \"\"|GEONAMES_USERNAME: $GEONAMES_USERNAME|g" .test.env
> nowdatabase@1.0.0 config:test:yaml
> sed -i -e "s|: |=|g" .test.env
> nowdatabase@1.0.0 config:test:quotes
> sed -i -e "s|\"||g" .test.env
2024-11-26 10:07:45 +02:00
Eero Antikainen and GitHub
ca537ce13d
Merge branch 'main' into cross-search-optimization
2024-11-21 13:51:54 +02:00
Aaro Koivukangas and Eero Antikainen
9f8beda614
refactored scripts to make room for backend unit tests
2024-11-20 18:37:37 +02:00
Aaro Koivukangas and Aaro Koivukangas
09d8106210
refactored config:all to be able to insert geonames username to env files through env variable.
2024-11-20 14:33:33 +01:00
Aaro Koivukangas and Aaro Koivukangas
18232f27c4
removed quotes from .test.env
2024-11-20 14:33:33 +01:00
Aaro Koivukangas and Aaro Koivukangas
9e617f62a0
typo fix
2024-11-20 14:33:33 +01:00
Aaro Koivukangas and Aaro Koivukangas
cbcfdcae51
implemented new npm scripts to create env files from .template.env
2024-11-20 14:33:33 +01:00
Sampo Riitala
755029a60f
add linting for cypress tests
2024-11-04 21:53:41 +02:00
Aaro Koivukangas
d941b3916f
removed -it flag from docker from api-tests also
2024-10-24 12:26:54 +02:00
Aaro Koivukangas
cf7ec09a69
removed -it flag for docker from e2e tests
2024-10-24 11:54:20 +02:00
Aaro Koivukangas and Aaro Koivukangas
895f5b9ec7
refactored tests to use single docker containers and not docker-compose.test.yml
2024-10-24 12:13:20 +03:00
Aaro Koivukangas and Sampo
eb0add219a
added gh actions for unit-tests
2024-10-22 19:34:27 +03:00
Aaro Koivukangas
d5c4baa76f
removing unnecessary scripts
2024-09-30 10:33:24 +02:00
Aaro Koivukangas
bbd10e16dd
improved documentation and renamed many scripts to better match current situation
2024-09-30 10:33:24 +02:00
Aaro Koivukangas and Eero Antikainen
248f2c1187
added coverage reporting for frontend
2024-09-30 11:15:19 +03:00
Aaro Koivukangas and Aaro Koivukangas
eb40d3bb7a
refactored tests to utilize supertest
2024-09-27 22:06:33 +03:00
Aaro Koivukangas and Aaro Koivukangas
e4d611ef8e
made preparations for coverage
2024-09-27 22:06:33 +03:00
Aaro Koivukangas and Aaro Koivukangas
058fe7cf5a
implemented e2e tests inside docker compose
2024-09-22 23:23:21 +03:00
Aaro Koivukangas and Aaro Koivukangas
0aa9844c4b
added new docker compose file to run api-tests
2024-09-22 23:23:21 +03:00
Aaro Koivukangas and Aaro Koivukangas
073c4672ac
added script to clean the whole project
2024-09-19 13:10:33 +03:00
Miina Saroma
66799d4a1f
Add leaflet types
2024-09-11 12:54:55 +03:00
Aaro Koivukangas
2637fd54c7
added scripts to package.json for removing incorrect volumes
2024-09-05 06:51:25 +02:00
arttu
c69fa525aa
Fix anon reset script
2024-09-03 23:27:04 +03:00
ShootingStar91
6a8c176c39
Add script for resetting both anon dbs
2024-08-28 22:28:52 +03:00
ShootingStar91
ba6ef6dc3e
Fix eslint error & remove husky script
2024-08-08 13:04:28 +03:00
arttu
ca7a5d3594
Remove husky (precommit thing)
2024-08-07 12:22:44 +03:00
arttu
9193fc0e28
Add scripts to check individual services
2024-06-11 17:28:15 +03:00
ShootingStar91
5e7477acc1
Add a few setup scripts; try to fix build version with log db
2024-06-11 15:35:15 +03:00
arttu
559159cd3f
Fix merge things & add prisma generate script
2024-06-11 14:16:12 +03:00
arttu
28a0e3cd10
Improve & update readme's
2024-06-07 00:38:03 +03:00
arttu
81581e447f
Refactor backend edit route & service things
2024-06-06 17:57:33 +03:00
arttu
c05891e77b
Add workflow for e2e tests & npm test command for headless cypress
2024-06-06 12:48:56 +03:00
arttu
bc13c36f7f
Install cypress & make npm script to open
2024-06-06 12:04:40 +03:00
arttu
6fac6ab0cb
Add anon-data, dockersetup, start script. User passwords set to test
2024-06-06 11:56:47 +03:00
ShootingStar91
a8689620ad
Create handy check-script in root
2024-06-05 13:25:46 +03:00
arttu and Arttu Kangas
b2a8f0f663
Remove eslint stuff from root package.json
2024-05-16 08:33:14 +03:00
arttu
be041f8444
Add pre-commit hooks, improve eslint, fix errors, add documentation
2024-05-15 19:08:33 +03:00
arttu
121462059a
Remove license fields from package.jsons
2024-05-15 15:12:59 +03:00