Conversation
|
API Changes --- prev.txt 2024-03-04 12:37:46.635607896 +0000
+++ current.txt 2024-03-04 12:37:43.947597856 +0000
@@ -1559,14 +1559,15 @@
}
type NodeData struct {
- NodeID string `json:"node_id"`
- APIKey string `json:"api_key"`
- GroupID string `json:"group_id"`
- NodeVersion string `json:"node_version"`
- TTL int64 `json:"ttl"`
- Tags []string `json:"tags"`
- Health map[string]HealthCheckItem `json:"health"`
- Stats GWStats `json:"stats"`
+ NodeID string `json:"node_id"`
+ APIKey string `json:"api_key"`
+ GroupID string `json:"group_id"`
+ NodeVersion string `json:"node_version"`
+ TTL int64 `json:"ttl"`
+ NodeIsSegmented bool `json:"node_is_segmented"`
+ Tags []string `json:"tags"`
+ Health map[string]HealthCheckItem `json:"health"`
+ Stats GWStats `json:"stats"`
}
type NotificationsManager struct { |
|
PR Description updated to latest commit (e856632) |
PR Review
Code feedback:
✨ Review tool usage guide:Overview: With a configuration file, use the following template:
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview: With a configuration file, use the following template:
See the improve usage page for a more comprehensive guide on using this tool. |
|
|
API tests result - postgres15-sha256 env: success ✅ DescriptionAdding Related IssueMotivation and ContextHow This Has Been TestedUnit tests Screenshots (if appropriate)Types of changes
Checklist
Typeenhancement, tests Description
Changes walkthrough
|
|
API tests result - mongo44-sha256 env: success ✅ DescriptionAdding Related IssueMotivation and ContextHow This Has Been TestedUnit tests Screenshots (if appropriate)Types of changes
Checklist
Typeenhancement, tests Description
Changes walkthrough
|
|
API tests result - postgres15-murmur64 env: success ✅ DescriptionAdding Related IssueMotivation and ContextHow This Has Been TestedUnit tests Screenshots (if appropriate)Types of changes
Checklist
Typeenhancement, tests Description
Changes walkthrough
|
|
API tests result - mongo44-murmur64 env: success ✅ DescriptionAdding Related IssueMotivation and ContextHow This Has Been TestedUnit tests Screenshots (if appropriate)Types of changes
Checklist
Typeenhancement, tests Description
Changes walkthrough
|



Description
Adding
node_is_segmentedflag undernodeto complementtags.MDCB PR: https://github.com/TykTechnologies/tyk-sink/pull/496
Related Issue
https://tyktech.atlassian.net/browse/TT-11377?atlOrigin=eyJpIjoiNmNiY2VjZjM3NGZlNDBiZjgwNmNlOTMyOWRjYzIwN2EiLCJwIjoiaiJ9
Motivation and Context
https://tyktech.atlassian.net/browse/TT-11377?atlOrigin=eyJpIjoiNmNiY2VjZjM3NGZlNDBiZjgwNmNlOTMyOWRjYzIwN2EiLCJwIjoiaiJ9
How This Has Been Tested
Unit tests
Screenshots (if appropriate)
Types of changes
Checklist
Type
enhancement, tests
Description
NodeIsSegmentedto theNodeDatastruct to indicate if a node is segmented.buildNodeInfoinrpc_storage_handler.goto populate theNodeIsSegmentedfield from the configuration.rpc_storage_handler_test.goto verify the behavior when theNodeIsSegmentedflag is set to true.Changes walkthrough
rpc.go
Add NodeIsSegmented Field to NodeData Structapidef/rpc.go
NodeIsSegmentedboolean field toNodeDatastruct.rpc_storage_handler.go
Populate NodeIsSegmented in buildNodeInfo Functiongateway/rpc_storage_handler.go
NodeIsSegmentedinbuildNodeInfofunction fromconfiguration.
rpc_storage_handler_test.go
Test Case for NodeIsSegmented Flaggateway/rpc_storage_handler_test.go
NodeIsSegmentedflag being true.