Skip to content

8549 collection quotas - #10174

Merged
landreev merged 2 commits into
developfrom
8549-collection-quotas
Dec 11, 2023
Merged

landreev merged 2 commits into
developfrom
8549-collection-quotas

Conversation

@landreev

@landreev landreev commented Dec 11, 2023 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown

Coverage Status

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

@github-actions

Copy link
Copy Markdown

📦 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 self-assigned this Dec 11, 2023
@landreev

Copy link
Copy Markdown
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
@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

None yet

Development

Successfully merging this pull request may close these issues.

4 participants