Add target groups for improved interface#1518
Conversation
|
This is a cool idea, we have a lot of targets as well so far and we were wondering on the best ways to organize them to make it easier for the users |
|
@Eugeny any thoughts on this one? |
Eugeny
left a comment
There was a problem hiding this comment.
Sorry for the delay - I'll probably only be able to do a full review next week. I've added come comments from a cursory glance though
|
@Eugeny Hope things are well! I've updated my PR per the suggestions you have made. |
|
Looks like an awesome feature! Could it do permissions at the group level? It might be out of scope since it's primarily an interface improvement, but it would be nice to give a role access to a whole group. |
|
@all-contributors add @alairock for code |
|
I've put up a pull request to add @alairock! 🎉 |
|
Thank you! |
@Eugeny I'm not sure what you mean? Would be happy to look into it to see if I can add that feature :) |
|
That's not my comment. @waquidvp is asking whether the PR includes support for group role assignments (it doesn't) |
|
It's a pity that you removed support for custom colors, it would be very convenient for flexible customization. But overall, I like the idea. Updated specifically to organize a bunch of my subhosts |
Co-authored-by: Eugene <[email protected]>

This pull request introduces a new "Target Groups" feature to the Warpgate application, allowing targets to be organized into groups with associated metadata (name, description, color). It adds database support, API endpoints for managing target groups, and updates the targets to optionally reference a group. The HTTP protocol and web UI are also updated to expose and utilize this grouping functionality.
Target Groups Feature
TargetGroupentity, database migration, and ORM model, including fields forid,name,description, andcolor. [1] [2]target_groups.rs, and registered these endpoints in the main API module. [1] [2] [3]Targets Integration
group_idfield, and added the relation between targets and target groups. [1] [2] [3] [4] [5] [6] [7]Database Migration
m00020_target_groupsto create thetarget_groupstable and add thegroup_idcolumn to thetargetstable. [1] [2] [3]Web UI Integration
Other
These changes collectively enable users to manage target groups, associate targets with groups, and view group information throughout the API and UI.
(Edited: More appropriate screenshots)