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
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
6f05f15ff6
feat(dbmanager): ✨ Database connection Manager
2026-01-02 16:19:33 +02:00
copilot-swe-agent[bot]
8e8c3c6de6
Refactor: Extract common logic from stripOuterParentheses functions
...
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 13:36:29 +00:00
copilot-swe-agent[bot]
aa9b7312f6
Fix AddTablePrefixToColumns to handle parenthesized AND conditions correctly
...
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 13:31:18 +00:00
copilot-swe-agent[bot]
dca43b0e05
Initial analysis: identified bug in AddTablePrefixToColumns
...
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 13:26:37 +00:00
Hein
897cb2ae0d
fix: liniting issues and events dev
2025-12-30 14:40:45 +02:00
Hein
8f5a725a09
Bugfix with xfiles
2025-12-30 14:12:07 +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
Hein
77f39af2f9
[breaking] Moved sql types to datatypes
2025-12-18 11:43:19 +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
e8111c01aa
Fixed for relation preloading
2025-12-12 11:45:04 +02:00
Hein
31ad217818
Event Broken Concept
2025-12-12 09:23:54 +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
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
99001c749d
Better sql where validation
2025-12-10 09:52:13 +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
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
2a84652dba
Middleware enhancements
2025-12-08 08:47:13 +02:00
Hein
b741958895
Code sanity fixes, added middlewares
Tests / Run Tests (1.23.x) (push) Has been cancelled
Tests / Run Tests (1.24.x) (push) Has been cancelled
Tests / Lint Code (push) Has been cancelled
Tests / Build (push) Has been cancelled
2025-12-08 08:28:43 +02:00
Hein
06b2404c0c
Remove blank array if no args
2025-12-03 12:25:51 +02:00
Hein
f3ba314640
Refectored the mux routers.
2025-12-03 10:42:26 +02:00
Hein
93df33e274
UnderlyingRequest and UnderlyingResponseWriter
Tests / Run Tests (1.23.x) (push) Waiting to run
Tests / Run Tests (1.24.x) (push) Waiting to run
Tests / Lint Code (push) Waiting to run
Tests / Build (push) Waiting to run
2025-12-02 17:40:44 +02:00
Hein
abd045493a
mux UnderlyingRequest
2025-12-02 17:34:18 +02:00
Hein
9c5c7689e9
More common handler interface
2025-12-02 15:45:24 +02:00
Hein
aa99e8e4bc
Added WrapHTTPRequest
2025-11-24 10:13:48 +02:00
Hein
163593901f
Huge preload chains causing errors, workaround to do seperate selects.
Tests / Run Tests (1.23.x) (push) Has been cancelled
Tests / Run Tests (1.24.x) (push) Has been cancelled
Tests / Lint Code (push) Has been cancelled
Tests / Build (push) Has been cancelled
2025-11-21 17:09:11 +02:00
Hein
02c9b96b0c
Better SanitizeWhereClause
2025-11-21 11:42:01 +02:00
Hein
a931b8cdd2
Better preloads
2025-11-21 10:41:58 +02:00
Hein
7e76977dcc
Lots of refactoring, Fixes to preloads
2025-11-21 10:17:20 +02:00
Hein
7853a3f56a
cql_columns parsing and recursive preloading. Also added legacy header support for limt(s,e) ,sort(x,y,-z)
2025-11-21 09:15:40 +02:00
Hein
c2e0c36c79
Restheadspec now takes parameters from query parameters and headers. Allows for backward compatibility with our old dojo clients
2025-11-21 08:56:58 +02:00
Hein
1cd04b7083
Better where clause handling for preloads
2025-11-20 17:02:27 +02:00
Hein
0d4909054c
Better handling of preload where conditions and a few panic changes
2025-11-20 16:50:26 +02:00
Hein
745564f2e7
More Panic Recovery for reflection on orm
2025-11-20 15:20:21 +02:00