Repository navigation
Propose ADR-0008: unit memberships with roles (FO-02, LO-02, LO-03, RO-01, RO-03) - #75
Open
ronnyb71-agent wants to merge 4 commits into
Open
ronnyb71-agent wants to merge 4 commits into
ronnyb71-agent wants to merge 4 commits into
Conversation
…O-01, RO-03) A person can be in several units with a different role in each, as in teams. Proposes an enhetsmedlemskap collection fed by the people import, roles set in ilag, the unit leader as the role linjeleder instead of enheter.leader, and roles scoped to teams, units or both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…RO-03) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Proposes ADR-0008. A person can be in more than one unit and have a different role in each, just as in teams, so the role belongs on the membership.
What it proposes
enhetsmedlemskap, with a unit, a person, roles and a source (importormanual). There is one membership per person and unit. New memberships get the role Medarbeider by default, whether the import or an administrator creates them.linjelederon a membership.enheter.leaderis removed after existing leaders are copied over.teamTypes, RO-03). Roles get a matching link to unit levels (unitLevels), and a unit membership accepts only roles linked to its unit's level.personer.unitsandenheter.peoplebecome joins on the new collection, aspersoner.teamsis today.Not in this PR
decisions.md. They are: Enhetsmedlemskap in 4.1, the Enhet and Rolle entries, and linjeleder instead of enhetsleder in LO-02, LO-03 and 2.3.Numbered 0008 because #65 proposes 0006 and 0007 is taken by mandates. Separately, the README index already lists the mandates record as 0006 although its file is 0007. I've left that row as it is.
🤖 Generated with Claude Code