louispaulb
9999dff6ce
Fix critical bugs: transaction integrity, PTO calculations, session secret
...
Node-CI / test (push) Successful in 1m25s
Node-CI / lint (push) Successful in 1m41s
Node-CI / build (push) Failing after 2m4s
- banking-hours.service: use tx instead of this.prisma inside transaction
- sick-leave.service: use tx inside transaction + increment instead of set
- vacation.service: remove invalid WHERE clause on paidTimeOff update
- main.ts: session secret from env var, dev auth bypass, CORS origin:true
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 13:10:31 -04:00
Matthieu Haineault
c427cc7718
reafactor(EsLint): Eslint corrections
2026-02-27 13:19:38 -05:00
Matthieu Haineault
368c5b1a2a
Merge branch 'main' of git.targo.ca:Targo/targo_backend into dev/matthieu/tickets
2026-02-27 10:13:19 -05:00
Matthieu Haineault
aa72651a67
refactor(EsLint): EsLint corrections
2026-02-27 10:09:24 -05:00
Matthieu Haineault
f3753ec53e
feat(tickets): implemented a function to GET the list of tickets according to sorting and filter args
2026-02-23 15:27:30 -05:00
40fa274571
added tickets module server in Cors
2026-02-19 09:45:25 -05:00
Matthieu Haineault
047871fe35
fix(prisma): many small fixes due to prisma updated version
2026-02-06 15:03:14 -05:00
Matthieu Haineault
6d911014de
feat(Accounts): setthing up account services and e2e testing of the routes
2026-02-06 08:37:40 -05:00
Matthieu Haineault
6d17baf6c8
fix(prisma): fix prisma calls to match 7.3.0 versions
2026-02-05 11:52:46 -05:00
Matthieu Haineault
b269062816
fix(Prisma): Fix prisma queries around the whole app to match new structure of many instance of clients/services files. added scripts to manage more than one schema at a time
2026-02-04 14:13:06 -05:00
Matthieu Haineault
8b9c2f7a86
feat(mariaDB): clean prisma MariaDB folders. re-organized it and added scripts command for easier generation and migration
2026-02-03 15:52:02 -05:00
Matthieu Haineault
25e9200c41
Merge branch 'main' of git.targo.ca:Targo/targo_backend into dev/matthieu/prisma/MariaDB
2026-02-03 11:42:02 -05:00
Matthieu Haineault
d7eacd127c
feat(prisma): setup for including MariaDB with the new Prisma version 7.3.0
2026-02-03 11:40:08 -05:00
bf630acb7c
replaced app2 by portail
2026-01-20 09:02:02 -05:00
78798c9173
added app2.targo.ca in CORS
2026-01-14 15:37:30 -05:00
Matthieu Haineault
28b8a5612f
feat(scripts): added a scripts to fetch and update employee supervisors and supervisor status
2026-01-13 09:13:58 -05:00
Matthieu Haineault
5b778943a1
feat(paid_time-off): worked on vacation service, implemented vacation business logic inside shifts creation and did a migration
2026-01-08 12:13:14 -05:00
Matthieu Haineault
0791f124a0
feat(schema): migration of the new table paid_time_off and added a column to employee table = daily_expected_hours
2026-01-06 09:13:36 -05:00
124a80f9bf
fixed mispelled URLs
2026-01-05 09:36:57 -05:00
3554f2e901
added app.targo.ca and staging.app.targo.ca to the allowed frontend URLs
2026-01-05 09:07:47 -05:00
Matthieu Haineault
3a0dc4c1ce
feat(troubleshooting): roll-back du dernier commit et clean de debugg comments
2025-12-19 09:54:51 -05:00
Matthieu Haineault
a80dd357a3
feat(debugging): temporary guard disable and comment for troubleshooting dockerization of the staging app. to be rolled-back before prod
2025-12-19 09:24:26 -05:00
491bd7022c
feat(auth): add session table to prisma that will be used by express-session to store user session data
2025-12-05 11:33:10 -05:00
Matthieu Haineault
d81186ba2b
clean(modules): modules file cleaning
2025-12-04 15:00:36 -05:00
Matthieu Haineault
ebc1cd77d8
refactor(controllers): added ModuleAccessAllowed and Access decorators
2025-12-01 16:03:48 -05:00
Matthieu Haineault
ddb469cd8e
feat(decorator): create a new Access decorator and added external_payroll_id to findEmployee
2025-12-01 08:34:08 -05:00
Matthieu Haineault
e76f2a9a72
feat(preferences): added validation pipes to DTO, commented migration scripts
2025-11-27 08:47:47 -05:00
Matthieu Haineault
35665d49dd
fix(migration): commented extractionOldExpenses from main.ts
2025-11-24 16:42:27 -05:00
Matthieu Haineault
58c4b22f0f
fix(migration): minor fixes and modifications to DB scripts
2025-11-24 16:36:30 -05:00
Matthieu Haineault
5452641f19
feat(migration): added a split prismaModule to manage legacy DB, created scripts to fetch old data, transform to match the new structure and creates new items in the new DB
2025-11-24 14:59:16 -05:00
88d4f2fe27
fix(shift): fix minor issue with naming property (changed to shift_id from id)
2025-11-05 14:31:31 -05:00
Matthieu Haineault
e0cefc8ec9
refactor(expenses): modified createExpense signature. removed timesheet_id from the param. ajusted auth logic
2025-10-31 12:11:55 -04:00
78aec894ed
fix(auth): change auth to work with remote docker lab
2025-10-30 14:23:52 -04:00
Matthieu Haineault
f9931f99c8
feat(validationPipe): Global Exception Filter basic setup using APP_FILTER and APP_PIPE
2025-09-11 16:48:05 -04:00
Matthieu Haineault
9d3967c5c7
feat(attachments): base config for attachment management.
2025-08-14 16:54:11 -04:00
bd4fc5fd30
Merge branch 'main' of git.targo.ca:Targo/targo_backend
2025-08-05 08:47:09 -04:00
28b2a7ccd8
fix(login): add CORS permissions to main.ts, modify login route to include versioning
2025-08-05 08:43:26 -04:00
Matthieu Haineault
5274bf41c1
feat(archival): setup services and modules for archivation options via Cron job. small fixes to schema.prisma
2025-07-29 14:54:19 -04:00
75910e377d
feat(Oauth2): implement full Oauth2 authentication handshake with Authentik IdP. Authorization (authentik-auth.service) is disconnected for now.
2025-07-24 16:22:26 -04:00
Matthieu Haineault
bd954b5c87
feat(swagger): swagger tags and docs generation
2025-07-22 14:33:21 -04:00
Matthieu Haineault
cc567b2b26
feat(Roles): role guards et setup ownship(not implemented, yet)
2025-07-18 10:20:52 -04:00
Matthieu Haineault
dc3fac76c1
feat(users): CRUD module users
2025-07-15 13:36:04 -04:00
Matthieu Haineault
e22c33b29e
first commit
2025-07-15 10:41:53 -04:00