Commit graph

108 commits

Author SHA1 Message Date
dc9a11fde3 Merge pull request 'develop' (#35) from develop into main
Reviewed-on: #35
2026-06-23 20:29:34 -04:00
ab7c00575c Merge branch 'main' into develop 2026-06-23 20:29:14 -04:00
86ab226024 update golang packages 2026-06-23 19:21:39 -05:00
fc33756897 Merge pull request 'scheduler' (#34) from jacs/core:scheduler into develop
Reviewed-on: #34
2026-06-23 19:55:57 -04:00
Jose Cely
987e8b98d0 scheduler updates 2026-06-23 18:12:36 -05:00
Jose Cely
d156e3785d add maxruns and option for loop forever 2026-06-22 11:48:20 -05:00
6bc768ba77 Merge pull request 'develop' (#33) from develop into main
Sheduler as core module feature, following the same pattern used for the Asynq queue system. The new core/scheduler/ subpackage contains QueueItem and ProcessedItem GORM models (tables queue_items and processed_items), a Store for database operations
2026-06-21 22:41:25 -04:00
7ec601ca10 Merge pull request 'Scheduler as a first-class core module feature, following the same pattern used for the Asynq queue system' (#32) from jacs/core:scheduler into develop
Reviewed-on: #32
2026-06-21 22:09:23 -04:00
Jose Cely
3710fbe343 Create a scheduler as a first-class core module feature, following the same pattern used for the Asynq queue system. The new core/scheduler/ subpackage contains QueueItem and ProcessedItem GORM models (tables queue_items and processed_items), a Store for database operations (enqueue, claim batch with SELECT FOR UPDATE SKIP LOCKED, result recording, stuck recovery), a Semaphore kill switch, and the polling Scheduler loop with configurable interval and rate limit. The core/scheduler.go wrapper exposes a Schedulermux struct (analogous to Queuemux) with SchedulerInit(), AddWork(), SetStore(), and RunScheduler() methods, plus global accessors ResolveSchedulerStore() and SchedulerSemaphoreSetGreen/Red/IsGreen() so controllers can enqueue work and control the semaphore without importing the subpackage directly. 2026-06-13 18:19:01 -05:00
ec47943a39 Merge pull request 'develop' (#31) from develop into main
Reviewed-on: #31
2026-05-19 00:42:37 -04:00
b757aef6b1 get queue configurations from config in cup 2026-05-18 22:34:37 -05:00
75ddca3e7d migrated from cup session to core/session.go, Contains the new SessionUser struct and the CreateAuthTokenHashedCacheKey utility function 2026-05-18 13:02:06 -05:00
7c164ef58f fix typo 2026-05-13 00:14:02 -05:00
d6dafa5ab6 fix typo 2026-05-13 00:10:30 -05:00
8604ce94ff fix order 2026-05-13 00:08:36 -05:00
8446f6fb2a In the core's response.go, add an optional RedirectCodeSetter field or variadic use303 ...bool parameter to Redirect() and use the stored code + http.StatusSeeOther in core.go instead of the hardcoded http.StatusTemporaryRedirect, so that a POST handler can redirect to a GET route by calling c.Response.Redirect("/url", true). 2026-05-12 23:21:03 -05:00
262c5befd9 - COOKIE_SECURE environment variable (defaults to true, set to false for local HTTP development)
- Cookie time and JWT share the same time
2026-05-11 21:35:00 -05:00
19dba8f504 - Add function RenderNamedTemplate executes a named template from the registered set with the given data and returns the rendered HTML.
- gormlogger.Silent is the log level that suppresses all Gorm log messages, including the "record not found" warnings.
2026-05-11 20:17:30 -05:00
59eadf29d0 fix bug Template Template compliance 2026-05-08 02:30:34 -05:00
6149d2945b Merge pull request 'develop' (#30) from develop into main
Reviewed-on: #30
2026-05-06 21:59:23 -04:00
0da7ea8ab1 Added Level type - A custom int type with constants DEBUG, INFO, WARNING, ERROR in increasing severity order.
Added `minLevel` field to Logger struct to track the minimum level threshold.
Added `SetLevel()` and `GetLevel()` methods for dynamically changing/reading the log level at runtime.
2026-05-06 16:06:25 -05:00
5e389115fc Custom html/template FuncMap extensions that bring Liquid-like expressiveness to Go server-side templates. 2026-05-02 03:00:56 -05:00
851c9afd03 go update 2026-05-02 01:15:26 -05:00
78a06fb900 sync graph code 2026-05-02 00:37:10 -05:00
3d67bc0a03 Merge pull request 'develop' (#27) from develop into main
Reviewed-on: #27
2025-09-18 01:12:53 -04:00
6b0e2e4739 Merge pull request 'main' (#26) from diana/core:main into develop
Reviewed-on: #26
2025-09-18 01:11:31 -04:00
e8f7ab40b5 Implemented a thread-safe solution to the race condition that was causing random route overlaps 2025-09-18 00:11:08 -05:00
3c0b56c433 add id 2025-08-26 13:31:13 -05:00
5c6be4b037 Merge pull request 'main' (#6) from goffee/core:main into main
Reviewed-on: diana/core#6
2025-08-26 13:39:08 -04:00
850d2ae477 Merge pull request 'develop' (#25) from develop into main
Reviewed-on: #25
2025-07-15 11:54:08 -04:00
5f0ca8e797 add options for cdn and app 2025-07-15 10:53:18 -05:00
c9cb539d18 check child items to active nav 2025-04-28 00:12:43 -05:00
30746a0602 check child items to active nav 2025-04-28 00:11:04 -05:00
e43ace6679 Merge pull request 'main' (#24) from main into develop
Reviewed-on: #24
2025-04-28 00:47:40 -04:00
653fd5c64e add ID to PageNavItem 2025-04-27 23:41:25 -05:00
f1772b99f3 Merge pull request 'develop' (#23) from develop into main
Reviewed-on: #23
2025-04-17 02:52:54 -04:00
f276f4d61d add element paginator 2025-04-17 01:49:43 -05:00
5c3559c793 Merge pull request 'template with select multiple, input custom attribute' (#22) from jacs/core:develop into develop
Reviewed-on: #22
2025-04-16 20:59:45 -04:00
jacs
e3748c853f template with select multiple, input custom attribute 2025-04-15 07:23:34 -05:00
259f2f4b79 add img and class to table template 2025-03-27 12:41:17 -05:00
cc8c79fe3d add img and class to table template 2025-03-27 12:19:18 -05:00
db3c510f9a add img and class to table template, new responnse buffer inline 2025-03-27 12:12:49 -05:00
1a39c666a3 fix 2025-03-18 23:43:09 -05:00
790c840f76 split if 2025-03-18 20:14:52 -05:00
a71b3697b6 Merge pull request 'develop' (#21) from develop into main
Reviewed-on: #21
2025-03-07 10:44:06 -05:00
530a1171e6 Merge pull request 'develop' (#20) from jacs/core:develop into develop
Reviewed-on: #20
2025-03-07 10:42:26 -05:00
3b6fa12911 change panic by err 2025-03-05 15:12:11 -05:00
9816e58e7c Merge pull request 'main' (#1) from goffee/core:main into main
Reviewed-on: jacs/core#1
2025-03-05 11:54:06 -05:00
695f1f57ba add documentation 2025-02-24 09:59:07 -05:00
1b23363f6f Merge pull request 'add config option to disable queues' (#19) from develop into main
Reviewed-on: #19
2024-12-23 23:44:23 -05:00