copilot-swe-agent[bot]
333fe158e9
Address code review feedback - improve data length calculation clarity
...
- Simplified data length calculation logic in sendFormattedResponse
- Simplified data length calculation logic in sendResponseWithOptions
- Calculate dataLen after nil conversion for clarity and consistency
- All tests still passing
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 14:01:20 +00:00
copilot-swe-agent[bot]
2a2d351ad4
Fix API returning null with 200 code when no records found
...
- Modified handleRead to always return empty array [] instead of null when no ID provided
- Added X-No-Data-Found header when result count is 0
- Updated normalizeResultArray to keep empty arrays as arrays instead of converting to empty objects
- Updated sendFormattedResponse and sendResponseWithOptions to handle empty data properly
- All responses now return 200 OK instead of 206 Partial Content when no data found
- Added comprehensive tests to verify the fix
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 13:57:15 +00: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
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
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
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
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.23.x) (push) Has been cancelled
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
2025-12-12 17:01:37 +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
2f18dde29c
Added Tx common.Database to hooks
2025-12-12 09:45:44 +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
e1abd5ebc1
Enhanced the SanitizeWhereClause function
2025-12-10 08:36:24 +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
c9eaf84125
A lot more tests
2025-12-08 16:56:48 +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
2442589982
Better headers
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-03 14:42:38 +02:00
Hein
7c1bae60c9
Added meta handlers
2025-12-03 13:52:06 +02:00
Hein
32007480c6
Handle cql columns as text by default
2025-12-03 12:18:33 +02:00
Hein
ff72e04428
Added meta operation.
2025-12-03 11:59:58 +02:00
Hein
a61556d857
Added FallbackHandler
2025-12-02 17:16:34 +02:00
Hein
7a3c368121
Pass through to default handler
2025-12-02 16:09:36 +02:00
Hein
9c5c7689e9
More common handler interface
2025-12-02 15:45:24 +02:00
Hein
1643a5e920
Added cache, funcspec and implemented total cache
2025-12-01 14:40:54 +02:00
Hein
76bbf33db2
Fixed SingleRecordAsObject true when handleRead with no id
2025-11-21 11:49:08 +02:00
Hein
02c9b96b0c
Better SanitizeWhereClause
2025-11-21 11:42:01 +02:00
Hein
9a3564f05f
SanitizeWhereClause with tablename on handlers.
2025-11-21 11:00:44 +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
59bd709460
More reflection function to handle sql columns and get default sqlcolumn lists.
2025-11-21 08:35:46 +02:00
Hein
05962035b6
when you specify computed columns without explicitly listing base columns, you'll get all base model column
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-11-20 17:34:46 +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
311e50bfdd
Better relation lookup
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-11-20 14:30:59 +02:00
Hein
c95bc9e633
Added x-files feature
2025-11-20 12:47:36 +02:00
Hein
07b09e2025
handle JSON sql columns
2025-11-20 12:04:19 +02:00
Hein
3d5334002d
Fixes on Table Name on insert
2025-11-20 11:49:07 +02:00
Hein
1481443516
Fixed double .Model and .Table
2025-11-20 10:02:36 +02:00
Hein
cb54ec5e27
Better responses for updates and inserts
2025-11-20 09:57:24 +02:00
Hein
7d6a9025f5
Fixed hardcoded id
2025-11-20 09:40:11 +02:00