Add cli command to view onboarding status of participants #23
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 an admin-only onboarding status report feature to the CLI tool, allowing administrators to view the onboarding status of all participants in a formatted table. It also adds supporting utility functions, a new dependency, and minor CLI usability improvements.
Admin onboarding status report feature:
--admin-status-reportCLI flag that, when used, displays a table summarizing onboarding status for all participants, including completion rates, using Firestore admin credentials. [1] [2]display_onboarding_status_reportfunction incli.pyto fetch and present this data, with clear error handling and summary.Supporting utilities:
initialize_firestore_adminandget_all_participants_with_statusutility functions toutils.pyfor securely connecting to Firestore with admin credentials and retrieving participant data.Dependency and import updates:
pandasas a dependency inpyproject.toml(though not yet used in this PR), and importedrich.table.Tablefor improved CLI table rendering. [1] [2]CLI usability improvements:
--bootcamp-nameand--test-scriptarguments optional by default, but enforced them as required for participant onboarding (not for admin report mode), improving flexibility and error messages. [1] [2] [3]Version bump:
0.3.2to0.3.3inpyproject.toml.