ubccr / coldfront

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

Allocation view refactor #458

Closed aebruno closed 1 year ago

aebruno commented 1 year ago

Replaces #441. This PR cleans up core/allocation/views.py code. Refactoring changes include removed unused imports, small restructures to remove repeating code, removed else statements where they did not appear to improve legibility, and added several helper functions for checking permissions, sending emails, and fetching allocation attributes.

Portions of this code was ported over from the FASRC fork of ColdFront. Thanks to @claire-peters for getting this started.