Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API updates, improved error handling #100

Merged
merged 7 commits into from
Aug 21, 2024
Merged

API updates, improved error handling #100

merged 7 commits into from
Aug 21, 2024

Conversation

lexara-prime-ai
Copy link
Owner

Changes

This PR introduces two new Redis management functions and a reusable macro for handling response data:

  • New Functions:

    • delete_redis_instance(name: &str): Deletes a specified Redis instance.
    • find_redis_instance_by_name(name: &str, limit: &str): Finds Redis instances by name, with an optional limit.
  • Macro Addition:

    • handle_response_data!: A macro to streamline the handling of API response data. It logs success or error messages based on the status of the response, processes JSON data, and handles empty service lists.

@lexara-prime-ai lexara-prime-ai added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 21, 2024
Copy link

codecov bot commented Aug 21, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.

Project coverage is 69.02%. Comparing base (c864473) to head (4ff75c2).
Report is 1 commits behind head on master.

Files Patch % Lines
...rc/resource_management/services/service_manager.rs 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #100      +/-   ##
==========================================
+ Coverage   68.26%   69.02%   +0.76%     
==========================================
  Files          10       10              
  Lines         167      226      +59     
==========================================
+ Hits          114      156      +42     
- Misses         53       70      +17     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lexara-prime-ai lexara-prime-ai merged commit c89a3a2 into master Aug 21, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant