Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
giuliolibrando opened this issue Jul 20, 2024 · 1 comment
Labels
documentation documentation to be updated enhancement Improvement to existing feature

Comments

@giuliolibrando
Copy link

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 giuliolibrando added documentation documentation to be updated enhancement Improvement to existing feature labels Jul 20, 2024
@giuliolibrando giuliolibrando changed the title Feature: Auto update Project Attributes if Allocation has a consumable attribute Feature: Auto update Project Attributes Usages if Allocation has a consumable attribute Jul 20, 2024
@giuliolibrando
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation documentation to be updated enhancement Improvement to existing feature
Projects
None yet
Development

No branches or pull requests

1 participant