Repository navigation
feat(resources): add Grouping, the ArchiMate composite element - #253
Merged
Merged
Conversation
A Grouping aggregates or composes resources of every kind, groupings included, so groups nest. Members are listed on the grouping only, one key per kind under `aggregates` or `composedOf`; members show their groups as incoming relations. - Grouping.declare_members! declares both verbs towards every kind once all kinds are loaded; Resources.relation_key gives the spec key of a kind, matching the keys the model already uses - template shows a few member kinds instead of ~90 empty lists (Base.template_relations) - summary lens: Grouping lists its members, members name their groups - linter reports nesting cycles (existing hierarchy cycle check) - docs (archimate, modeling, index, icons) and a payments example Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Grouping(layerother, ArchiMate composite element). A grouping holds resources of every kind, other groupings included, so groups nest:aggregates: the member belongs to the group and can be in several groups;composedOf: the member is part of this whole only.Grouping.declare_members!once all kinds are loaded. New kinds are covered automatically.Resources.relation_keygives the spec key of a kind (applicationComponents,goals,technologyEquipment, ...). A test checks it matches the keys the model already uses.Base.template_relations).summary: a grouping lists its members, and members name their groups ("Groups" / "Part of").archimate.mdnow marks Grouping as supported,modeling.mdhas a new "Grouping" section,index.md.erbandicons.mdlist the kind; new example inexamples/archsight/groupings/payments.yaml.Notes
Test plan
bundle exec rake(tests, steep, rubocop)archsight lint -r examples/archsighttest/grouping_test.rb: relations to every kind, key names, resolution and nesting, cycle lint, summary, template, API🤖 Generated with Claude Code