feat: support exporting Canvas group members with group info #7
No reviewers
Labels
No Label
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: JOJ/Joint-Teapot#7
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/groupcsv"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add an optional
--groupargument toexport-users.When
--groupis not provided, the command keeps the original behavior and exports all Canvas users as:name,sis_id,login_idWhen
--group <group_set_prefix>is provided, the command looks up the corresponding Canvas group set, exports only users in that group set, and appends the normalized group name as the fourth column:name,sis_id,login_id,group_nameFor example, if the group set is
p2team, the exported group names will be formatted asp2team01,p2team02,p2team10, etc.Changes
--groupsupport toexport-users--groupis usedp1team 1andp1team10intop1team01andp1team10group_set_name + numberpattern, exit cleanly with an error logBehavior
Default
joint-teapot export-users students.csvOutput format:
name,sis_id,login_idWith group export
joint-teapot export-users p2.csv --group p2teamOutput format:
name,sis_id,login_id,p2team01Notes
This change keeps the original export behavior unchanged unless
--groupis explicitly provided.