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

8549 collection quotas #10174

Merged
merged 2 commits into from Dec 11, 2023
Merged

8549 collection quotas #10174

merged 2 commits into from Dec 11, 2023

Conversation

landreev
Copy link
Contributor

@landreev landreev commented Dec 11, 2023

What this PR does / why we need it:

This is a followup PR to #10144 - a small refinement I remembered to add after the fact.
It's for counting the sizes of any new "registered aux. files" - like the ones that an external tool like OpenDP would deposit, etc.; it makes sense to consider these real data payload, unlike the throwaway aux. files like exports and thumbnails.
This was discussed on slack, outside of the issue/PR, so slipped through the cracks.

If it's too late to merge, it's probably just fine. It's extremely unlikely that these would ever amount to a statistically important amount of storage on any instance actively using aux. files.

Which issue(s) this PR closes:

Special notes for your reviewer:

Suggestions on how to test this:

A simple and quick way to test this would be to upload the netcdf file from our source tree src/test/resources/netcdf/ICOADS_R3.0.0_1662-10.nc and check that the storage use for the parent collection got incremented by a few bytes (via curl -H "X-Dataverse-key: xxx" http://localhost:8080/api/dataverses/<COLLECTIONALIAS>/storage/use or a db query). The special treatment of NetCDF is one scenario in our own prod. where registered aux. files are created.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?:

Additional documentation:

@qqmyers qqmyers added the Size: 0.5 A percentage of a sprint. 0.35 hours label Dec 11, 2023
@coveralls
Copy link

Coverage Status

coverage: 20.173% (-0.003%) from 20.176%
when pulling 1b9ae24 on 8549-collection-quotas
into b2c37af on develop.

Copy link

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:8549-collection-quotas
ghcr.io/gdcc/configbaker:8549-collection-quotas

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@landreev landreev added this to Ready for Review ⏩ in IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) via automation Dec 11, 2023
@landreev landreev moved this from Ready for Review ⏩ to Ready for QA ⏩ in IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) Dec 11, 2023
@landreev landreev self-assigned this Dec 11, 2023
@landreev
Copy link
Contributor Author

I waited for the Jenkins test to pass. I tested it some too. Will just go ahead and merge it - ?

@scolapasta scolapasta added this to the 6.1 milestone Dec 11, 2023
@landreev landreev merged commit d9652f7 into develop Dec 11, 2023
19 checks passed
IQSS/dataverse (TO BE RETIRED / DELETED in favor of project 34) automation moved this from QA ✅ to Done 🚀 Dec 11, 2023
@landreev landreev deleted the 8549-collection-quotas branch December 11, 2023 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: 0.5 A percentage of a sprint. 0.35 hours
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants