Skip to content

Conversation

@QuanMPhm
Copy link
Contributor

Closes https://github.com/CCI-MOC/non-billable-projects/issues/66. Leveraging the private field Is Course? in Coldfront [1], if this field is set to Yes, the project/allocation is considered part of a course and therefore non-billable.
If the field is not set, it's assumed to be not part of a course

[1] https://github.com/ubccr/coldfront/blob/a4b6b4c1d18535f61de5aa4bbfe509d7d8ca4b0f/coldfront/core/allocation/management/commands/add_allocation_defaults.py#L56

@QuanMPhm
Copy link
Contributor Author

QuanMPhm commented Nov 3, 2025

@joachimweyl @knikolla @naved001 I've updated this PR to make courses only nonbillable if institution == "Boston University"

Leveraging the private field `Is Course?` in Coldfront [1],
if this field is set to `Yes`, the project/allocation is considered part
of a course.

For now, any project that is a part of a course
and belongs to Boston University is non-billable. [2]

If the field is not set, it's assumed to be not part of a course

[1] https://github.com/ubccr/coldfront/blob/a4b6b4c1d18535f61de5aa4bbfe509d7d8ca4b0f/coldfront/core/allocation/management/commands/add_allocation_defaults.py#L56
[2] CCI-MOC/non-billable-projects#66 (comment)
- Moved functions related to `InstituteList` into the class
@QuanMPhm
Copy link
Contributor Author

@knikolla @naved001 I've added a second commit to move some functions from utils.py into InstituteList.

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.

3 participants