Hein
cb20a354fc
feat(cors): ✨ update SetCORSHeaders to accept Request
...
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Successful in -27m41s
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Successful in 53s
Tests / Unit Tests (push) Successful in 29s
Build , Vet Test, and Lint / Lint Code (push) Successful in -27m8s
Build , Vet Test, and Lint / Build (push) Successful in -27m25s
Tests / Integration Tests (push) Failing after 37s
* Modify SetCORSHeaders function to include Request parameter.
* Set Access-Control-Allow-Origin and Access-Control-Allow-Headers to "*".
* Update all relevant calls to SetCORSHeaders across the codebase.
2026-01-07 15:24:44 +02:00
Hein
37c85361ba
feat(cors): ✨ add check for server port in CORS config
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Successful in -27m37s
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Successful in 55s
Build , Vet Test, and Lint / Lint Code (push) Successful in -27m0s
Build , Vet Test, and Lint / Build (push) Successful in -27m20s
Tests / Integration Tests (push) Failing after -27m54s
Tests / Unit Tests (push) Successful in 2m1s
2026-01-07 12:06:08 +02:00
Hein
a7e640a6a1
fix(recursive_crud): 🐛 use dynamic primary key name in insert
...
* Update processInsert to use the primary key name dynamically.
* Ensure correct ID retrieval from data based on primary key.
2026-01-07 11:58:44 +02:00
Hein
bf7125efc3
feat(reflection): ✨ add ExtractTagValue and GetRelationshipInfo functions
...
* Implement ExtractTagValue to handle struct tag parsing.
* Introduce GetRelationshipInfo for extracting relationship metadata.
* Update tests to validate new functionality.
* Refactor related code for improved clarity and maintainability.
2026-01-07 11:54:12 +02:00
Hein
e220ab3d34
refactor(reflection): 🛠️ comment out ToSnakeCase usage in MapToStruct
2026-01-07 10:23:37 +02:00
Hein
6a0297713a
feat(reflection): ✨ enhance ToSnakeCase and add convertSlice function
...
* Improve ToSnakeCase to handle consecutive uppercase letters.
* Introduce convertSlice for element-wise conversions between slices.
* Update setFieldValue to support new slice conversion logic.
2026-01-07 10:23:23 +02:00
Hein
6ea200bb2b
refactor(cors): 🛠️ improve host handling in CORS config
...
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Successful in -27m44s
Build , Vet Test, and Lint / Lint Code (push) Successful in -27m5s
Build , Vet Test, and Lint / Build (push) Successful in -27m29s
Tests / Unit Tests (push) Successful in -27m48s
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Successful in 2m22s
Tests / Integration Tests (push) Failing after -28m1s
* Change loop to use index for server instances
* Simplify appending external URLs
* Clean up commented code for clarity
2026-01-06 14:07:56 +02:00
Hein
987244019c
feat(cors): ✨ enhance CORS configuration with dynamic origins
...
* Update CORSConfig to allow dynamic origins based on server instances.
* Add ExternalURLs field to ServerInstanceConfig for additional CORS support.
* Implement GetIPs function to retrieve non-local IP addresses for CORS.
2026-01-06 14:05:36 +02:00
Hein
62a8e56f1b
feat(reflection): ✨ add GetPointerElement function for type handling
...
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Successful in -27m40s
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Successful in -27m8s
Build , Vet Test, and Lint / Lint Code (push) Successful in -27m5s
Build , Vet Test, and Lint / Build (push) Successful in -27m21s
Tests / Unit Tests (push) Successful in -27m42s
Tests / Integration Tests (push) Failing after -27m55s
* Introduced GetPointerElement to simplify pointer type extraction.
* Updated handleUpdate methods to utilize GetPointerElement for better clarity and maintainability.
2026-01-06 10:45:23 +02:00
Hein
d8df1bdac2
feat(funcspec): ✨ add JSON and UUID handling in normalization
...
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Successful in -27m50s
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Successful in -27m25s
Build , Vet Test, and Lint / Lint Code (push) Successful in -27m22s
Build , Vet Test, and Lint / Build (push) Successful in -27m31s
Tests / Unit Tests (push) Successful in -27m54s
Tests / Integration Tests (push) Failing after -28m3s
* Enhance normalization to support JSON strings as json.RawMessage
* Add support for UUID formatting
* Maintain existing behavior for other types
2026-01-05 17:56:54 +02:00
Hein
c0c669bd3d
feat(handler): enhance update logic to merge existing records with incoming data
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Successful in -26m28s
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Successful in -24m52s
Build , Vet Test, and Lint / Lint Code (push) Successful in -26m57s
Build , Vet Test, and Lint / Build (push) Successful in -27m29s
Tests / Integration Tests (push) Failing after -27m58s
Tests / Unit Tests (push) Successful in -26m53s
2026-01-05 12:31:01 +02:00
Hein
ebd03d10ad
feat(dbmanager): 🚑 Singleton for the database manager
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Successful in -21m54s
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Successful in -21m29s
Build , Vet Test, and Lint / Build (push) Successful in -25m3s
Build , Vet Test, and Lint / Lint Code (push) Successful in -24m34s
Tests / Integration Tests (push) Failing after -25m39s
Tests / Unit Tests (push) Successful in -25m26s
2026-01-02 16:47:38 +02:00
Hein
4ee6ef0955
chore: 🙈 update git ignore
2026-01-02 16:20:56 +02:00
Hein
6f05f15ff6
feat(dbmanager): ✨ Database connection Manager
2026-01-02 16:19:33 +02:00
Hein
443a672fcb
feat(packages): ✨ Prometheus publish events
2026-01-02 13:48:31 +02:00
Hein
c2fcc5aaff
chore(spectypes): ✏️ edded scope
2026-01-02 12:17:37 +02:00
Hein
6664a4e2d2
fix(spectypes): 🐛 uuid value was not parsed as string and caused sql syntax error
2026-01-02 12:16:29 +02:00
Hein
e77468a239
refactor: ♻️ ach package accepts its configuration as a parameter rather than reading from global config
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Successful in -25m44s
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Successful in -25m19s
Build , Vet Test, and Lint / Lint Code (push) Successful in -25m18s
Build , Vet Test, and Lint / Build (push) Successful in -25m30s
Tests / Unit Tests (push) Failing after -25m51s
Tests / Integration Tests (push) Failing after -25m53s
2025-12-31 12:39:59 +02:00
Hein
82d84435f2
Fixed version release auto inc
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Successful in -25m36s
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Successful in -25m5s
Build , Vet Test, and Lint / Lint Code (push) Successful in -25m16s
Build , Vet Test, and Lint / Build (push) Successful in -25m29s
Tests / Unit Tests (push) Failing after -25m48s
Tests / Integration Tests (push) Failing after -25m53s
2025-12-31 09:41:23 +02:00
Hein
fae9a082bd
refactor: 🚨 linting issues
2025-12-31 09:37:12 +02:00
Hein
caf85cf558
fix: 🔒 Fixed funcapi possible injections
2025-12-31 09:09:16 +02:00
Hein
49cdc6f17b
fix: lint issues after merge
2025-12-30 17:46:33 +02:00
Hein
0bd653820c
Merge branch 'main' of https://github.com/bitechdev/ResolveSpec into feature-staticweb
2025-12-30 17:45:17 +02:00
Hein
9209193157
fix: lint issues and docs
2025-12-30 17:44:57 +02:00
Hein
28fd88fff1
staticweb package for easier static web server hosting
2025-12-30 17:31:07 +02:00
Hein
897cb2ae0d
fix: liniting issues and events dev
2025-12-30 14:40:45 +02:00
Hein
01420e6b63
Merge branch 'main' of https://github.com/bitechdev/ResolveSpec into websocketspec
2025-12-30 14:13:52 +02:00
Hein
e81d7b48cc
feature: mqtt support
2025-12-30 14:12:36 +02:00
Hein
8f5a725a09
Bugfix with xfiles
2025-12-30 14:12:07 +02:00
Hein
bf8500714a
Websocket spec fixes
2025-12-30 13:25:16 +02:00
Hein
d4a6f9c4c2
Better server manager
2025-12-29 17:19:16 +02:00
Hein
90df4a157c
Socket spec tests
2025-12-23 17:27:48 +02:00
Hein
2dd404af96
Updated to websockspec
2025-12-23 17:27:29 +02:00
Hein
17c472b206
Merge branch 'main' of https://github.com/bitechdev/ResolveSpec into websocketspec
2025-12-23 15:23:36 +02:00
Hein
ed67caf055
fix: reasheadspec customsql calls AddTablePrefixToColumns
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Successful in -25m42s
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Successful in -25m6s
Build , Vet Test, and Lint / Lint Code (push) Failing after -25m37s
Build , Vet Test, and Lint / Build (push) Successful in -25m35s
Tests / Unit Tests (push) Failing after -25m50s
Tests / Integration Tests (push) Failing after -25m59s
2025-12-23 14:17:02 +02:00
63ed62a9a3
fix: Stupid logic error.
...
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Successful in -26m2s
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Successful in -25m39s
Build , Vet Test, and Lint / Build (push) Successful in -25m47s
Build , Vet Test, and Lint / Lint Code (push) Successful in -25m6s
Tests / Unit Tests (push) Failing after -26m5s
Tests / Integration Tests (push) Failing after -26m5s
Co-authored-by: IvanX006 <ivan@bitechsystems.co.za >
Co-authored-by: Warkanum <HEIN.PUTH@GMAIL.COM >
Co-authored-by: Hein <hein@bitechsystems.co.za >
2025-12-19 16:52:34 +02:00
0525323a47
Fixed tests failing due to reponse header status
...
Co-authored-by: IvanX006 <ivan@bitechsystems.co.za >
Co-authored-by: Warkanum <HEIN.PUTH@GMAIL.COM >
Co-authored-by: Hein <hein@bitechsystems.co.za >
2025-12-19 16:50:16 +02:00
45c463c117
Fixed Attempt to Fix Docker / Podman
...
Co-authored-by: IvanX006 <ivan@bitechsystems.co.za >
Co-authored-by: Warkanum <HEIN.PUTH@GMAIL.COM >
Co-authored-by: Hein <hein@bitechsystems.co.za >
2025-12-19 16:42:01 +02:00
84d673ce14
Added OpenAPI UI Routes
...
Co-authored-by: IvanX006 <ivan@bitechsystems.co.za >
Co-authored-by: Warkanum <HEIN.PUTH@GMAIL.COM >
Co-authored-by: Hein <hein@bitechsystems.co.za >
2025-12-19 16:32:14 +02:00
Hein
02fbdbd651
Cache package is pure infrastructure. Cache invalidates on create/delete from the API
Tests / Integration Tests (push) Failing after 9s
Build , Vet Test, and Lint / Lint Code (push) Successful in 8m13s
Build , Vet Test, and Lint / Build (push) Successful in -24m36s
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Successful in -25m6s
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Successful in -24m33s
Tests / Unit Tests (push) Failing after -25m39s
2025-12-18 16:30:38 +02:00
Hein
97988e3b5e
Updated bun version
2025-12-18 15:54:00 +02:00
Hein
c9838ad9d2
Bun bugfix
2025-12-18 15:22:58 +02:00
Hein
c5c0608f63
StatusPartialContent is better since we need to result to see.
2025-12-18 14:48:14 +02:00
Hein
39c3f05d21
StatusNoContent for zero length data
2025-12-18 13:34:07 +02:00
Hein
4ecd1ac17e
Fixed to StatusNoContent
2025-12-18 13:20:39 +02:00
Hein
2b1aea0338
Fix null interface issue and added partial content response when content is empty
2025-12-18 13:19:57 +02:00
Hein
1e749efeb3
Fixes for not found records
2025-12-18 13:08:26 +02:00
Hein
09be676096
Resolvespec delete returns deleted record
2025-12-18 12:52:47 +02:00
Hein
e8350a70be
Fixed delete record to return the record
2025-12-18 12:49:37 +02:00
Hein
5937b9eab5
Fixed the double table on update
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Waiting to run
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Waiting to run
Build , Vet Test, and Lint / Lint Code (push) Waiting to run
Build , Vet Test, and Lint / Build (push) Waiting to run
Tests / Unit Tests (push) Waiting to run
Tests / Integration Tests (push) Waiting to run
2025-12-18 12:14:39 +02:00
Hein
7c861c708e
[breaking] Another breaking change datatypes -> spectypes
2025-12-18 11:49:35 +02:00
Hein
77f39af2f9
[breaking] Moved sql types to datatypes
2025-12-18 11:43:19 +02:00
Hein
fbc1471581
Fixed panic caused by model type not being pointer in rest header spec.
2025-12-18 11:21:59 +02:00
Hein
9351093e2a
Fixed order by. Added OrderExpr to database interface
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Waiting to run
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Waiting to run
Build , Vet Test, and Lint / Lint Code (push) Waiting to run
Build , Vet Test, and Lint / Build (push) Waiting to run
Tests / Unit Tests (push) Waiting to run
Tests / Integration Tests (push) Waiting to run
2025-12-17 16:50:33 +02:00
Hein
932f12ab0a
Update handler fixes for Utils bug
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Has been cancelled
Build , Vet Test, and Lint / Lint Code (push) Has been cancelled
Build , Vet Test, and Lint / Build (push) Has been cancelled
Tests / Unit Tests (push) Has been cancelled
Tests / Integration Tests (push) Has been cancelled
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Has been cancelled
2025-12-12 17:01:37 +02:00
Hein
1b2b0d8f0b
Prototype for websockspec
2025-12-12 16:14:47 +02:00
Hein
b22792bad6
Optional check for bun
2025-12-12 14:49:52 +02:00
Hein
e8111c01aa
Fixed for relation preloading
2025-12-12 11:45:04 +02:00
Hein
5862016031
Added ModelRules
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Waiting to run
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Waiting to run
Build , Vet Test, and Lint / Lint Code (push) Waiting to run
Build , Vet Test, and Lint / Build (push) Waiting to run
Tests / Unit Tests (push) Waiting to run
Tests / Integration Tests (push) Waiting to run
2025-12-12 10:13:11 +02:00
Hein
2f18dde29c
Added Tx common.Database to hooks
2025-12-12 09:45:44 +02:00
Hein
31ad217818
Event Broken Concept
2025-12-12 09:23:54 +02:00
Hein
7ef1d6424a
Better handling for variables callback
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Waiting to run
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Waiting to run
Build , Vet Test, and Lint / Lint Code (push) Waiting to run
Build , Vet Test, and Lint / Build (push) Waiting to run
Tests / Unit Tests (push) Waiting to run
Tests / Integration Tests (push) Waiting to run
2025-12-11 15:57:01 +02:00
Hein
c50eeac5bf
Change the SqlQuery functions parameters on Function Spec
2025-12-11 15:42:00 +02:00
Hein
6d88f2668a
Updated login interface with meta
2025-12-11 14:05:27 +02:00
Hein
8a9423df6d
Fixed DatabaseAuthenticator JSON value. Added make tag
2025-12-11 13:59:41 +02:00
Hein
4cc943b9d3
Added row PgSQLAdapter
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Waiting to run
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Waiting to run
Build , Vet Test, and Lint / Lint Code (push) Waiting to run
Build , Vet Test, and Lint / Build (push) Waiting to run
Tests / Integration Tests (push) Waiting to run
Tests / Unit Tests (push) Waiting to run
2025-12-10 15:28:09 +02:00
Hein
68dee78a34
Fixed filterExtendedOptions
2025-12-10 12:25:23 +02:00
Hein
efb9e5d9d5
Removed the buggy filter expand columns
2025-12-10 12:15:18 +02:00
Hein
490ae37c6d
Fixed bugs in extractTableAndColumn
2025-12-10 11:48:03 +02:00
Hein
99307e31e6
More debugging on bun for scan issues
2025-12-10 11:16:25 +02:00
Hein
e3f7869c6d
Bun scan debugging
2025-12-10 11:07:18 +02:00
Hein
c696d502c5
extractTableAndColumn
2025-12-10 10:10:55 +02:00
Hein
4ed1fba6ad
Fixed extractTableAndColumn
2025-12-10 10:10:43 +02:00
Hein
1d0407a16d
Fixed linting
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Waiting to run
Build , Vet Test, and Lint / Build (push) Waiting to run
Tests / Unit Tests (push) Waiting to run
Tests / Integration Tests (push) Waiting to run
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Waiting to run
Build , Vet Test, and Lint / Lint Code (push) Waiting to run
2025-12-10 10:00:01 +02:00
Hein
99001c749d
Better sql where validation
2025-12-10 09:52:13 +02:00
Hein
1f7a57f8e3
Tracking provider
2025-12-10 09:31:55 +02:00
Hein
a95c28a0bf
Multi Token warning and handling
2025-12-10 08:44:37 +02:00
Hein
e1abd5ebc1
Enhanced the SanitizeWhereClause function
2025-12-10 08:36:24 +02:00
Hein
ca4e53969b
Better tests
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Waiting to run
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Waiting to run
Build , Vet Test, and Lint / Lint Code (push) Waiting to run
Build , Vet Test, and Lint / Build (push) Waiting to run
Tests / Unit Tests (push) Waiting to run
Tests / Integration Tests (push) Waiting to run
2025-12-09 15:32:16 +02:00
Hein
db2b7e878e
Better handling of preloads
2025-12-09 15:12:17 +02:00
Hein
9572bfc7b8
Fix qualified column reference (like APIL.rid_hub) in a preload:
2025-12-09 14:46:33 +02:00
Hein
f0962ea1ec
Added EnableQueryDebug log
2025-12-09 14:37:09 +02:00
Hein
8fcb065b42
Better Query Debugging
2025-12-09 14:31:26 +02:00
Hein
dc3b621380
Fixed test for session id changes
2025-12-09 14:07:00 +02:00
Hein
a4dd2a7086
exposed types FromString
2025-12-09 14:03:55 +02:00
Hein
3ec2e5f15a
Proper handling of fromString in the types
2025-12-09 13:55:51 +02:00
Hein
c52afe2825
Updated sql types
2025-12-09 13:14:22 +02:00
Hein
76e98d02c3
Added modelregistry.GetDefaultRegistry
2025-12-09 12:12:10 +02:00
Hein
23e2db1496
Fixed linting
2025-12-09 12:02:44 +02:00
Hein
d188f49126
Added openapi spec
2025-12-09 12:01:21 +02:00
Hein
0f05202438
Database Authenticator with cache
2025-12-09 11:32:44 +02:00
Hein
b2115038f2
Fixed providers
2025-12-09 11:18:11 +02:00
Hein
229ee4fb28
Fixed DatabaseAuthenticator sq select
2025-12-09 11:05:48 +02:00
Hein
2cf760b979
Added a few auth shortcuts
2025-12-09 10:31:08 +02:00
Hein
0a9c107095
Fixed sqlquery bug in funcspec
2025-12-09 10:19:03 +02:00
Hein
4e2fe33b77
Fixed session_rid in funcspec
2025-12-09 10:04:39 +02:00
Hein
1baa0af0ac
Config Package
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Waiting to run
Build , Vet Test, and Lint / Lint Code (push) Waiting to run
Build , Vet Test, and Lint / Build (push) Waiting to run
Tests / Unit Tests (push) Waiting to run
Tests / Integration Tests (push) Waiting to run
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Waiting to run
2025-12-09 09:19:56 +02:00
Hein
659b2925e4
Cursor pagnation for resolvespec
2025-12-09 08:51:15 +02:00
Hein
baca70cafc
Split coverage reports
Build , Vet Test, and Lint / Run Vet Tests (1.23.x) (push) Waiting to run
Build , Vet Test, and Lint / Run Vet Tests (1.24.x) (push) Waiting to run
Build , Vet Test, and Lint / Lint Code (push) Waiting to run
Build , Vet Test, and Lint / Build (push) Waiting to run
Tests / Unit Tests (push) Waiting to run
Tests / Integration Tests (push) Waiting to run
2025-12-08 17:20:40 +02:00
Hein
ed57978620
go-version 1.24
2025-12-08 17:14:04 +02:00