Closed Danielius1922 closed 3 months ago
The recent updates introduce significant enhancements across various components, emphasizing improved configurations, testing capabilities, and refined event filtering options. Key modifications include switching to natsClient.ConfigSubscriber
for better subscriber management, adding flexible test parameters, and enhancing the handling of resource event subjects. Overall, these changes aim to increase clarity, flexibility, and robustness in testing and resource event handling.
Files | Summary of Changes |
---|---|
.github/workflows/test.yml , .vscode/settings.json , Makefile |
Improved test configurations with enhanced parameters and comments for better clarity and flexibility. |
cloud2cloud-connector/service/config.go , cloud2cloud-gateway/service/config.go , grpc-gateway/service/config.go , resource-directory/service/config.go , snippet-service/service/config_test.go |
Changed EventBusConfig to use natsClient.ConfigSubscriber instead of natsClient.Config . |
cloud2cloud-connector/service/service.go , grpc-gateway/service/grpcApi.go , resource-aggregate/service/service.go , grpc-gateway/service/subscribeToEvents.go , identity-store/service/service_test.go |
Updated function calls and configurations to match the new natsClient.ConfigSubscriber structure and added lead resource type filtering capabilities. |
cloud2cloud-connector/service/getDevices_test.go , cloud2cloud-connector/service/updateResource_test.go , grpc-gateway/service/createAndDeleteResource_test.go , http-gateway/service/subscribeToEvents_test.go |
Adjusted test setups and extended timeouts for better test coverage and accuracy. |
cloud2cloud-connector/service/retrieveResourceFromDevice_test.go , cloud2cloud-connector/test/cloudOrigin.go , cloud2cloud-connector/test/test.go |
Added sleep delays and introduced new cleanup management for tests. |
coap-gateway/service/clientObserveHandler.go , grpc-gateway/pb/devices.proto , grpc-gateway/pb/doc.html , grpc-gateway/service/subscribeToEvents.go , grpc-gateway/subscription/convertToSubjects.go , grpc-gateway/subscription/subscription.go , resource-aggregate/cqrs/eventbus/nats/client/config.go |
Enhanced lead resource type filtering for more granular event handling and subject creation. |
grpc-gateway/service/subscribeToEvents.go , resource-aggregate/client/syncCreateResource.go , resource-aggregate/client/syncDeleteResource.go , resource-aggregate/client/syncRetrieveResource.go , resource-aggregate/client/syncUpdateResource.go |
Updated event subscription logic and resource synchronization methods to align with new subject creation and filtering mechanisms. |
grpc-gateway/pb/README.md , grpc-gateway/pb/doc.html |
Added documentation for lead resource type filter in event subscriptions. |
In the hub where data flows,
Filters now, in structured rows,
Events lead and resources gleam,
Configs tuned, a coder's dream.
Tests refined with mindful care,
Flexibility everywhere,
Through these changes, our code grows,
Brighter paths our project shows.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai generate a description for this pullrequest about the leadResourceType feature targeting to not plgd developers.
[!TIP] For best results, initiate chat on the files or code changes.
@jkralik: Here is a description of the leadResourceType feature for non-plgd developers:
The leadResourceType feature introduces a new way to filter and manage resource events in the system, enhancing the flexibility and specificity of event handling. This feature is particularly useful for scenarios where only certain types of resources need to be monitored or acted upon.
Purpose:
Functionality:
Benefits:
This feature is integrated across various components of the system, including configuration files, test setups, and core service logic, ensuring comprehensive support for lead resource type filtering.
Let me know if you need any further details or adjustments!
Issues
21 New issues
2 Accepted issues
Measures
0 Security Hotspots
96.8% Coverage on New Code
0.2% Duplication on New Code
Description
The leadResourceType feature introduces a new way to filter and manage resource events in the system, enhancing the flexibility and specificity of event handling. This feature is particularly useful for scenarios where only certain types of resources need to be monitored or acted upon.
Key Points:
Purpose:
Functionality:
Benefits:
This feature is integrated across various components of the system, including configuration files, test setups, and core service logic, ensuring comprehensive support for lead resource type filtering.