Add setup participants admin sub-command #50
Merged
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.
This pull request introduces a new "admin" command suite to the
aieng-platform-onboardCLI, enabling administrators to manage bootcamp participants and teams via CSV files. The changes include new CLI entry points, supporting utilities, documentation updates, and unit tests for the admin commands. Additionally, there are minor improvements and type annotation updates for Firestore imports throughout the codebase.Major features and changes:
Admin CLI Functionality:
onboard admincommand group with asetup-participantssubcommand, allowing admins to bulk import and validate participants and teams from a CSV file. This includes support for a--dry-runmode for validation without making changes. (src/aieng_platform_onboard/admin/cli.py,src/aieng_platform_onboard/admin/__init__.py,src/aieng_platform_onboard/cli.py, [1] [2] [3]src/aieng_platform_onboard/admin/utils.py, src/aieng_platform_onboard/admin/utils.pyR1-R299)Documentation:
docs/cli.mdto document the new admin commands, their usage, CSV format requirements, validation rules, and examples. (docs/cli.md, [1] [2] [3] [4] [5]Testing:
tests/admin/test_cli.py,tests/admin/__init__.py, [1] [2]Codebase Quality:
# type: ignore[attr-defined]for better type-checking compatibility. (scripts/admin/setup_teams.py,scripts/collect_coder_analytics.py,services/token-service/main.py,src/aieng_platform_onboard/utils.py, [1] [2] [3] [4]These changes enable robust, scriptable admin operations for bootcamp onboarding, improve documentation for both users and admins, and enhance code maintainability and test coverage.