Skip to content

Commit 7506122

Browse files
Remove type field from sync scripts (#102)
## Summary Remove `type: helt/aktiv` from provisioning and sync scripts. All group memberships are now explicit — helter is a regular group in the memberships list. Companion to javaBin/registry fix/remove-type-field.
1 parent 0738911 commit 7506122

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

scripts/provision-groups.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ def build_member_details(members_data):
5959
"firstname": h["firstname"],
6060
"lastname": h["lastname"],
6161
"personal_email": h["personal_email"],
62-
"type": h.get("type", "helt"),
6362
"alias": h.get("alias") or "",
6463
}
6564
for h in members_list

scripts/sync-members.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,8 @@ def format_yaml(members):
220220
"# Board approves applications in the Google Sheet, then triggers a sync that",
221221
"# creates a PR updating this file.",
222222
"#",
223-
"# Two member types:",
224-
"# - helt: Approved hero volunteer (full access: email, drive, chat, meet)",
225-
"# - aktiv: Active contributor (java.no account for SSO, calendar, groups only)",
226-
"#",
227223
"# Rules:",
228-
"# - type determines baseline access (see groups/access.yaml)",
224+
"# - All group memberships are explicit (including helter)",
229225
"# - memberships references group names from groups.yaml",
230226
"# - alias is optional — members can PR their preferred alias",
231227
"# - javabin_google_email is the Google Workspace account (firstname.lastname@java.no)",
@@ -242,7 +238,6 @@ def format_yaml(members):
242238
lines.append(f" lastname: {m['lastname']}")
243239
lines.append(f" personal_email: {m['personal_email']}")
244240
lines.append(f" javabin_google_email: {m['javabin_google_email']}")
245-
lines.append(f" type: {m.get('type', 'helt')}")
246241
alias = m.get("alias") or ""
247242
lines.append(f" alias: {alias}" if alias else " alias:")
248243
memberships = m.get("memberships", [])
@@ -363,7 +358,6 @@ def main():
363358
"lastname": lastname,
364359
"personal_email": personal_email,
365360
"javabin_google_email": javabin_email,
366-
"type": "helt",
367361
"alias": "",
368362
"memberships": memberships,
369363
}

0 commit comments

Comments
 (0)