tethysplatform / tethys

The Tethys Platform main Django website project repository.
http://tethysplatform.org/
BSD 2-Clause "Simplified" License
92 stars 49 forks source link

[BUG] Quotas API Limit Not Being Enforced #1078

Open jakeymac opened 1 month ago

jakeymac commented 1 month ago

Describe the bug When a resource quota is in place, it is not reinforced. Also, total resource usage isn't displayed correctly in main user settings page.

To Reproduce Steps to reproduce the behavior:

  1. Complete section one of the tethys quotas concepts tutorial: https://docs.tethysplatform.org/en/stable/tutorials/quotas.html, using the advanced solution of the key concepts tutorial as a start.
  2. Use larger .csv files to show an increase in the storage used.
  3. No limit should be enforced even after adding larger .csv files
  4. In the user profile page, there should be no change to the workspace storage summary.
  5. Open 'manage storage' by clicking 'edit', then 'manage storage'
  6. Here, you should be able to see changes in the dam inventory application's current usage amount.

Expected behavior After assigning some .csv files in the dam inventory application, the user's storage usage should be reflected in the user profile page, and when attempting to add a third csv file that exceeds the quota limit, an error message should be displayed.