Skip to content

Conversation

@s-sajid-ali
Copy link
Member

No description provided.

s-sajid-ali and others added 7 commits January 22, 2026 18:20
Updates to the school approver management command:
- Improve logic for checking if approver is already in project
- Fix logger method from warn to warning
- Add proper approver profile access

Add comprehensive test suite for add_school_approver_to_all_projects command:
- Test successful approver addition to projects
- Test dry run functionality
- Test skipping projects where approver already exists
- Test error handling for nonexistent users and schools
- Test validation that user is approver for specified school
- Test handling of users without approver profiles

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@s-sajid-ali s-sajid-ali changed the title wip command to add school approver to all projects associated with the school command to add school approver to all projects associated with the school Jan 23, 2026
s-sajid-ali and others added 3 commits January 23, 2026 16:31
Updated root logger configuration to include both console and file handlers,
allowing management commands and other loggers to output to both STDOUT
and log files by default.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
	modified:   coldfront/core/school/management/commands/add_school_approver_to_all_projects.py
@s-sajid-ali s-sajid-ali force-pushed the add_school_approver_to_projects branch from b51431b to c90ca99 Compare January 26, 2026 20:30
	modified:   coldfront/core/school/management/commands/add_school_approver_to_all_projects.py
@s-sajid-ali s-sajid-ali force-pushed the add_school_approver_to_projects branch from fe0a09b to 4871d3b Compare January 26, 2026 22:04
@s-sajid-ali
Copy link
Member Author

The tests cover more scenarios than we expect to see, but it's no harm to have them in the codebase.

@s-sajid-ali s-sajid-ali merged commit 76db560 into main Jan 27, 2026
4 of 5 checks passed
@s-sajid-ali s-sajid-ali deleted the add_school_approver_to_projects branch January 27, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants