ubccr / coldfront

HPC Resource Allocation System
https://coldfront.readthedocs.io
GNU General Public License v3.0
100 stars 80 forks source link

Feature: Auto update Project Attributes Usages if Allocation has a consumable attribute #615

Open giuliolibrando opened 1 month ago

giuliolibrando commented 1 month ago

Description

If a project attribute is consumable and match exacly the name of an allocation attribute, autoupdate project attribute usages.

image

That's probably a function that has to be called when Pi/manager/admin "Approve"/"Renew" an allocation and also when the allocation is deleted, needs to be updated the projectattributeusages in db.

Also, as this feature is enabled it would be really useful if then there's a check on new allocations form when requesting resouces. If the number of the consumable resource asked is > than projectattributeleft throw error

Component

No response

Additional information

No response

giuliolibrando commented 1 month ago

I've added a pull request #617 for this issue