Add isolated resource tag manager service - #1609
Draft
gearnode wants to merge 2 commits into
Draft
Conversation
Introduce pkg/resourcetag as a cross-resource tagging package in the same style as resourcealias: org catalog of key/value tags with optional color, attach/detach assignments, and IAM/OAuth owned by the package. Entity field resolvers are deferred to a follow-up so any resource can be tagged without wiring product types yet. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
Replace ResourceTag.resourceIds [ID!]! with a cursor-paginated assignments connection. Assignments now have their own GID so they fit the standard page.Cursor id tie-breaker. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Bryan FRIMIN <bryan@frimin.fr>
cursor
Bot
force-pushed
the
cursor/resourcetag-1fa4
branch
from
August 3, 2026 10:26
48d325f to
daf26f2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
pkg/resourcetag, an isolated tag manager in the same style aspkg/resourcealias: org-scoped catalog, attach/detach to any resource GID, package-owned IAM/OAuth.Model
resource_tags):key(slug, unique per org),value, optionalcolor(#RGB/#RRGGBB)resource_tag_assignments): M:N with own GID; unique(resource_id, tag_id); deleting a tag cascades assignmentsSurfaces
Organization.resourceTags,resourceTagsForResource,ResourceTag.assignments(cursor connection)prb resource-tag/rt), n8n resourceFilter readiness
FilterResourceIDs(AND semantics) andLoadByResourceIDsare in the service for the next PR that wires tags onto entity list queries / field resolvers.Test plan
assignmentson a tag with pagination / totalCountprb resource-tag create|list|attach|detach|deleteSummary by cubic
Adds
pkg/resourcetag, an org-scoped tag manager (likepkg/resourcealias) to create, list, update, delete, and attach/detach tags across any resource. Includes migrations, a hex color validator, and a cursor-paginated assignments connection with assignment GIDs; entity field resolvers ship in a follow-up.Coredata
+1005-0resource_tagsandresource_tag_assignmentstables with cascade on delete.Service
+729-2pkg/resourcetagwith CRUD, attach/detach, and filter helpers (FilterResourceIDs,LoadByResourceIDs).pkg/probodand server config.HexColorvalidator for#RGB/#RRGGBB.GraphQL API
+716-0Nodesupport forResourceTag.ResourceTag.assignmentscursor connection; wired service into handlers.MCP
+503-0pkg/resourcetag.prb (CLI)
+1065-0prb resource-tagcommands: create, list, update, delete, attach, detach.Package: n8n-node
+680-0resourceTagresource with create/list/update/attach/detach/delete.Tests
+499-0HexColorvalidator.Written for commit daf26f2. Summary will update on new commits.