copilot-swe-agent[bot]
be38341383
Fix formatting issues with gofmt
...
- Removed trailing whitespace
- Fixed tab/space alignment in struct definitions
- All tests still passing
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 15:30:23 +00:00
copilot-swe-agent[bot]
fab744b878
Add clarifying comments about X-No-Data-Found header timing
...
- Added comments explaining why X-No-Data-Found is set before normalization
- Header reflects database query result, not final response format
- Clarifies that normalizeResultArray doesn't affect header logic
- All tests passing
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 14:04:16 +00:00
copilot-swe-agent[bot]
5ad2bd3a78
Improve test robustness - use explicit flag instead of string comparison
...
- Changed test to use shouldBeEmptyArr flag instead of hardcoded name comparison
- Makes test more maintainable and less fragile
- All tests still passing
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 14:02:42 +00:00
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
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
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
copilot-swe-agent[bot]
eaecef686e
Fix type assertion error in Remove method
...
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 11:44:56 +00:00
Hein Puth (Warkanum)
7e1718e864
Merge pull request #7 from bitechdev/copilot/sub-pr-5-again
...
Fix recover() not working in CatchPanic functions
2025-12-30 13:29:36 +02:00
Hein Puth (Warkanum)
16d416030e
Merge pull request #6 from bitechdev/copilot/sub-pr-5
...
Implement persistent certificate storage with reuse for self-signed SSL
2025-12-30 13:27:50 +02:00
Hein
bf8500714a
Websocket spec fixes
2025-12-30 13:25:16 +02:00
copilot-swe-agent[bot]
4f8edd6469
Add security improvements and race condition protection
...
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 11:14:59 +00:00
copilot-swe-agent[bot]
ccf8522f88
Refactor: Use persistent cert storage with reuse logic
...
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 11:12:21 +00:00
copilot-swe-agent[bot]
4cb35a78b0
Improve CatchPanicCallback: extract context early and clarify example
...
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 11:07:46 +00:00
copilot-swe-agent[bot]
e10e2e1c27
Fix recover() usage in CatchPanic functions by returning deferred function
...
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 11:06:43 +00:00
Hein Puth (Warkanum)
bc2fdc143b
Update pkg/logger/logger.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-30 13:00:56 +02:00
copilot-swe-agent[bot]
267e84fd84
Implement cleanup for temporary certificate directories
...
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 11:00:45 +00:00
Hein Puth (Warkanum)
8adc386863
Update pkg/server/manager.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-30 12:58:38 +02:00
Hein Puth (Warkanum)
feb023ec48
Update pkg/server/tls.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-30 12:57:55 +02:00
Hein Puth (Warkanum)
de50141a04
Update pkg/server/manager.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-30 12:57:35 +02:00
Hein
d4a6f9c4c2
Better server manager
2025-12-29 17:19:16 +02:00
8f83e8fdc1
Merge branch 'main' of github.com:bitechdev/ResolveSpec into server
2025-12-28 09:07:05 +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
4d1b8b6982
Work on server
2025-12-20 10:42:51 +02:00
Hein
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
Hein
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
Hein
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
Hein
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
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.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