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

feat: add the ability to group instances between node definitions #8

Merged
merged 2 commits into from
Jul 28, 2024

Conversation

mikefero
Copy link
Owner

This feature allows for grouping instances between single or multiple node definitions. Assigning the group is optional and if set will modify the logger created for the node to include the group assigned. The responses have been updated to include the group or when retrieving the hosts the groups that the host has associated with it.

The responses have been updated to remove the use of the API definitions that are generated from the openapi in order for future versioned RESTful API to be implemented. All tests have been updated to use generic map[string]interface{} defined values where applicable for complete end-to-end testing.

The database was also updated to add a GetHostsByGroup method with corresponding index that will open up the API for the versioned API.

Go version was also updated to v1.22.5.

mikefero added 2 commits July 27, 2024 19:47
This feature allows for grouping instances between single or multiple
node definitions. Assigning the group is optional and if set will modify
the logger created for the node to include the group assigned. The
responses have been updated to include the group or when retrieving the
hosts the groups that the host has associated with it.

The responses have been updated to remove the use of the API definitions
that are generated from the openapi in order for future versioned
RESTful API to be implemented. All tests have been updated to use
generic map[string]interface{} defined values where applicable for
complete end-to-end testing.

The database was also updated to add a GetHostsByGroup method with
corresponding index that will open up the API for the versioned API.
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 75.00000% with 25 lines in your changes missing coverage. Please review.

Project coverage is 65.87%. Comparing base (e40bc14) to head (7d7d3be).
Report is 1 commits behind head on main.

Files Patch % Lines
internal/database/database.go 75.00% 7 Missing and 7 partials ⚠️
node/node.go 47.05% 7 Missing and 2 partials ⚠️
internal/config/config.go 0.00% 1 Missing and 1 partial ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #8      +/-   ##
==========================================
- Coverage   66.00%   65.87%   -0.14%     
==========================================
  Files          10       10              
  Lines         809      879      +70     
==========================================
+ Hits          534      579      +45     
- Misses        222      237      +15     
- Partials       53       63      +10     

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

@mikefero mikefero merged commit 49ada08 into main Jul 28, 2024
2 checks passed
@mikefero mikefero deleted the feat/node-grouping branch July 28, 2024 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants