Nabeel S.
1492031f4f
Merge branch 'main' into fix/schedule-without-overlapping
2026-06-03 11:58:18 -05:00
Nabeel Shahzad
92aae040e0
Fix incorrect Vite asset path in route forge view
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-06-03 11:56:23 -05:00
Nabeel Shahzad
4612f54551
Build assets path
2026-06-02 23:17:45 -05:00
Nabeel S.
f9e0972561
Fixes/postgres ( #2229 )
2026-06-02 17:14:51 -05:00
Nabeel S.
4dd5e517c9
Merge branch 'main' into fixes/postgres
2026-06-02 17:12:41 -05:00
Nabeel Shahzad
7d09cac306
Fix assets not building
2026-06-02 17:11:08 -05:00
Nabeel Shahzad
5efd304d36
Test/coordination fixes
2026-06-02 16:58:06 -05:00
Nabeel Shahzad
ef2aa9d5b1
Fix sample seeder
2026-06-02 16:15:59 -05:00
Nabeel S.
d8cff98c05
Postgres compatibility ( #2223 )
...
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Test/dev environment switched to PostgreSQL with persistence,
init/health checks; added formatting/linting config and a new dev
tooling dependency; updated editor config; removed legacy base YAML
seeds.
* **New Features**
* Centralized settings seeder and idempotent base-data seeder; seeding
flow refactored and PostgreSQL sequence-reset added.
* **Bug Fixes**
* Migrations made database-driver aware and duplicate-flight detection
tightened.
* **Tests**
* Test bootstrap now seeds settings via the new seeder.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-06-02 15:51:09 -05:00
Nabeel Shahzad
1ed8ba8a18
More test fixes
2026-06-02 15:40:01 -05:00
Thomas Kant
6b028ce902
Add withoutOverlapping() to recurring scheduled cron tasks
...
The recurring cron tasks (cron-five-minutes … cron-monthly) had no
overlap protection, unlike the queue worker. When the scheduler is
triggered via more than one path — e.g. the built-in /api/cron web
cron together with a system `schedule:run` cron, or a duplicate
crontab entry — the same task can run concurrently. It also stacks
when a task runs longer than its interval. In practice this causes
intermittent failures around the nightly run (~01:00): two CronNightly
handlers firing at once → race conditions, double processing,
occasional DB deadlocks.
Add `withoutOverlapping($ttl)` so a task already running is skipped
instead of started a second time (mirrors the existing queue-worker
entry). The TTL is a safety release so a crashed task cannot hold the
lock indefinitely. No change to what the tasks do or when they run.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-02 19:40:41 +02:00
Nabeel Shahzad
de88746227
test fixes
2026-06-01 22:41:04 -05:00
Nabeel Shahzad
f5501291f1
postgres/mysql cleanup
2026-06-01 18:54:41 -05:00
Nabeel Shahzad
67c244240a
postgres fixes
2026-06-01 18:38:58 -05:00
Nabeel Shahzad
625082fdae
Build adjustments
2026-05-31 15:47:28 -05:00
Nabeel Shahzad
7eeecd5725
Fix factories and columns that aren't correct
2026-05-31 15:43:19 -05:00
Nabeel Shahzad
1b05dfe757
build fix
2026-05-31 15:02:48 -05:00
Nabeel Shahzad
7d0f97230b
Run migrations and tests against live dbs
2026-05-31 14:37:28 -05:00
Nabeel Shahzad
2c288fe126
make bad setting clearer
2026-05-31 14:24:41 -05:00
Nabeel Shahzad
66f58ea0c2
Don't run yaml seeder
2026-05-31 14:19:16 -05:00
Nabeel Shahzad
a6dbe44014
extra value in compose
2026-05-31 14:16:54 -05:00
Nabeel Shahzad
ee09d78beb
Make the base seeder a little more robust
2026-05-31 14:12:29 -05:00
Nabeel Shahzad
e8c7f7f455
Mago adjustment
2026-05-31 13:50:23 -05:00
Nabeel Shahzad
381bc58f6d
Move the seed yamls into a Seeder classes
2026-05-31 13:47:25 -05:00
Nabeel Shahzad
b4937a4975
Move settings out of yml into its own seeder
2026-05-31 13:37:33 -05:00
Nabeel Shahzad
99faba2626
Update Sail configuration to use PostgreSQL by default, including environment variables and connection settings.
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-30 22:45:00 -05:00
Nabeel Shahzad
9a2ed0974c
Migrate expenses table to JSON column for flight_type, update Sail to use PostgreSQL, and refine duplicate handling in flights migration.
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-30 22:41:09 -05:00
Nabeel Shahzad
20029cd30d
Eager load ref_model relationships in expense migration and add AUTORUN_ENABLED environment variable to deployment configuration.
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-30 17:44:15 -05:00
Nabeel Shahzad
866ecfc15c
Eager load fares relationships across multiple models to improve consistency and reduce redundant queries.
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-30 17:02:07 -05:00
Nabeel Shahzad
b56a77e542
Remove simbrief.yml from sample seeder directory in the database
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 22:47:49 -05:00
Nabeel Shahzad
c36f94ee77
Add post_date field to YamlSeeder attribute list
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 22:45:35 -05:00
Nabeel Shahzad
b527c3caaf
Add Mailgun configuration and improve datetime parsing in YamlSeeder
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 22:39:42 -05:00
Nabeel Shahzad
4d932edeb9
Update YamlSeeder: use toDateTimeString for consistent datetime formatting
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 22:12:29 -05:00
Nabeel Shahzad
e1c358a841
Improve YamlSeeder: restrict datetime parsing to timestamp fields and support ISO 8601 conversion
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 21:54:16 -05:00
Nabeel Shahzad
1ec321fadd
Update sample seeder YAML: modify flight record ID and flight number
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 19:43:39 -05:00
Nabeel Shahzad
83a67de91d
Rename active to enabled in multiple files and update related logic for consistency.
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 18:26:49 -05:00
Nabeel Shahzad
0fdf1a4015
Add bundle_id field to second flight record in sample seeder YAML
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 18:16:14 -05:00
Nabeel Shahzad
482a8834af
Add bundle_id field to flight records in sample seeder YAML
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 17:46:25 -05:00
Nabeel Shahzad
e99965aa4b
Update seeder YAML to replace ref_model with ref_model_type for improved clarity
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 17:36:12 -05:00
Nabeel Shahzad
4b0e0e4c53
Refactor SeederService to simplify YAML seeding and adjust file paths
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 17:32:50 -05:00
Nabeel Shahzad
b300c18762
Remove demo and local database seeders for a cleaner configuration
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 17:30:53 -05:00
Nabeel Shahzad
c9a0c31008
Update default WWWUSER/WWWGROUP IDs in deploy compose and Dockerfile
...
- Set default WWWUSER/WWWGROUP to 1000 in compose.deploy.yml.
- Added corresponding ARGs for WWWUSER/WWWGROUP in Dockerfile.
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 16:51:44 -05:00
Nabeel Shahzad
a59b23023a
Comment out unprivileged user configuration in deploy compose and remove WWWUSER/WWWGROUP args from Dockerfile.
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 16:38:16 -05:00
Nabeel Shahzad
793de2c0e8
Update deploy compose and database configuration; adjust Dockerfile for unprivileged user
...
- Updated environment variable names in compose.deploy.yml for DB and Redis URLs.
- Changed default host, database, and username environment values in database configuration files to be blank.
- Adjusted default ports in deploy compose file and switched to non-root user IDs (33) in Dockerfile for improved security.
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 16:31:59 -05:00
Nabeel Shahzad
c143f99715
Set default database connection to SQLite in configuration file
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 15:42:36 -05:00
Nabeel Shahzad
d2d80a671c
Simplify database configuration by removing redundant comments.
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 15:39:21 -05:00
Nabeel Shahzad
66b9463867
Make environment variables configurable with defaults in deploy compose file
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 15:12:53 -05:00
Nabeel Shahzad
878ed93931
No changes, removed redundant line in production Dockerfile.
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 15:08:54 -05:00
Nabeel Shahzad
de6385ae45
Add PHP configuration directory and switch to unprivileged user in production Dockerfile
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 15:04:02 -05:00
Nabeel S.
1fda3f7e55
Remove unused USER directive from Dockerfile.prod
...
Signed-off-by: Nabeel Shahzad <99736+nabeelio@users.noreply.github.com>
2026-05-29 15:01:47 -05:00